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

  1. <?PHP
  2. /**
  3.  * End an auction
  4.  *
  5.  * $Id: EndItem.php,v 1.2 2004/12/14 19:08:25 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/EndItem/EndItemLogic.htm
  10.  * @see     Services_Model_Item::End()
  11.  */
  12. class Services_Ebay_Call_EndItem extends Services_Ebay_Call 
  13. {
  14.    /**
  15.     * verb of the API call
  16.     *
  17.     * @var  string
  18.     */
  19.     protected $verb = 'EndItem';
  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.                                  'EndCode'
  29.                                 );
  30.  
  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.         $return = parent::call($session);
  41.         return $return['EndItem'];
  42.     }
  43. }
  44. ?>