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

Source for file GeteBayDetails.php

Documentation is available at GeteBayDetails.php

  1. <?PHP
  2. /**
  3.  * Get Details about an eBay site
  4.  *
  5.  * $Id: GeteBayDetails.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.  */
  10. {
  11.    /**
  12.     * verb of the API call
  13.     *
  14.     * @var  string 
  15.     */
  16.     protected $verb = 'GeteBayDetails';
  17.  
  18.    /**
  19.     * options that will be passed to the serializer
  20.     *
  21.     * @var  array 
  22.     */
  23.     protected $serializerOptions = array(
  24.                                             'defaultTagName' => 'Detail'
  25.                                         );
  26.    /**
  27.     * create a new call
  28.     *
  29.     * @param    array   details you want to retrieve
  30.     */
  31.     public function __construct($args)
  32.     {
  33.         if (!empty($args)) {
  34.             $this->args['Details'= array();
  35.             foreach ($args as $detail{
  36.                 array_push($this->args['Details']array('Name' => $detail));
  37.             }
  38.         }
  39.     }
  40.     
  41.    /**
  42.     * make the API call
  43.     *
  44.     * @param    object Services_Ebay_Session 
  45.     * @return   string 
  46.     */
  47.     public function call(Services_Ebay_Session $session)
  48.     {
  49.         $return = parent::call($session);
  50.         if (!isset($return['Details']['Detail'][0])) {
  51.             $return['Details']['Detail'= array($return['Details']['Detail']);
  52.         }
  53.         return $return['Details']['Detail'];
  54.     }
  55. }
  56. ?>

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