Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 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
?>