Parser for XML locallang file.
Definition at line 24 of file LocallangXmlParser.php.
doParsingFromRoot |
( |
\SimpleXMLElement |
$root | ) |
|
|
protected |
Returns array representation of XLIFF data, starting from a root node.
- Parameters
-
\SimpleXMLElement | $root | A root node |
- Returns
- array An array representing parsed XLIFF
Definition at line 127 of file LocallangXmlParser.php.
doParsingFromRootForElement |
( |
\SimpleXMLElement |
$root, |
|
|
|
$element |
|
) |
| |
|
protected |
Returns array representation of XLIFF data, starting from a root node.
- Parameters
-
\SimpleXMLElement | $root | XML root element |
string | $element | Target or Source |
- Returns
- array
Definition at line 69 of file LocallangXmlParser.php.
doParsingTargetFromRoot |
( |
\SimpleXMLElement |
$root | ) |
|
|
protected |
Returns array representation of XLIFF data, starting from a root node.
- Parameters
-
\SimpleXMLElement | $root | A root node |
- Returns
- array An array representing parsed XLIFF
Definition at line 138 of file LocallangXmlParser.php.
getParsedData |
( |
|
$sourcePath, |
|
|
|
$languageKey, |
|
|
|
$charset = '' |
|
) |
| |
getParsedTargetData |
( |
|
$path | ) |
|
parseXmlTargetFile |
( |
|
$targetPath | ) |
|
|
protected |
Reads and parses XML file and returns internal representation of data.
- Parameters
-
string | $targetPath | Path of the target file |
- Returns
- array
- Exceptions
-
\TYPO3\CMS\Core\Localization\Exception\InvalidXmlFileException | |
Definition at line 166 of file LocallangXmlParser.php.