Services_Ebay
[ class tree: Services_Ebay ] [ index: Services_Ebay ] [ all elements ]

Source for file GetProductFinder.php

Documentation is available at GetProductFinder.php

  1. <?PHP
  2. /**
  3.  * Get XSL stylesheet to transform product finder
  4.  *
  5.  * $Id$
  6.  *
  7.  * @package Services_Ebay
  8.  * @author  Stephan Schmidt <schst@php.net>
  9.  * @link    http://developer.ebay.com/DevZone/docs/API_Doc/Functions/GetProductFinder/GetProductFinderLogic.htm
  10.  */
  11. {
  12.    /**
  13.     * verb of the API call
  14.     *
  15.     * @var  string 
  16.     */
  17.     protected $verb = 'GetProductFinder';
  18.  
  19.    /**
  20.     * parameter map that is used, when scalar parameters are passed
  21.     *
  22.     * @var  array 
  23.     */
  24.     protected $paramMap = array(
  25.                                  'ProductFinderID',
  26.                                  'AttributeSystemVersion'
  27.                                 );
  28.  
  29.    /**
  30.     * arguments of the call
  31.     *
  32.     * @var  array 
  33.     */
  34.     protected $args = array(
  35.                             'DetailLevel' => 'ReturnAll'
  36.                         );
  37.  
  38.    /**
  39.     * options that will be passed to the serializer
  40.     *
  41.     * @var  array 
  42.     */
  43.     protected $serializerOptions = array(
  44.                                             'mode' => 'simplexml'
  45.                                         );
  46.  
  47.    /**
  48.     * make the API call
  49.     *
  50.     * @param    object Services_Ebay_Session 
  51.     * @return   string 
  52.     */
  53.     public function call(Services_Ebay_Session $session)
  54.     {
  55.         $xml = parent::call($sessionfalse);
  56.         $dom = DOMDocument::loadXML($xml);
  57.  
  58.         $result = array();
  59.         $productFinders $dom->getElementsByTagName('ProductFinder');
  60.         foreach ($productFinders as $node{
  61.             $result[Services_Ebay::loadModel('ProductFinder'$node$session);
  62.         }
  63.         
  64.         return $result;
  65.     }
  66. }
  67. ?>

Documentation generated on Mon, 11 Mar 2019 15:49:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.