1 | <?php |
||
20 | class Standard |
||
21 | extends \Aimeos\Controller\Frontend\Base |
||
22 | implements Iface, \Aimeos\Controller\Frontend\Common\Iface |
||
23 | { |
||
24 | /** |
||
25 | * Cancels an active subscription |
||
26 | * |
||
27 | * @param string $id Unique subscription ID |
||
28 | * @return \Aimeos\MShop\Subscription\Item\Iface Canceled subscription item |
||
29 | */ |
||
30 | public function cancel( $id ) |
||
39 | |||
40 | |||
41 | /** |
||
42 | * Returns the filter for searching items |
||
43 | * |
||
44 | * @return \Aimeos\MW\Criteria\Iface Filter object |
||
45 | */ |
||
46 | public function createFilter() |
||
50 | |||
51 | |||
52 | /** |
||
53 | * Returns the subscription item for the given ID |
||
54 | * |
||
55 | * @param string $id Unique subscription ID |
||
56 | * @return \Aimeos\MShop\Subscription\Item\Iface Subscription object |
||
57 | */ |
||
58 | public function getItem( $id ) |
||
81 | |||
82 | |||
83 | /** |
||
84 | * Returns the available interval attribute items |
||
85 | * |
||
86 | * @return \Aimeos\MShop\Attribute\Item\Iface[] Associative list of intervals as keys and interval attribute items as values |
||
87 | */ |
||
88 | public function getIntervals() |
||
108 | |||
109 | /** |
||
110 | * Saves the modified subscription item |
||
111 | * |
||
112 | * @param \Aimeos\MShop\Subscription\Item\Iface $item Subscription object |
||
113 | * @return \Aimeos\MShop\Subscription\Item\Iface Saved subscription item |
||
114 | */ |
||
115 | public function saveItem( \Aimeos\MShop\Subscription\Item\Iface $item ) |
||
119 | |||
120 | |||
121 | /** |
||
122 | * Returns the subscription items based on the given filter that belong to the current user |
||
123 | * |
||
124 | * @param \Aimeos\MW\Criteria\Iface Filter object |
||
125 | * @param integer &$total|null Variable that will contain the total number of available items |
||
126 | * @return \Aimeos\MShop\Subscription\Item\Iface[] Associative list of IDs as keys and subscription objects as values |
||
127 | */ |
||
128 | public function searchItems( \Aimeos\MW\Criteria\Iface $filter, &$total = null ) |
||
141 | } |
||
142 |