TYPO3CMS  4.7
 All Classes Namespaces Files Functions Variables Pages
t3lib_l10n_parser_Llxml Class Reference
Inheritance diagram for t3lib_l10n_parser_Llxml:
t3lib_l10n_parser_AbstractXml t3lib_l10n_parser

Public Member Functions

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

Protected Member Functions

 doParsingFromRootForElement (SimpleXMLElement $root, $element)
 
 getParsedDataForElement (SimpleXMLElement $bodyOfFileTag, $element)
 
 doParsingFromRoot (SimpleXMLElement $root)
 
 doParsingTargetFromRoot (SimpleXMLElement $root)
 
 parseXmlTargetFile ($targetPath)
 
- Protected Member Functions inherited from t3lib_l10n_parser_AbstractXml
 parseXmlFile ()
 
 doParsingFromRoot (SimpleXMLElement $root)
 

Protected Attributes

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

Detailed Description

Definition at line 35 of file class.t3lib_l10n_parser_llxml.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 144 of file class.t3lib_l10n_parser_llxml.php.

References doParsingFromRootForElement().

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 83 of file class.t3lib_l10n_parser_llxml.php.

References getParsedDataForElement().

Referenced by doParsingFromRoot(), and doParsingTargetFromRoot().

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 154 of file class.t3lib_l10n_parser_llxml.php.

References doParsingFromRootForElement().

Referenced by parseXmlTargetFile().

getParsedData (   $sourcePath,
  $languageKey,
  $charset = '' 
)
getParsedDataForElement ( SimpleXMLElement  $bodyOfFileTag,
  $element 
)
protected

Parse the given language key tag

Parameters
SimpleXMLElement$bodyOfFileTag
string$element
Returns
array

Definition at line 115 of file class.t3lib_l10n_parser_llxml.php.

References t3lib_div\getFileAbsFileName(), and getParsedTargetData().

Referenced by doParsingFromRootForElement().

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 166 of file class.t3lib_l10n_parser_llxml.php.

References parseXmlTargetFile().

Referenced by getParsedData(), and getParsedDataForElement().

parseXmlTargetFile (   $targetPath)
protected

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

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

Definition at line 180 of file class.t3lib_l10n_parser_llxml.php.

References doParsingTargetFromRoot().

Referenced by getParsedTargetData().

Member Data Documentation

$parsedTargetFiles
protected

Definition at line 42 of file class.t3lib_l10n_parser_llxml.php.