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

Source for file AddShipment.php

Documentation is available at AddShipment.php

  1. <?PHP
  2. /**
  3.  * Add a shipment
  4.  *
  5.  * $Id$
  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 = 'AddShipment';
  17.  
  18.    /**
  19.     * options that will be passed to the serializer
  20.     *
  21.     * @var  array 
  22.     */
  23.     protected $serializerOptions = array(
  24.                                             'defaultTagName' => 'Transaction'
  25.                                         );
  26.    /**
  27.     * parameter map that is used, when scalar parameters are passed
  28.     *
  29.     * @var  array 
  30.     */
  31.     protected $paramMap = array();
  32.  
  33.    /**
  34.     * constructor
  35.     *
  36.     * @param    array 
  37.     */
  38.     public function __construct($args)
  39.     {
  40.         $item $args[0];
  41.         
  42.         if (!$item instanceof Services_Ebay_Model_Shipment {
  43.             throw new Services_Ebay_Exception'No shipment passed.' );
  44.         }
  45.         $this->item $item;
  46.         $this->args['Shipment'$item->toArray();
  47.     }
  48.     
  49.    /**
  50.     * make the API call
  51.     *
  52.     * @param    object Services_Ebay_Session 
  53.     * @return   string 
  54.     */
  55.     public function call(Services_Ebay_Session $session)
  56.     {
  57.         $return = parent::call($session);
  58.         echo '<pre>';
  59.         print_r($return);
  60.         echo '</pre>';
  61.         return false;
  62.     }
  63. }
  64. ?>

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