@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * META METHOD: Add an order to the job list if it does not exist already. |
153 | 153 | * |
154 | 154 | * @param Order $order |
155 | - * @param Int $deferInSeconds |
|
155 | + * @param Int $deferTimeInSeconds |
|
156 | 156 | */ |
157 | 157 | public function AddOrderToQueue($order, $deferTimeInSeconds) |
158 | 158 | { |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * |
185 | 185 | * |
186 | 186 | * @param Order $order optional |
187 | - * @return boolean | string |
|
187 | + * @return boolean|string | string |
|
188 | 188 | */ |
189 | 189 | public function process($order = null) |
190 | 190 | { |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | * |
245 | 245 | * @param Order $order |
246 | 246 | * |
247 | - * @return null | OrderProcessQueue |
|
247 | + * @return DataObject | OrderProcessQueue |
|
248 | 248 | */ |
249 | 249 | public function getQueueObject($order) |
250 | 250 | { |
@@ -301,7 +301,6 @@ discard block |
||
301 | 301 | |
302 | 302 | /** |
303 | 303 | * META METHOD: all orders with a queue object |
304 | - * @param int $id force this Order to be processed |
|
305 | 304 | * @param int $limit total number of orders that can be retrieved at any one time |
306 | 305 | * |
307 | 306 | * @return DataList (of orders) |
@@ -467,7 +466,7 @@ discard block |
||
467 | 466 | |
468 | 467 | /** |
469 | 468 | * sort phrase for orders, based in order IDs... |
470 | - * @param array $orderIds |
|
469 | + * @param array $orderIDs |
|
471 | 470 | * @return string |
472 | 471 | */ |
473 | 472 | protected function sortPhraseForOrderIDs($orderIDs) |
@@ -100,6 +100,11 @@ |
||
100 | 100 | } |
101 | 101 | } |
102 | 102 | |
103 | + /** |
|
104 | + * @param DataObject $lastOrderStep |
|
105 | + * @param string $orderStatusLogClassName |
|
106 | + * @param integer $offset |
|
107 | + */ |
|
103 | 108 | public function getOrdersForCreateSubmissionLogForArchivedOrders($lastOrderStep, $orderStatusLogClassName, $offset) |
104 | 109 | { |
105 | 110 | return Order::get() |
@@ -215,6 +215,7 @@ discard block |
||
215 | 215 | * Returns the "new order" link. |
216 | 216 | * |
217 | 217 | * @param int | String $orderID - not used in CartPage |
218 | + * @param integer $orderID |
|
218 | 219 | * |
219 | 220 | * @return string (URLSegment) |
220 | 221 | */ |
@@ -227,6 +228,7 @@ discard block |
||
227 | 228 | * Returns the "copy order" link. |
228 | 229 | * |
229 | 230 | * @param int | String $orderID - not used in CartPage |
231 | + * @param integer $orderID |
|
230 | 232 | * |
231 | 233 | * @return string (URLSegment) |
232 | 234 | */ |
@@ -240,7 +242,7 @@ discard block |
||
240 | 242 | * |
241 | 243 | * @param int|string $orderID ID of the order |
242 | 244 | * |
243 | - * @return int | String (URLSegment) |
|
245 | + * @return string | String (URLSegment) |
|
244 | 246 | */ |
245 | 247 | public static function get_order_link($orderID) |
246 | 248 | { |
@@ -382,6 +384,10 @@ discard block |
||
382 | 384 | * @todo: check if we need this....! |
383 | 385 | **/ |
384 | 386 | private $message = ''; |
387 | + |
|
388 | + /** |
|
389 | + * @param string $s |
|
390 | + */ |
|
385 | 391 | public static function set_message($s) |
386 | 392 | { |
387 | 393 | $sessionCode = EcommerceConfig::get('CartPage_Controller', 'session_code'); |
@@ -703,7 +709,7 @@ discard block |
||
703 | 709 | |
704 | 710 | |
705 | 711 | /** |
706 | - * @return string |
|
712 | + * @return DBField |
|
707 | 713 | **/ |
708 | 714 | public function Message() |
709 | 715 | { |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | * standard SS method. |
301 | 301 | * |
302 | 302 | * @param BuyableModel $buyable |
303 | - * @param float $quantity |
|
303 | + * @param integer $quantity |
|
304 | 304 | * |
305 | 305 | * @return FieldList |
306 | 306 | **/ |
@@ -580,7 +580,7 @@ discard block |
||
580 | 580 | } |
581 | 581 | |
582 | 582 | /** |
583 | - * @return Field (EcomQuantityField) |
|
583 | + * @return EcomQuantityField (EcomQuantityField) |
|
584 | 584 | **/ |
585 | 585 | public function QuantityField() |
586 | 586 | { |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | * can be executed one after the other, each |
496 | 496 | * being less specific than the last... |
497 | 497 | * |
498 | - * @return array |
|
498 | + * @return boolean |
|
499 | 499 | */ |
500 | 500 | protected function addToResults($listToAdd) |
501 | 501 | { |
@@ -518,8 +518,8 @@ discard block |
||
518 | 518 | * can be executed one after the other, each |
519 | 519 | * being less specific than the last... |
520 | 520 | * |
521 | - * @param array $words - words being search |
|
522 | 521 | * @param array $fields - fields being searched |
522 | + * @param string $keywordPhrase |
|
523 | 523 | * |
524 | 524 | * @return array |
525 | 525 | */ |
@@ -100,6 +100,10 @@ |
||
100 | 100 | } |
101 | 101 | |
102 | 102 | |
103 | + /** |
|
104 | + * @param integer|null $limit |
|
105 | + * @param integer|null $startAt |
|
106 | + */ |
|
103 | 107 | protected function tryToFinaliseOrders($orders, $limit, $startAt) |
104 | 108 | { |
105 | 109 | $orders = $orders->limit($limit, $startAt); |