PHP 클래스 Neos\Flow\I18n\AbstractXmlParser

파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$parsedFiles array Associative array of "filename => parsed data" pairs.

공개 메소드들

메소드 설명
getParsedData ( string $sourcePath ) : array Returns parsed representation of XML file.

보호된 메소드들

메소드 설명
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.

메소드 상세

doParsingFromRoot() 추상적인 보호된 메소드

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

getParsedData() 공개 메소드

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

parseXmlFile() 보호된 메소드

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

프로퍼티 상세

$parsedFiles 보호되어 있는 프로퍼티

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