TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser Class Reference
Inheritance diagram for TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser:
TYPO3\CMS\Core\Localization\Parser\LocalizationParserInterface t3lib_l10n_parser_AbstractXml TYPO3\CMS\Core\Localization\Parser\LocallangXmlParser TYPO3\CMS\Core\Localization\Parser\XliffParser t3lib_l10n_parser_Llxml t3lib_l10n_parser_Xliff

Public Member Functions

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

Protected Member Functions

 parseXmlFile ()
 
 doParsingFromRoot (\SimpleXMLElement $root)
 

Protected Attributes

 $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! Abstract class for XML based parser.

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

Definition at line 21 of file AbstractXmlParser.php.

Member Function Documentation

◆ doParsingFromRoot()

TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser::doParsingFromRoot ( \SimpleXMLElement  $root)
abstractprotected

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

Parameters
SimpleXMLElement$rootA root node
Returns
array An array representing the parsed XML file

Referenced by TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser\parseXmlFile().

◆ getParsedData()

TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser::getParsedData (   $sourcePath,
  $languageKey,
  $charset = '' 
)

◆ parseXmlFile()

TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser::parseXmlFile ( )
protected

Loads the current XML file before processing.

Returns
array An array representing parsed XML file (structure depends on concrete parser)
Exceptions

Definition at line 96 of file AbstractXmlParser.php.

References TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser\doParsingFromRoot().

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

Member Data Documentation

◆ $charset

TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser::$charset
protected

◆ $languageKey

TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser::$languageKey
protected

◆ $sourcePath

TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser::$sourcePath
protected