File path: dist/twist/Core/Helpers/XML.helper.php
Namespace: Twist\Core\Helpers
Extends: Base
Type: Class
XML
— Import and Export XML files, turn XML into a usable PHP array. The helper supports XML files with UTF8 Encoding.
<?php
//Set the variables for the example
$strLocalFilePath = 'foo';
//Call the function loadFile with the example vars
Twist::XML() -> loadFile($strLocalFilePath);
Method | Access | Returns |
---|---|---|
__construct | construct | void |
loadRawData | public | void |
loadFile | public | void |
getArray | public | void |
processXML | protected | void |
expandRawArray | protected | void |
covertArray | public | void |
xmlToArray | public | void |
fixUTF8 | public | void |
fixAmp | public | void |
arrayToXML | public | void |
processAttributes | protected | void |
processComment | protected | void |
processEachItem | protected | void |