. */ /** * ItemAttributes * * This file contains the class AmazonProduct_ItemAttributes * * @author Matthew John Denton * @package com.mdbitz.amazon.product */ /** * AmazonProduct ItemAttributes Object * * Properties * * * @package com.mdbitz.amazon.product */ class AmazonProduct_ItemAttributes extends AmazonProduct_Abstract { /** * parse Object from XML * * @param XMLNode $node xml node to parse * @return void */ public function parseXML( $node ) { foreach ( $node->childNodes as $item ) { switch( $item->nodeName ) { case "Languages": $objects = array(); foreach( $item->childNodes as $childNode ) { $objects[] = new AmazonProduct_Language( $childNode ); } $this->set( $item->nodeName, $objects ); break; case "ListPrice": $this->set( $item->nodeName, new AmazonProduct_Price( $item ) ); break; default: $this->processNode( $item ); break; } } } }