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

Source for file Bid.php

Documentation is available at Bid.php

  1. <?PHP
  2. /**
  3.  * Model for a single bid
  4.  *
  5.  * @package Services_Ebay
  6.  * @author  Carsten Lucke <luckec@php.net>
  7.  */
  8. {
  9.     /**
  10.      * The bidder.
  11.      * 
  12.      * @var Services_Ebay_Model_User the bidding user
  13.      */
  14.     private $user;
  15.     
  16.     /**
  17.      * Constructor
  18.      *
  19.      * @param array     $props  properties
  20.      * @param Services_Ebay_Session $session    session
  21.      * @param integer   $DetailLevel    detail-level
  22.      */
  23.     public function __construct($props$session = null$DetailLevel = 0{
  24.         parent::__construct($props$session$DetailLevel);
  25.         
  26.         $this->user Services_Ebay::loadModel('User'$props['User']$session);
  27.         unset($this->properties['User']);
  28.     }
  29.     
  30.     /**
  31.      * Returns the user model with abbreviated user-information.
  32.      * 
  33.      * To fetch all information use the model's Get() method.
  34.      * 
  35.      * <code>
  36.      *  $user = $bid->getBidder();
  37.      *  
  38.      *  // fetch the user's details from eBay
  39.      *  $user->Get($itemId);
  40.      * </code>
  41.      * 
  42.      * @return  Services_Ebay_Model_User    the user
  43.      */
  44.     public function getBidder({
  45.         return $this->user;
  46.     }
  47. }
  48. ?>

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