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 / VerifyAddSecondChanceItem.php < prev   
Encoding:
PHP Script  |  2008-07-02  |  1.4 KB  |  51 lines

  1. <?PHP
  2. /**
  3.  * Verify a second chance item before adding it
  4.  *
  5.  * $Id: VerifyAddSecondChanceItem.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/VerifyAddSecondChanceItem/VerifyAddSecondChanceItemLogic.htm
  10.  */
  11.  
  12. /**
  13.  * This call is based on AddSecondChanceItem
  14.  */
  15. require_once SERVICES_EBAY_BASEDIR.'/Ebay/Call/AddSecondChanceItem.php';
  16.  
  17.  
  18. /**
  19.  * Verify an item before adding it
  20.  *
  21.  * $Id: VerifyAddSecondChanceItem.php,v 1.1 2004/10/28 17:14:53 schst Exp $
  22.  *
  23.  * @package Services_Ebay
  24.  * @author  Stephan Schmidt <schst@php.net>
  25.  * @link    http://developer.ebay.com/DevZone/docs/API_Doc/Functions/VerifyAddSecondChanceItem/VerifyAddSecondChanceItemLogic.htm
  26.  */
  27. class Services_Ebay_Call_VerifyAddSecondChanceItem extends Services_Ebay_Call_AddSecondChanceItem
  28. {
  29.    /**
  30.     * verb of the API call
  31.     *
  32.     * @var  string
  33.     */
  34.     protected $verb = 'VerifyAddSecondChanceItem';
  35.  
  36.    /**
  37.     * make the API call
  38.     *
  39.     * @param    object Services_Ebay_Session
  40.     * @return   array
  41.     */
  42.     public function call(Services_Ebay_Session $session)
  43.     {
  44.         $return = Services_Ebay_Call::call($session);
  45.         if (isset($return['Item'])) {
  46.             return $return['Item'];
  47.         }
  48.         return false;
  49.     }
  50. }
  51. ?>