Пример #1
0
 /**
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING;
     $this->categoryId = $this->_query(".//{$ns}:categoryId[1]", 'string');
     $this->categoryName = $this->_query(".//{$ns}:categoryName[1]", 'string');
 }
Пример #2
0
 /**
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING;
     $this->storeName = $this->_query(".//{$ns}:storeName[1]", 'string');
     $this->storeURL = $this->_query(".//{$ns}:storeURL[1]", 'string');
 }
Пример #3
0
 /**
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING;
     $nodes = $this->_xPath->query(".//{$ns}:item", $this->_dom);
     if ($nodes) {
         /**
          * @see Zend_Service_Ebay_Finding_Search_Item_Set
          */
         require_once 'Zend/Service/Ebay/Finding/Search/Item/Set.php';
         $this->item = new Zend_Service_Ebay_Finding_Search_Item_Set($nodes);
     }
 }
Пример #4
0
 /**
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING;
     $nodes = $this->_xPath->query(".//{$ns}:categoryHistogram", $this->_dom);
     if ($nodes->length > 0) {
         /**
          * @see Zend_Service_Ebay_Finding_Category_Histogram_Set
          */
         #require_once 'Zend/Service/Ebay/Finding/Category/Histogram/Set.php';
         $this->categoryHistogram = new Zend_Service_Ebay_Finding_Category_Histogram_Set($nodes);
     }
 }
Пример #5
0
 /**
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING;
     $this->_attributes['valueHistogram'] = array('valueName' => $this->_query(".//{$ns}:valueHistogram/@valueName", 'string', true));
     $nodes = $this->_xPath->query(".//{$ns}:valueHistogram", $this->_dom);
     if ($nodes->length > 0) {
         /**
          * @see Zend_Service_Ebay_Finding_Aspect_Histogram_Value_Set
          */
         #require_once 'Zend/Service/Ebay/Finding/Aspect/Histogram/Value/Set.php';
         $this->valueHistogram = new Zend_Service_Ebay_Finding_Aspect_Histogram_Value_Set($nodes);
     }
 }
 /**
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING;
     $this->domainDisplayName = $this->_query(".//{$ns}:domainDisplayName[1]", 'string');
     $this->domainName = $this->_query(".//{$ns}:domainName[1]", 'string');
     $this->_attributes['aspect'] = array('name' => $this->_query(".//{$ns}:aspect/@name", 'string', true));
     $nodes = $this->_xPath->query(".//{$ns}:aspect", $this->_dom);
     if ($nodes->length > 0) {
         /**
          * @see Zend_Service_Ebay_Finding_Aspect_Set
          */
         // require_once 'Zend/Service/Ebay/Finding/Aspect/Set.php';
         $this->aspect = new Zend_Service_Ebay_Finding_Aspect_Set($nodes);
     }
 }
Пример #7
0
 /**
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING;
     $this->entriesPerPage = $this->_query(".//{$ns}:entriesPerPage[1]", 'integer');
     $this->pageNumber = $this->_query(".//{$ns}:pageNumber[1]", 'integer');
     $this->totalEntries = $this->_query(".//{$ns}:totalEntries[1]", 'integer');
     $this->totalPages = $this->_query(".//{$ns}:totalPages[1]", 'integer');
 }
Пример #8
0
 /**
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING;
     $this->ack = $this->_query(".//{$ns}:ack[1]", 'string');
     $this->timestamp = $this->_query(".//{$ns}:timestamp[1]", 'string');
     $this->version = $this->_query(".//{$ns}:version[1]", 'string');
     $node = $this->_xPath->query(".//{$ns}:errorMessage[1]", $this->_dom)->item(0);
     if ($node) {
         /**
          * @see Zend_Service_Ebay_Finding_Error_Message
          */
         require_once 'Zend/Service/Ebay/Finding/Error/Message.php';
         $this->errorMessage = new Zend_Service_Ebay_Finding_Error_Message($node);
     }
 }
Пример #9
0
 /**
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING;
     $this->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);
     }
 }
Пример #10
0
 /**
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING;
     $this->category = $this->_query(".//{$ns}:category[1]", 'string');
     $this->domain = $this->_query(".//{$ns}:domain[1]", 'string');
     $this->errorId = $this->_query(".//{$ns}:errorId[1]", 'integer');
     $this->exceptionId = $this->_query(".//{$ns}:exceptionId[1]", 'string');
     $this->message = $this->_query(".//{$ns}:message[1]", 'string');
     $this->parameter = $this->_query(".//{$ns}:parameter", 'string', true);
     $this->severity = $this->_query(".//{$ns}:severity[1]", 'string');
     $this->subdomain = $this->_query(".//{$ns}:subdomain[1]", 'string');
     $this->_attributes['parameter'] = array('name' => $this->_query(".//{$ns}:parameter/@name", 'string', true));
 }
Пример #11
0
 /**
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING;
     $this->shippingServiceCost = $this->_query(".//{$ns}:shippingServiceCost[1]", 'float');
     $this->shippingType = $this->_query(".//{$ns}:shippingType[1]", 'string');
     $this->shipToLocations = $this->_query(".//{$ns}:shipToLocations", 'string', true);
     $this->_attributes['shippingServiceCost'] = array('currencyId' => $this->_query(".//{$ns}:shippingServiceCost[1]/@currencyId[1]", 'string'));
 }
Пример #12
0
 /**
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING;
     $this->bidCount = $this->_query(".//{$ns}:bidCount[1]", 'integer');
     $this->convertedCurrentPrice = $this->_query(".//{$ns}:convertedCurrentPrice[1]", 'float');
     $this->currentPrice = $this->_query(".//{$ns}:currentPrice[1]", 'float');
     $this->sellingState = $this->_query(".//{$ns}:sellingState[1]", 'string');
     $this->timeLeft = $this->_query(".//{$ns}:timeLeft[1]", 'string');
     $this->_attributes['convertedCurrentPrice'] = array('currencyId' => $this->_query(".//{$ns}:convertedCurrentPrice[1]/@currencyId[1]", 'string'));
     $this->_attributes['currentPrice'] = array('currencyId' => $this->_query(".//{$ns}:currentPrice[1]/@currencyId[1]", 'string'));
 }
Пример #13
0
 /**
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING;
     $this->count = $this->_query(".//{$ns}:count[1]", 'integer');
 }
Пример #14
0
 /**
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING;
     $this->bestOfferEnabled = $this->_query(".//{$ns}:bestOfferEnabled[1]", 'boolean');
     $this->buyItNowAvailable = $this->_query(".//{$ns}:buyItNowAvailable[1]", 'boolean');
     $this->buyItNowPrice = $this->_query(".//{$ns}:buyItNowPrice[1]", 'float');
     $this->convertedBuyItNowPrice = $this->_query(".//{$ns}:convertedBuyItNowPrice[1]", 'float');
     $this->endTime = $this->_query(".//{$ns}:endTime[1]", 'string');
     $this->gift = $this->_query(".//{$ns}:gift[1]", 'boolean');
     $this->listingType = $this->_query(".//{$ns}:listingType[1]", 'string');
     $this->startTime = $this->_query(".//{$ns}:startTime[1]", 'string');
     $this->_attributes['buyItNowPrice'] = array('currencyId' => $this->_query(".//{$ns}:buyItNowPrice[1]/@currencyId[1]", 'string'));
     $this->_attributes['convertedBuyItNowPrice'] = array('currencyId' => $this->_query(".//{$ns}:convertedBuyItNowPrice[1]/@currencyId[1]", 'string'));
 }
Пример #15
0
 /**
  * @return void
  */
 protected function _init()
 {
     parent::_init();
     $ns = Zend_Service_Ebay_Finding::XMLNS_FINDING;
     $this->feedbackRatingStar = $this->_query(".//{$ns}:feedbackRatingStar[1]", 'string');
     $this->feedbackScore = $this->_query(".//{$ns}:feedbackScore[1]", 'integer');
     $this->positiveFeedbackPercent = $this->_query(".//{$ns}:positiveFeedbackPercent[1]", 'float');
     $this->sellerUserName = $this->_query(".//{$ns}:sellerUserName[1]", 'string');
     $this->topRatedSeller = $this->_query(".//{$ns}:topRatedSeller[1]", 'boolean');
 }