home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / php / PEAR / Services / Ebay / Model / FeedbackEntry.php < prev    next >
Encoding:
PHP Script  |  2008-07-02  |  883 b   |  37 lines

  1. <?PHP
  2. /**
  3.  * Model for a eBay feedback
  4.  *
  5.  *
  6.  * @package Services_Ebay
  7.  * @author  Stephan Schmidt <schst@php.net>
  8.  */
  9. class Services_Ebay_Model_FeedbackEntry extends Services_Ebay_Model
  10. {
  11.    /**
  12.     * get the item, for which the feedback was given
  13.     *
  14.     * @return object Services_Ebay_Model_Item
  15.     */
  16.     public function getItem()
  17.     {
  18.         $args = array(
  19.                         'Id' => $this->properties['ItemNumber']
  20.                     );
  21.         $call = Services_Ebay::loadAPICall('GetItem');
  22.         $call->setArgs($args);
  23.         
  24.         return $call->call($this->session);
  25.     }
  26.     
  27.    /**
  28.     * create string representation of the entry
  29.     *
  30.     * @return string
  31.     */
  32.     public function __toString()
  33.     {
  34.         return sprintf('%s: %s', $this->properties['CommentingUser'], $this->properties['CommentText']);
  35.     }
  36. }
  37. ?>