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

Documentation generated on Mon, 11 Mar 2019 14:19:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.