com\setasign\SetaFramework\Config\Reader

Xml Class Xml

File: /SetaFramework/src/Config/Reader/Xml.php

Class hierarchy

Implements

Summary

Properties

$filename

protected string Xml::$filename

Methods

__construct()

public Xml::__construct (
string $filename
)

Constructor

Parameters
$filename : string
 
Exceptions

Throws \InvalidArgumentException

getAbsolutePath()

private Xml::getAbsolutePath (
string $path,
string $file
): string

Gets a absolute path of the path

Used for all path definitions in config file.

If the path is a relative path the application path dir scope will prepend before the path.

Parameters
$path : string
 
$file : string
 

lookforImportFile()

protected Xml::lookforImportFile (
\DOMNode $node
): array
Parameters
$node : \DOMNode
 
Exceptions

Throws \com\setasign\SetaFramework\Exception

readNestedConfig()

protected Xml::readNestedConfig (
string $path
): array
Parameters
$path : string
 
Exceptions

Throws \com\setasign\SetaFramework\Exception

readNode()

protected Xml::readNode (
\DOMNode $node,
bool $skipAttributes = false
): array|string
Parameters
$node : \DOMNode
 
$skipAttributes : bool
 
Exceptions

Throws \com\setasign\SetaFramework\Exception