TYPO3 CMS  TYPO3_6-2
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 t3lib_l10n_parser_Llxml

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

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Parser for XML locallang file.

Author
Dominique Feyer dfeye.nosp@m.r@re.nosp@m.elpee.nosp@m.k.ne.nosp@m.t

Definition at line 21 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 122 of file LocallangXmlParser.php.

References TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser\doParsingFromRootForElement().

◆ 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

Definition at line 65 of file LocallangXmlParser.php.

Referenced by TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser\doParsingFromRoot(), and TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser\doParsingTargetFromRoot().

◆ 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 132 of file LocallangXmlParser.php.

References TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser\doParsingFromRootForElement().

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

◆ 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 144 of file LocallangXmlParser.php.

References TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser\parseXmlTargetFile().

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 158 of file LocallangXmlParser.php.

References TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser\doParsingTargetFromRoot().

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

Member Data Documentation

◆ $parsedTargetFiles

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

Definition at line 28 of file LocallangXmlParser.php.