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

  1. <?PHP
  2. /**
  3.  * Add information to the item descriptions
  4.  *
  5.  * $Id: AddToItemDescription.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/AddToItemDescription/AddToItemDescriptionLogic.htm
  10.  * @see     Services_Model_Item::AddToDescription()
  11.  */
  12. class Services_Ebay_Call_AddToItemDescription extends Services_Ebay_Call 
  13. {
  14.    /**
  15.     * verb of the API call
  16.     *
  17.     * @var  string
  18.     */
  19.     protected $verb = 'AddToItemDescription';
  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.                                  'Description'
  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.         if ($return['AddToItemDescription']['Status'] === 'Success') {
  42.             return true;
  43.         }
  44.         return false;
  45.     }
  46. }
  47. ?>