TwistPHP Documentation

XML

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.

Example Usage

<?php
//Set the variables for the example
$strLocalFilePath 'foo';

//Call the function loadFile with the example vars
Twist::XML() -> loadFile($strLocalFilePath);

Method List

Method Access Returns
__constructconstructvoid
loadRawDatapublicvoid
loadFilepublicvoid
getArraypublicvoid
processXMLprotectedvoid
expandRawArrayprotectedvoid
covertArraypublicvoid
xmlToArraypublicvoid
fixUTF8publicvoid
fixAmppublicvoid
arrayToXMLpublicvoid
processAttributesprotectedvoid
processCommentprotectedvoid
processEachItemprotectedvoid