TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser Class Reference
Inheritance diagram for TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser:
TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser TYPO3\CMS\Core\Localization\Parser\LocalizationParserInterface

Public Member Functions

 getParsedData ($sourcePath, $languageKey, $charset='')
 
 getParsedTargetData ($path)
 
- Public Member Functions inherited from TYPO3\CMS\Core\Localization\Parser\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 TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser
 parseXmlFile ()
 
 doParsingFromRoot (\SimpleXMLElement $root)
 

Protected Attributes

 $parsedTargetFiles
 
- Protected Attributes inherited from TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser
 $sourcePath
 
 $languageKey
 
 $charset
 

Detailed Description

Parser for XML locallang file.

Definition at line 25 of file LocallangXmlParser.php.

Member Function Documentation

◆ doParsingFromRoot()

TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser::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 135 of file LocallangXmlParser.php.

◆ doParsingFromRootForElement()

TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser::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
Exceptions
InvalidXmlFileException

Definition at line 71 of file LocallangXmlParser.php.

References TYPO3\CMS\Core\Utility\PathUtility\stripPathSitePrefix().

◆ doParsingTargetFromRoot()

TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser::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 146 of file LocallangXmlParser.php.

◆ getParsedData()

◆ getParsedTargetData()

TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser::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 159 of file LocallangXmlParser.php.

Referenced by TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser\getParsedData().

◆ parseXmlTargetFile()

TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser::parseXmlTargetFile (   $targetPath)
protected

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

Parameters
string$targetPathPath of the target file
Returns
array
Exceptions

Definition at line 174 of file LocallangXmlParser.php.

Member Data Documentation

◆ $parsedTargetFiles

TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser::$parsedTargetFiles
protected

Definition at line 32 of file LocallangXmlParser.php.