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 / GetUserDisputes.php < prev    next >
Encoding:
PHP Script  |  2008-07-02  |  1.6 KB  |  60 lines

  1. <?PHP
  2. /**
  3.  * Get a all disputes the where the current user is either seller or buyer
  4.  *
  5.  * $Id: GetUserDisputes.php,v 1.2 2004/12/23 15:21:05 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/GetUserDisputes/GetUserDisputesLogic.htm
  10.  * @todo    parse the correct filters from the response
  11.  */
  12. class Services_Ebay_Call_GetUserDisputes extends Services_Ebay_Call 
  13. {
  14.    /**
  15.     * verb of the API call
  16.     *
  17.     * @var  string
  18.     */
  19.     protected $verb = 'GetUserDisputes';
  20.  
  21.    /**
  22.     * compatibility level this method was introduced
  23.     *
  24.     * @var  integer
  25.     */
  26.     protected $since = 361;
  27.     
  28.    /**
  29.     * arguments of the call
  30.     *
  31.     * @var  array
  32.     */
  33.     protected $args = array(
  34.                             'PageNumber' => '1'
  35.                         );
  36.    /**
  37.     * parameter map that is used, when scalar parameters are passed
  38.     *
  39.     * @var  array
  40.     */
  41.     protected $paramMap = array(
  42.                                  'DisputeFilter',
  43.                                  'DisputeSortType',
  44.                                  'SortOrder',
  45.                                  'PageNumber'
  46.                                 );
  47.     
  48.    /**
  49.     * make the API call
  50.     *
  51.     * @param    object Services_Ebay_Session
  52.     * @return   string
  53.     */
  54.     public function call(Services_Ebay_Session $session)
  55.     {
  56.         $return = parent::call($session);
  57.         return Services_Ebay::loadModel('DisputeList', $return['UserDisputes'], $session);
  58.     }
  59. }
  60. ?>