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 / GetUser.php < prev    next >
Encoding:
PHP Script  |  2008-07-02  |  1.0 KB  |  43 lines

  1. <?PHP
  2. /**
  3.  * Get information about a user
  4.  *
  5.  * $Id: GetUser.php,v 1.3 2005/01/04 22:38:23 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/GetUser/GetUserLogic.htm
  10.  */
  11. class Services_Ebay_Call_GetUser extends Services_Ebay_Call 
  12. {
  13.    /**
  14.     * verb of the API call
  15.     *
  16.     * @var  string
  17.     */
  18.     protected $verb = 'GetUser';
  19.  
  20.    /**
  21.     * parameter map that is used, when scalar parameters are passed
  22.     *
  23.     * @var  array
  24.     */
  25.     protected $paramMap = array(
  26.                                  'UserId',
  27.                                  'ItemId'
  28.                                 );
  29.    /**
  30.     * make the API call
  31.     *
  32.     * @param    object Services_Ebay_Session
  33.     * @return   string
  34.     */
  35.     public function call(Services_Ebay_Session $session)
  36.     {
  37.         $return = parent::call($session);
  38.         $user   = Services_Ebay::loadModel('User', $return['User'], $session);
  39.  
  40.         return $user;
  41.     }
  42. }
  43. ?>