Services_Ebay
[ class tree: Services_Ebay ] [ index: Services_Ebay ] [ all elements ]

Source for file SetPreferences.php

Documentation is available at SetPreferences.php

  1. <?PHP
  2. /**
  3.  * Set eBay preferences
  4.  *
  5.  * $Id: SetPreferences.php,v 1.2 2004/10/29 21:16:50 schst Exp $
  6.  *
  7.  * @package Services_Ebay
  8.  * @author  Stephan Schmidt <schst@php.net>
  9.  */
  10. {
  11.    /**
  12.     * verb of the API call
  13.     *
  14.     * @var  string 
  15.     */
  16.     protected $verb = 'SetPreferences';
  17.  
  18.    /**
  19.     * options that will be passed to the serializer
  20.     *
  21.     * @var  array 
  22.     */
  23.     protected $serializerOptions = array(
  24.                                             'mode' => 'simplexml'
  25.                                         );
  26.    /**
  27.     * parameter map that is used, when scalar parameters are passed
  28.     *
  29.     * @var  array 
  30.     */
  31.     protected $paramMap = array();
  32.  
  33.    /**
  34.     * constructor
  35.     *
  36.     * @param    array 
  37.     */
  38.     public function __construct($args)
  39.     {
  40.         $prefs $args[0];
  41.         
  42.         if (!$prefs instanceof Services_Ebay_Model_Preferences {
  43.             throw new Services_Ebay_Exception'No preferences passed.' );
  44.         }
  45.         $this->args = $prefs->toArray();
  46.     }
  47.     
  48.    /**
  49.     * make the API call
  50.     *
  51.     * @param    object Services_Ebay_Session 
  52.     * @return   string 
  53.     */
  54.     public function call(Services_Ebay_Session $session)
  55.     {
  56.         $return = parent::call($session);
  57.         if ($return['CallStatus']['Status'=== 'Success'{
  58.             return true;
  59.         }
  60.         return false;
  61.     }
  62. }
  63. ?>

Documentation generated on Mon, 11 Mar 2019 13:58:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.