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

Source for file GetPreferences.php

Documentation is available at GetPreferences.php

  1. <?PHP
  2. /**
  3.  * Get user preferences
  4.  *
  5.  * $Id$
  6.  *
  7.  * @package Services_Ebay
  8.  * @author  Stephan Schmidt <schst@php.net>
  9.  * @link    http://developer.ebay.com/DevZone/docs/API_Doc/Functions/GetPreferences/GetPreferencesLogic.htm
  10.  * @todo    build a model for preferences
  11.  */
  12. {
  13.    /**
  14.     * verb of the API call
  15.     *
  16.     * @var  string 
  17.     */
  18.     protected $verb = 'GetPreferences';
  19.  
  20.    /**
  21.     * options that will be passed to the serializer
  22.     *
  23.     * @var  array 
  24.     */
  25.     protected $serializerOptions = array(
  26.                                             'defaultTagName' => 'Preference'
  27.                                         );
  28.    /**
  29.     * create a new call
  30.     *
  31.     * @param    array   details you want to retrieve
  32.     */
  33.     public function __construct($args)
  34.     {
  35.         if (!empty($args)) {
  36.             if (is_array($args[0])) {
  37.                 $this->args['Preferences'$args[0];
  38.             else {
  39.                 $this->args['Preferences'= array$args[0);
  40.             }
  41.         }
  42.     }
  43.  
  44.    /**
  45.     * make the API call
  46.     *
  47.     * @param    object Services_Ebay_Session 
  48.     * @return   string 
  49.     */
  50.     public function call(Services_Ebay_Session $session)
  51.     {
  52.         $return = parent::call($session);
  53.         return Services_Ebay::loadModel('Preferences'$return['GetPreferencesResult']['Preferences']$session);
  54.     }
  55. }
  56. ?>

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