PHP Class Neos\Flow\I18n\AbstractXmlParser

显示文件 Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$parsedFiles array Associative array of "filename => parsed data" pairs.

Public Methods

Method Description
getParsedData ( string $sourcePath ) : array Returns parsed representation of XML file.

Protected Methods

Method Description
doParsingFromRoot ( SimpleXMLElement $root ) : array Returns array representation of XML data, starting from a root node.
parseXmlFile ( string $sourcePath ) : array Reads and parses XML file and returns internal representation of data.

Method Details

doParsingFromRoot() abstract protected method

Returns array representation of XML data, starting from a root node.
abstract protected doParsingFromRoot ( SimpleXMLElement $root ) : array
$root SimpleXMLElement A root node
return array An array representing parsed XML file (structure depends on concrete parser)

getParsedData() public method

Parses XML if it wasn't done before. Caches parsed data.
public getParsedData ( string $sourcePath ) : array
$sourcePath string An absolute path to XML file
return array Parsed XML file

parseXmlFile() protected method

Reads and parses XML file and returns internal representation of data.
protected parseXmlFile ( string $sourcePath ) : array
$sourcePath string An absolute path to XML file
return array Parsed XML file

Property Details

$parsedFiles protected_oe property

Associative array of "filename => parsed data" pairs.
protected array $parsedFiles
return array