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 / GetAccount.php < prev    next >
Encoding:
PHP Script  |  2008-07-02  |  1.2 KB  |  46 lines

  1. <?PHP
  2. /**
  3.  * Get the account of the user
  4.  *
  5.  * $Id: GetAccount.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/GetAccount/GetAccountLogic.htm
  10.  */
  11. class Services_Ebay_Call_GetAccount extends Services_Ebay_Call 
  12. {
  13.    /**
  14.     * verb of the API call
  15.     *
  16.     * @var  string
  17.     */
  18.     protected $verb = 'GetAccount';
  19.  
  20.    /**
  21.     * parameter map that is used, when scalar parameters are passed
  22.     *
  23.     * @var  array
  24.     */
  25.     protected $paramMap = array(
  26.                                  'AccountPageType',
  27.                                  'Period',
  28.                                  'BeginDate',
  29.                                  'EndDate',
  30.                                  'PageNumber',
  31.                                  'Currency'
  32.                                 );
  33.     
  34.    /**
  35.     * make the API call
  36.     *
  37.     * @param    object Services_Ebay_Session
  38.     * @return   string
  39.     */
  40.     public function call(Services_Ebay_Session $session)
  41.     {
  42.         $return = parent::call($session);
  43.         return Services_Ebay::loadModel('Account', $return['Account'], $session);
  44.     }
  45. }
  46. ?>