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 promotion rules
4
 *
5
 * $Id: GetPromotionRules.php,v 1.1 2004/12/31 18:07:57 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/GetPromotionRules/GetPromotionRulesLogic.htm
10
 */
11
class Services_Ebay_Call_GetPromotionRules extends Services_Ebay_Call
12
{
13
   /**
14
    * verb of the API call
15
    *
16
    * @var  string
17
    */
18
    protected $verb = 'GetPromotionRules';
19
 
20
   /**
21
    * parameter map that is used, when scalar parameters are passed
22
    *
23
    * @var  array
24
    */
25
    protected $paramMap = array(
26
                                 'PromotionMethod',
27
                                 'ItemId',
28
                                 'StoreCatId'
29
                                );
30
 
31
   /**
32
    * make the API call
33
    *
34
    * @param    object Services_Ebay_Session
35
    * @return   string
36
    */
37
    public function call(Services_Ebay_Session $session)
38
    {
39
        $this->args = array('Context' => $this->args);
40
        $return = parent::call($session);
41
        if (!empty($return['PromotionRules'])) {
42
            return $return['PromotionRules'];
43
        }
44
        return array();
45
    }
46
}
47
?>