TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractXmlParser Class Reference
Inheritance diagram for AbstractXmlParser:
LocalizationParserInterface LocallangXmlParser XliffParser

Public Member Functions

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

Protected Member Functions

 parseXmlFile ()
 
 doParsingFromRoot (\SimpleXMLElement $root)
 

Protected Attributes

 $sourcePath
 
 $languageKey
 
 $charset
 

Detailed Description

Abstract class for XML based parser.

Definition at line 25 of file core/Classes/Localization/Parser/AbstractXmlParser.php.

Member Function Documentation

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 AbstractXmlParser\parseXmlFile().

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

Returns parsed representation of XML file.

Parameters
string$sourcePathSource file path
string$languageKeyLanguage key
string$charsetFile charset
Returns
array
Exceptions
\TYPO3\CMS\Core\Localization\Exception\FileNotFoundException

Implements LocalizationParserInterface.

Definition at line 51 of file core/Classes/Localization/Parser/AbstractXmlParser.php.

References AbstractXmlParser\$charset, AbstractXmlParser\$languageKey, AbstractXmlParser\$sourcePath, GeneralUtility\getFileAbsFileName(), GeneralUtility\llXmlAutoFileName(), and AbstractXmlParser\parseXmlFile().

parseXmlFile ( )
protected

Loads the current XML file before processing.

Returns
array An array representing parsed XML file (structure depends on concrete parser)
Exceptions
\TYPO3\CMS\Core\Localization\Exception\InvalidXmlFileException

Definition at line 102 of file core/Classes/Localization/Parser/AbstractXmlParser.php.

References AbstractXmlParser\doParsingFromRoot().

Referenced by LocallangXmlParser\getParsedData(), and AbstractXmlParser\getParsedData().

Member Data Documentation

$charset
protected
$languageKey
protected
$sourcePath
protected