Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?PHP
2
/**
3
 * Get the watch list of the current user
4
 *
5
 * $Id: GetWatchList.php,v 1.2 2005/01/01 15:57:59 schst Exp $
6
 *
7
 * @package Services_Ebay
8
 * @author  Stephan Schmidt <schst@php.net>
9
 * @link    http://developer.ebay.com/DevZone/docs/API_Doc/Functions/GetWatchList/GetWatchListLogic.htm
10
 */
11
class Services_Ebay_Call_GetWatchList extends Services_Ebay_Call
12
{
13
   /**
14
    * verb of the API call
15
    *
16
    * @var  string
17
    */
18
    protected $verb = 'GetWatchList';
19
 
20
   /**
21
    * arguments of the call
22
    *
23
    * @var  array
24
    */
25
    protected $args = array(
26
                            'StartingPage' => 1,
27
                            'ItemsPerPage' => 25
28
                        );
29
 
30
   /**
31
    * parameter map that is used, when scalar parameters are passed
32
    *
33
    * @var  array
34
    */
35
    protected $paramMap = array(
36
                                 'WatchSort'
37
                                );
38
 
39
   /**
40
    * make the API call
41
    *
42
    * @param    object Services_Ebay_Session
43
    * @return   string
44
    */
45
    public function call(Services_Ebay_Session $session)
46
    {
47
        $return = parent::call($session);
48
        return Services_Ebay::loadModel('ItemList', $return['WatchList']['Items'], $session);
49
    }
50
}
51
?>