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

Source for file GetOutageSchedules.php

Documentation is available at GetOutageSchedules.php

  1. <?PHP
  2. /**
  3.  * Get the outage schedules
  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/GetOutageSchedules/GetOutageSchedules.htm
  10.  */
  11. {
  12.    /**
  13.     * verb of the API call
  14.     *
  15.     * @var  string 
  16.     */
  17.     protected $verb = 'GetOutageSchedules';
  18.  
  19.    /**
  20.     * make the API call
  21.     *
  22.     * @param    object Services_Ebay_Session 
  23.     * @return   string 
  24.     */
  25.     public function call(Services_Ebay_Session $session)
  26.     {
  27.         $return = parent::call($session);
  28.         
  29.         if (!isset($return['OutageSchedules']|| !is_array($return['OutageSchedules'])) {
  30.             return array();
  31.         }
  32.         
  33.         $list $return['OutageSchedules']['OutageSchedule'];
  34.         if (!isset($list[0])) {
  35.             $list = array($list);
  36.         }
  37.         return $list;
  38.     }
  39. }
  40. ?>

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