PHP Class Neos\Flow\I18n\AbstractXmlParser

Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$parsedFiles array Associative array of "filename => parsed data" pairs.

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

getParsedData() public méthode

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

parseXmlFile() protected méthode

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

Property Details

$parsedFiles protected_oe property

Associative array of "filename => parsed data" pairs.
protected array $parsedFiles
Résultat array