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

Source for file Dispute.php

Documentation is available at Dispute.php

  1. <?PHP
  2. /**
  3.  * Model for a eBay dispute
  4.  *
  5.  *
  6.  * @package Services_Ebay
  7.  * @author  Stephan Schmidt <schst@php.net>
  8.  */
  9. class Services_Ebay_Model_Dispute extends Services_Ebay_Model implements IteratorAggregate
  10. {
  11.    /**
  12.     * dispute messages
  13.     *
  14.     * @var  array 
  15.     */
  16.     private $messages = array();
  17.     
  18.    /**
  19.     * constructor
  20.     *
  21.     * @param    array 
  22.     */
  23.     public function __construct($props$session = null)
  24.     {
  25.         if (!empty($props)) {
  26.             if (isset($props[0])) {
  27.                 foreach ($props as $tmp{
  28.                     $this->messages[$tmp['DisputeMessage']['MessageText'];
  29.                 }
  30.             else {
  31.                 $this->messages = array($messages['DisputeMessage']['MessageText']);
  32.             }
  33.         }
  34.  
  35.         parent::__construct($props$session);
  36.     }
  37.     
  38.    /**
  39.     * iterate through the messages in the dispute
  40.     *
  41.     * @return   object 
  42.     */
  43.     public function getIterator()
  44.     {
  45.         $it = new ArrayObject($this->messages);
  46.         return $it;
  47.     }
  48. }
  49. ?>

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