. */ /** * ImageSet * * This file contains the class AmazonProduct_ImageSet * * @author Matthew John Denton * @package com.mdbitz.amazon.product */ /** * AmazonProduct_ImageSet defines the ImageSet object * * Properties * * * @package com.mdbitz.amazon.product */ class AmazonProduct_ImageSet extends AmazonProduct_Abstract { /** * parse Object from XML * * @param XMLNode $node xml node to parse * @return void */ public function parseXML( $node ) { //process Attributes foreach( $node->attributes as $attrName => $attrNode ) { $this->set( $attrName, $attrNode->nodeValue ); } //process Images foreach ( $node->childNodes as $item ) { if( $item->nodeName != "#text" ) { $this->set( $item->nodeName, new AmazonProduct_Image( $item ) ); } } } }