Application cleanup

This commit is contained in:
Deon George
2013-05-10 20:48:10 +10:00
parent 970b2ef4f0
commit c0ba6d4e98
36 changed files with 284 additions and 544 deletions

View File

@@ -14,9 +14,10 @@ class XML extends XML_Core {
* Collapse an XML object into a simple array
*/
public function collapse(XML $xml=NULL) {
$result = array();
if (is_null($xml))
$xml = $this;
$result = array();
foreach ($xml->as_array() as $j=>$k) {
$v = $xml->$j->value();