. */ /** * Offer * * This file contains the class AmazonProduct_Offer * * @author Matthew John Denton * @package com.mdbitz.amazon.product */ /** * AmazonProduct Offer Object * * Properties * * * @package com.mdbitz.amazon.product */ class AmazonProduct_Offer 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 "Merchant": $this->set( $item->nodeName, new AmazonProduct_Merchant( $item ) ); break; case "OfferAttributes": $this->set( $item->nodeName, new AmazonProduct_OfferAttributes( $item ) ); break; case "OfferListing": $this->set( $item->nodeName, new AmazonProduct_OfferListing( $item ) ); break; default: $this->processNode( $item ); break; } } } }