TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
LocallangXmlParser Class Reference
Inheritance diagram for LocallangXmlParser:
AbstractXmlParser LocalizationParserInterface

Public Member Functions

 getParsedData ($sourcePath, $languageKey, $charset= '')
 
 getParsedTargetData ($path)
 
- Public Member Functions inherited from AbstractXmlParser
 getParsedData ($sourcePath, $languageKey, $charset= '')
 

Protected Member Functions

 doParsingFromRootForElement (\SimpleXMLElement $root, $element)
 
 doParsingFromRoot (\SimpleXMLElement $root)
 
 doParsingTargetFromRoot (\SimpleXMLElement $root)
 
 parseXmlTargetFile ($targetPath)
 
- Protected Member Functions inherited from AbstractXmlParser
 getCharset ($charset= '')
 
 parseXmlFile ()
 
 doParsingFromRoot (\SimpleXMLElement $root)
 

Protected Attributes

 $parsedTargetFiles
 
- Protected Attributes inherited from AbstractXmlParser
 $sourcePath
 
 $languageKey
 
 $charset
 

Detailed Description

Parser for XML locallang file.

Definition at line 24 of file LocallangXmlParser.php.

Member Function Documentation

doParsingFromRoot ( \SimpleXMLElement  $root)
protected

Returns array representation of XLIFF data, starting from a root node.

Parameters
\SimpleXMLElement$rootA root node
Returns
array An array representing parsed XLIFF

Definition at line 127 of file LocallangXmlParser.php.

doParsingFromRootForElement ( \SimpleXMLElement  $root,
  $element 
)
protected

Returns array representation of XLIFF data, starting from a root node.

Parameters
\SimpleXMLElement$rootXML root element
string$elementTarget or Source
Returns
array

Definition at line 69 of file LocallangXmlParser.php.

doParsingTargetFromRoot ( \SimpleXMLElement  $root)
protected

Returns array representation of XLIFF data, starting from a root node.

Parameters
\SimpleXMLElement$rootA root node
Returns
array An array representing parsed XLIFF

Definition at line 138 of file LocallangXmlParser.php.

getParsedData (   $sourcePath,
  $languageKey,
  $charset = '' 
)
getParsedTargetData (   $path)

Returns parsed representation of XML file.

Parses XML if it wasn't done before. Caches parsed data.

Parameters
string$pathAn absolute path to XML file
Returns
array Parsed XML file

Definition at line 151 of file LocallangXmlParser.php.

Referenced by LocallangXmlParser\getParsedData().

parseXmlTargetFile (   $targetPath)
protected

Reads and parses XML file and returns internal representation of data.

Parameters
string$targetPathPath of the target file
Returns
array
Exceptions
TYPO3

Definition at line 166 of file LocallangXmlParser.php.

Member Data Documentation

$parsedTargetFiles
protected

Definition at line 31 of file LocallangXmlParser.php.