TwistPHP Documentation

XML

File path: dist/twist/Core/Utilities/XML.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

Type: Utility

XML — Import and Export XML files, turn XML into a usable PHP array. The utility 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