@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | /** |
185 | 185 | * Returns the price of the product |
186 | 186 | * |
187 | - * @return object Ilib_Variable_Float with price |
|
187 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price |
|
188 | 188 | */ |
189 | 189 | public function getPrice() |
190 | 190 | { |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | /** |
195 | 195 | * Used to set price |
196 | 196 | * |
197 | - * @param object $price Ilib_Variable_Float |
|
197 | + * @param Ilib_Variable_Float $price Ilib_Variable_Float |
|
198 | 198 | * @return void |
199 | 199 | */ |
200 | 200 | public function setPrice(Ilib_Variable_Float $price) |
@@ -206,9 +206,9 @@ discard block |
||
206 | 206 | * Returns the price of the product in given currency |
207 | 207 | * |
208 | 208 | * @param object $currency Intraface_modules_currency_Currency |
209 | - * @param integer $exchange_rage_id |
|
209 | + * @param integer $exchange_rate_id |
|
210 | 210 | * |
211 | - * @return obejct Ilib_Variable_Float with price of the variation in given currency |
|
211 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price of the variation in given currency |
|
212 | 212 | */ |
213 | 213 | public function getPriceInCurrency($currency, $exchange_rate_id = 0) |
214 | 214 | { |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * Returns price include vat of the product |
220 | 220 | * |
221 | - * @return object Ilib_Variable_Float with price including vat |
|
221 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat |
|
222 | 222 | */ |
223 | 223 | public function getPriceIncludingVat() |
224 | 224 | { |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | * |
231 | 231 | * @param object $currency Intraface_modules_currency_Currency |
232 | 232 | * @param integer $exchange_rate_id |
233 | - * @return object Ilib_Variable_Float with price including vat in given currency |
|
233 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat in given currency |
|
234 | 234 | */ |
235 | 235 | public function getPriceIncludingVatInCurrency($currency, $exchange_rate_id) |
236 | 236 | { |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | /** |
246 | 246 | * Returns the before price of the product |
247 | 247 | * |
248 | - * @return object Ilib_Variable_Float with price |
|
248 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price |
|
249 | 249 | */ |
250 | 250 | public function getBeforePrice() |
251 | 251 | { |
@@ -256,9 +256,9 @@ discard block |
||
256 | 256 | * Returns the before price of the product in given currency |
257 | 257 | * |
258 | 258 | * @param object $currency Intraface_modules_currency_Currency |
259 | - * @param integer $exchange_rage_id |
|
259 | + * @param integer $exchange_rate_id |
|
260 | 260 | * |
261 | - * @return obejct Ilib_Variable_Float with price of the variation in given currency |
|
261 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price of the variation in given currency |
|
262 | 262 | */ |
263 | 263 | public function getBeforePriceInCurrency($currency, $exchange_rate_id = 0) |
264 | 264 | { |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | /** |
269 | 269 | * Returns before price include vat of the product |
270 | 270 | * |
271 | - * @return object Ilib_Variable_Float with price including vat |
|
271 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat |
|
272 | 272 | */ |
273 | 273 | public function getBeforePriceIncludingVat() |
274 | 274 | { |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | * |
281 | 281 | * @param object $currency Intraface_modules_currency_Currency |
282 | 282 | * @param integer $exchange_rate_id |
283 | - * @return object Ilib_Variable_Float with price including vat in given currency |
|
283 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat in given currency |
|
284 | 284 | */ |
285 | 285 | public function getBeforePriceIncludingVatInCurrency($currency, $exchange_rate_id) |
286 | 286 | { |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | |
290 | 290 | /** |
291 | 291 | * Sets the weight |
292 | - * @param object $value Ilib_Value_Float |
|
292 | + * @param Ilib_Variable_Float $value Ilib_Value_Float |
|
293 | 293 | * @return void |
294 | 294 | */ |
295 | 295 | public function setWeight(Ilib_Variable_Float $value) |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | /** |
301 | 301 | * Returns the weight of the product |
302 | 302 | * |
303 | - * @return object Ilib_Variable_Float with price |
|
303 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price |
|
304 | 304 | */ |
305 | 305 | public function getWeight() |
306 | 306 | { |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | /** |
362 | 362 | * Returns the var percenttage of the product |
363 | 363 | * |
364 | - * @return object Ilib_Variable_Float with vat percent |
|
364 | + * @return Ilib_Variable_Float Ilib_Variable_Float with vat percent |
|
365 | 365 | */ |
366 | 366 | public function getVatPercent() |
367 | 367 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * |
76 | 76 | * @param object Product |
77 | 77 | * |
78 | - * @return object Ilib_Variable_Float with price |
|
78 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price |
|
79 | 79 | */ |
80 | 80 | public function getPrice($product) |
81 | 81 | { |
@@ -92,10 +92,10 @@ discard block |
||
92 | 92 | * @todo Product should not be given as parameter, but defined as relation. Product needs to be made in doctrine |
93 | 93 | * |
94 | 94 | * @param object $currency Intraface_modules_currency_Currency |
95 | - * @param integer $exchange_rage_id |
|
95 | + * @param integer $exchange_rate_id |
|
96 | 96 | * @param object $product Product |
97 | 97 | * |
98 | - * @return obejct Ilib_Variable_Float with price of the variation in given currency |
|
98 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price of the variation in given currency |
|
99 | 99 | */ |
100 | 100 | public function getPriceInCurrency($currency, $exchange_rate_id = 0, $product) |
101 | 101 | { |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * |
110 | 110 | * @param object $product Product |
111 | 111 | * |
112 | - * @return object Ilib_Variable_Float with price including vat |
|
112 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat |
|
113 | 113 | */ |
114 | 114 | public function getPriceIncludingVat($product) |
115 | 115 | { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | * @param integer $exchange_rate_id |
130 | 130 | * @param object product Product |
131 | 131 | * |
132 | - * @return object Ilib_Variable_Float with price including vat in given currency |
|
132 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price including vat in given currency |
|
133 | 133 | */ |
134 | 134 | public function getPriceIncludingVatInCurrency($currency, $exchange_rate_id, $product) |
135 | 135 | { |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * |
144 | 144 | * @param object Product |
145 | 145 | * |
146 | - * @return object Ilib_Variable_Float with price |
|
146 | + * @return Ilib_Variable_Float Ilib_Variable_Float with price |
|
147 | 147 | */ |
148 | 148 | public function getWeight($product) |
149 | 149 | { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * |
55 | 55 | * @param object $db The webshop object |
56 | 56 | * @param object $intranet The webshop object |
57 | - * @param object $webshop The webshop object |
|
57 | + * @param object $shop The webshop object |
|
58 | 58 | * @param string $session_id A session id |
59 | 59 | * |
60 | 60 | * @return void |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @param integer $product_id Product to remove |
105 | 105 | * @param integer $quantity How many should be removed |
106 | 106 | * |
107 | - * @return boelean |
|
107 | + * @return boolean |
|
108 | 108 | */ |
109 | 109 | public function remove($product_id, $product_variation_id = 0, $quantity = 1) |
110 | 110 | { |
@@ -122,6 +122,7 @@ discard block |
||
122 | 122 | * @param integer $quantity The quantity |
123 | 123 | * @param string $text To add description to product, not yet implemented |
124 | 124 | * @param integer $basketevaluation Wheter the product is from basketevaluation |
125 | + * @param integer $product_variation_id |
|
125 | 126 | * |
126 | 127 | * @return boolean |
127 | 128 | */ |
@@ -530,7 +531,7 @@ discard block |
||
530 | 531 | /** |
531 | 532 | * Gets the total weight of the basket |
532 | 533 | * |
533 | - * @return float |
|
534 | + * @return integer |
|
534 | 535 | */ |
535 | 536 | public function getTotalWeight() |
536 | 537 | { |
@@ -34,7 +34,6 @@ discard block |
||
34 | 34 | /** |
35 | 35 | * Constructor |
36 | 36 | * |
37 | - * @param object $kernel Kernel registry |
|
38 | 37 | * @param int $id Id of the BasketEvaluation |
39 | 38 | * |
40 | 39 | * @return void |
@@ -106,6 +105,9 @@ discard block |
||
106 | 105 | return true; |
107 | 106 | } |
108 | 107 | |
108 | + /** |
|
109 | + * @param Struct $input |
|
110 | + */ |
|
109 | 111 | function validate($input) |
110 | 112 | { |
111 | 113 | $validator = new Intraface_Validator($this->error); |
@@ -226,7 +226,6 @@ discard block |
||
226 | 226 | * |
227 | 227 | * @param array $input Array with customer data |
228 | 228 | * @param array $products Array with products |
229 | - * @param object $mailer mailer to send e-mail |
|
230 | 229 | * |
231 | 230 | * @return integer Order id |
232 | 231 | */ |
@@ -392,9 +391,9 @@ discard block |
||
392 | 391 | * @param integer $order_id |
393 | 392 | * @param integer $transaction_number |
394 | 393 | * @param integer $transaction_status |
395 | - * @param float $transaction_amount |
|
394 | + * @param integer $amount |
|
396 | 395 | * |
397 | - * @return boolean |
|
396 | + * @return integer |
|
398 | 397 | */ |
399 | 398 | public function addOnlinePayment($order_id, $transaction_number, $transaction_status, $amount) |
400 | 399 | { |
@@ -434,6 +433,9 @@ discard block |
||
434 | 433 | } |
435 | 434 | } |
436 | 435 | |
436 | + /** |
|
437 | + * @param integer $payment_id |
|
438 | + */ |
|
437 | 439 | private function sendEmailOnOnlinePayment($payment_id) |
438 | 440 | { |
439 | 441 | $this->kernel->useShared('email'); |
@@ -33,10 +33,10 @@ |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * @param string $headline Headline |
|
37 | 36 | * @param object $keyword Keyword object |
37 | + * @param string $description |
|
38 | 38 | * |
39 | - * @return integer |
|
39 | + * @return boolean |
|
40 | 40 | */ |
41 | 41 | function add($description, $keyword) |
42 | 42 | { |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Constructor |
20 | 20 | * |
21 | - * @param object $todo Todo liste |
|
21 | + * @param TodoList $todo Todo liste |
|
22 | 22 | * @param integer $id Id for item |
23 | 23 | * |
24 | 24 | * @return void |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * |
160 | 160 | * @param object $db Database object |
161 | 161 | * |
162 | - * @return object |
|
162 | + * @return Ilib_Position |
|
163 | 163 | */ |
164 | 164 | public function getPosition($db) |
165 | 165 | { |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * |
110 | 110 | * @param integer $id Id for specific item |
111 | 111 | * |
112 | - * @return array |
|
112 | + * @return TodoItem |
|
113 | 113 | */ |
114 | 114 | public function getItem($id = 0) |
115 | 115 | { |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * |
125 | 125 | * @deprecated |
126 | 126 | * |
127 | - * @return array |
|
127 | + * @return TodoItem |
|
128 | 128 | */ |
129 | 129 | private function loadItem($id = 0) |
130 | 130 | { |
@@ -87,7 +87,7 @@ |
||
87 | 87 | * @param integer $product_id Product to remove |
88 | 88 | * @param integer $quantity How many should be removed |
89 | 89 | * |
90 | - * @return boelean |
|
90 | + * @return boolean |
|
91 | 91 | */ |
92 | 92 | public function remove($product_id, $quantity = 1) |
93 | 93 | { |