protected function loadCategories($xml){
        //Categories
        if (!$xml->Self){
            return false;
        }
        $cnum = 0;
        foreach($xml->children() as $x){
            $this->data['Categories'][$cnum] = $this->genHierarchy($x);
            $cnum++;
        }
    }
protected function loadCategories($xml){
        //Categories
        if (!$xml->Self){
            return false;
        }
        $cnum = 0;
        foreach($xml->children() as $x){
            $this->data['Categories'][$cnum] = $this->genHierarchy($x);
            $cnum++;
        }
    }
protected function loadCategories ( $ xml ) { //Categories if ( ! $ xml -> Self ) { return false ; } $ cnum = 0 ; foreach ( $ xml -> children ( ) as $ x ) { $ this -> data [ 'Categories' ] [ $ cnum ] = $ this -> genHierarchy ( $ x ) ; $ cnum ++ ; } }
Takes in XML data for Categories and parses it for the object to use
@param SimpleXMLElement $xml <p>The XML data from Amazon.</p>
@return boolean <b>FALSE</b> if no valid XML data is found
Takes in XML data for Categories and parses it for the object to use