. */ /** * OfferListing * * This file contains the class AmazonProduct_OfferListing * * @author Matthew John Denton * @package com.mdbitz.amazon.product */ /** * AmazonProduct OfferListing Object * * Properties * * * @package com.mdbitz.amazon.product */ class AmazonProduct_OfferListing 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 "Price": case "AmountSaved": $this->set( $item->nodeName, new AmazonProduct_Price( $item ) ); break; case "AvailabilityAttributes": $this->set( $item->nodeName, new AmazonProduct_AvailabilityAttributes( $item ) ); break; case "QuantityRestriction": $this->set( $item->nodeName, new AmazonProduct_QuantityRestriction( $item ) ); break; default: $this->processNode( $item ); break; } } } }