autoPay = $this->_query(".//$ns:autoPay[1]", 'boolean'); $this->charityId = $this->_query(".//$ns:charityId[1]", 'integer'); $this->country = $this->_query(".//$ns:country[1]", 'string'); $this->distance = $this->_query(".//$ns:distance[1]", 'float'); $this->galleryPlusPictureURL = $this->_query(".//$ns:galleryPlusPictureURL", 'string', true); $this->galleryURL = $this->_query(".//$ns:galleryURL[1]", 'string'); $this->globalId = $this->_query(".//$ns:globalId[1]", 'string'); $this->itemId = $this->_query(".//$ns:itemId[1]", 'string'); $this->location = $this->_query(".//$ns:location[1]", 'string'); $this->paymentMethod = $this->_query(".//$ns:paymentMethod", 'string', true); $this->postalCode = $this->_query(".//$ns:postalCode[1]", 'string'); $this->productId = $this->_query(".//$ns:productId[1]", 'string'); $this->subtitle = $this->_query(".//$ns:subtitle[1]", 'string'); $this->title = $this->_query(".//$ns:title[1]", 'string'); $this->viewItemURL = $this->_query(".//$ns:viewItemURL[1]", 'string'); $this->_attributes['distance'] = array( 'unit' => $this->_query(".//$ns:distance[1]/@unit[1]", 'string') ); $this->_attributes['productId'] = array( 'type' => $this->_query(".//$ns:productId[1]/@type[1]", 'string') ); $node = $this->_xPath->query(".//$ns:listingInfo[1]", $this->_dom)->item(0); if ($node) { /** * @see Zend_Service_Ebay_Finding_ListingInfo */ #require_once 'Zend/Service/Ebay/Finding/ListingInfo.php'; $this->listingInfo = new Zend_Service_Ebay_Finding_ListingInfo($node); } $node = $this->_xPath->query(".//$ns:primaryCategory[1]", $this->_dom)->item(0); if ($node) { /** * @see Zend_Service_Ebay_Finding_Category */ #require_once 'Zend/Service/Ebay/Finding/Category.php'; $this->primaryCategory = new Zend_Service_Ebay_Finding_Category($node); } $node = $this->_xPath->query(".//$ns:secondaryCategory[1]", $this->_dom)->item(0); if ($node) { /** * @see Zend_Service_Ebay_Finding_Category */ #require_once 'Zend/Service/Ebay/Finding/Category.php'; $this->secondaryCategory = new Zend_Service_Ebay_Finding_Category($node); } $node = $this->_xPath->query(".//$ns:sellerInfo[1]", $this->_dom)->item(0); if ($node) { /** * @see Zend_Service_Ebay_Finding_SellerInfo */ #require_once 'Zend/Service/Ebay/Finding/SellerInfo.php'; $this->sellerInfo = new Zend_Service_Ebay_Finding_SellerInfo($node); } $node = $this->_xPath->query(".//$ns:sellingStatus[1]", $this->_dom)->item(0); if ($node) { /** * @see Zend_Service_Ebay_Finding_SellingStatus */ #require_once 'Zend/Service/Ebay/Finding/SellingStatus.php'; $this->sellingStatus = new Zend_Service_Ebay_Finding_SellingStatus($node); } $node = $this->_xPath->query("./$ns:shippingInfo", $this->_dom)->item(0); if ($node) { /** * @see Zend_Service_Ebay_Finding_ShippingInfo */ #require_once 'Zend/Service/Ebay/Finding/ShippingInfo.php'; $this->shippingInfo = new Zend_Service_Ebay_Finding_ShippingInfo($node); } $node = $this->_xPath->query(".//$ns:storeInfo[1]", $this->_dom)->item(0); if ($node) { /** * @see Zend_Service_Ebay_Finding_Storefront */ #require_once 'Zend/Service/Ebay/Finding/Storefront.php'; $this->storeInfo = new Zend_Service_Ebay_Finding_Storefront($node); } } /** * @param Zend_Service_Ebay_Finding $proxy * @param Zend_Config|array $options * @return Zend_Service_Ebay_Finding_Response_Items */ public function findItemsByProduct(Zend_Service_Ebay_Finding $proxy, $options = null) { $type = $this->attributes('productId', 'type'); return $proxy->findItemsByProduct($this->productId, $type, $options); } }