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

Source for file GetItemTransactions.php

Documentation is available at GetItemTransactions.php

  1. <?PHP
  2. /**
  3.  * Get all transactions for an item
  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/GetItemTransactions/GetItemTransactionsLogic.htm
  10.  * @todo    create a model for the result set
  11.  */
  12. {
  13.    /**
  14.     * verb of the API call
  15.     *
  16.     * @var  string 
  17.     */
  18.     protected $verb = 'GetItemTransactions';
  19.  
  20.    /**
  21.     * parameter map that is used, when scalar parameters are passed
  22.     *
  23.     * @var  array 
  24.     */
  25.     protected $paramMap = array(
  26.                                  'ItemID',
  27.                                  'ModTimeFrom',
  28.                                  'ModTimeTo',
  29.                                  'TransactionsPerPage',
  30.                                  'PageNumber'
  31.                                 );
  32.    /**
  33.     * make the API call
  34.     *
  35.     * @param    object Services_Ebay_Session 
  36.     * @return   string 
  37.     */
  38.     public function call(Services_Ebay_Session $session)
  39.     {
  40.         $bak $this->args;
  41.         $this->args['PaginationType'= array();
  42.         foreach ($this->paramMap as $param{
  43.             if ($param == 'TransactionsPerPage' || $param == 'PageNumber'{
  44.                 if (!isset($this->args[$param])) {
  45.                     continue;
  46.                 }
  47.                 $this->args['PaginationType'][$param$this->args[$param];
  48.                 unset$this->args[$param);
  49.             }
  50.         }
  51.  
  52.         $return = parent::call($session);
  53.         $result Services_Ebay::loadModel('TransactionList'$return$session);
  54.  
  55.         $this->args = $bak;
  56.         return $result;
  57.     }
  58. }
  59. ?>

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