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$
  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.     * compatibility level this method was introduced
  21.     *
  22.     * @var integer 
  23.     */
  24.     protected $since = 437;
  25.  
  26.    /**
  27.     * parameter map that is used, when scalar parameters are passed
  28.     *
  29.     * @var  array 
  30.     */
  31.     protected $paramMap = array(
  32.                                     'DetailName'
  33.                                 );
  34.     
  35.    /**
  36.     * make the API call
  37.     *
  38.     * @param    object Services_Ebay_Session 
  39.     * @return   string 
  40.     */
  41.     public function call(Services_Ebay_Session $session)
  42.     {
  43.         $returnElement $this->args['DetailName'];
  44.         $returnSubElements str_replace('Details'''$returnElement);
  45.         $return = parent::call($session);
  46.         if (!isset($return[$returnElement][0][$returnSubElements])) {
  47.             $return[$returnElement][$returnSubElements= array($return[$returnElement][$returnSubElements]);
  48.         }
  49.         return $return[$returnElement];
  50.     }
  51. }
  52. ?>

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