home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / php / PEAR / Services / Ebay / Call / GetItemTransactions.php < prev    next >
Encoding:
PHP Script  |  2008-07-02  |  1.3 KB  |  46 lines

  1. <?PHP
  2. /**
  3.  * Get all transactions for an item
  4.  *
  5.  * $Id: GetItemTransactions.php,v 1.1 2004/10/28 17:14:53 schst Exp $
  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. class Services_Ebay_Call_GetItemTransactions extends Services_Ebay_Call 
  13. {
  14.    /**
  15.     * verb of the API call
  16.     *
  17.     * @var  string
  18.     */
  19.     protected $verb = 'GetItemTransactions';
  20.  
  21.    /**
  22.     * parameter map that is used, when scalar parameters are passed
  23.     *
  24.     * @var  array
  25.     */
  26.     protected $paramMap = array(
  27.                                  'ItemId',
  28.                                  'LastModifiedFrom',
  29.                                  'LastModifiedTo',
  30.                                  'TransactionsPerPage',
  31.                                  'PageNumber'
  32.                                 );
  33.    /**
  34.     * make the API call
  35.     *
  36.     * @param    object Services_Ebay_Session
  37.     * @return   string
  38.     */
  39.     public function call(Services_Ebay_Session $session)
  40.     {
  41.         $return = parent::call($session);
  42.         $result = Services_Ebay::loadModel('TransactionList', $return['GetItemTransactionsResult'], $session);
  43.         return $result;
  44.     }
  45. }
  46. ?>