@@ -330,7 +330,7 @@ |
||
330 | 330 | * In templates, it is used like this: |
331 | 331 | * $EcommerceConfigAjax.TableID. |
332 | 332 | * |
333 | - * @return EcommerceConfigAjax |
|
333 | + * @return EcommerceConfigAjaxDefinitions |
|
334 | 334 | **/ |
335 | 335 | public function AJAXDefinitions() |
336 | 336 | { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * |
27 | 27 | * @see Order::doNextStatus |
28 | 28 | * |
29 | - * @param Order object |
|
29 | + * @param Order Order |
|
30 | 30 | * |
31 | 31 | * @return bool - true if the current step is ready to be run... |
32 | 32 | **/ |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * |
44 | 44 | * @see Order::doNextStatus |
45 | 45 | * |
46 | - * @param Order object |
|
46 | + * @param Order Order |
|
47 | 47 | * |
48 | 48 | * @return bool - true if run correctly. |
49 | 49 | **/ |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * |
44 | 44 | * @see Order::doNextStatus |
45 | 45 | * |
46 | - * @param Order object |
|
46 | + * @param Order Order |
|
47 | 47 | * |
48 | 48 | * @return bool - true if the current step is ready to be run... |
49 | 49 | **/ |
@@ -12,7 +12,7 @@ |
||
12 | 12 | class OrderEmailRecordFilters_MultiOptionsetStatusIDFilter extends ExactMatchFilter |
13 | 13 | { |
14 | 14 | /** |
15 | - *@return SQLQuery |
|
15 | + *@return DataQuery |
|
16 | 16 | **/ |
17 | 17 | public function apply(DataQuery $query) |
18 | 18 | { |
@@ -151,7 +151,7 @@ |
||
151 | 151 | * If the order already exists, it will update the seconds and the creation time. |
152 | 152 | * |
153 | 153 | * @param Order $order [description] |
154 | - * @param Int $deferInSeconds [description] |
|
154 | + * @param Int $deferTimeInSeconds [description] |
|
155 | 155 | */ |
156 | 156 | public function AddOrderToQueue($order, $deferTimeInSeconds) |
157 | 157 | { |
@@ -279,8 +279,8 @@ discard block |
||
279 | 279 | * Adds any number of items to the cart. |
280 | 280 | * Returns the order item on succes OR false on failure. |
281 | 281 | * |
282 | - * @param DataObject $buyable - the buyable (generally a product) being added to the cart |
|
283 | - * @param float $quantity - number of items add. |
|
282 | + * @param BuyableModel $buyable - the buyable (generally a product) being added to the cart |
|
283 | + * @param integer $quantity - number of items add. |
|
284 | 284 | * @param mixed $parameters - array of parameters to target a specific order item. eg: group=1, length=5 |
285 | 285 | * if you make it a form, it will save the form into the orderitem |
286 | 286 | * |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | /** |
323 | 323 | * Sets quantity for an item in the cart. |
324 | 324 | * |
325 | - * @param DataObject $buyable - the buyable (generally a product) being added to the cart |
|
325 | + * @param BuyableModel $buyable - the buyable (generally a product) being added to the cart |
|
326 | 326 | * @param float $quantity - number of items add. |
327 | 327 | * @param array $parameters - array of parameters to target a specific order item. eg: group=1, length=5 |
328 | 328 | * |
@@ -348,8 +348,8 @@ discard block |
||
348 | 348 | /** |
349 | 349 | * Removes any number of items from the cart. |
350 | 350 | * |
351 | - * @param DataObject $buyable - the buyable (generally a product) being added to the cart |
|
352 | - * @param float $quantity - number of items add. |
|
351 | + * @param BuyableModel $buyable - the buyable (generally a product) being added to the cart |
|
352 | + * @param integer $quantity - number of items add. |
|
353 | 353 | * @param array $parameters - array of parameters to target a specific order item. eg: group=1, length=5 |
354 | 354 | * |
355 | 355 | * @return false | DataObject (OrderItem) |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | /** |
383 | 383 | * Delete item from the cart. |
384 | 384 | * |
385 | - * @param OrderItem $buyable - the buyable (generally a product) being added to the cart |
|
385 | + * @param BuyableModel $buyable - the buyable (generally a product) being added to the cart |
|
386 | 386 | * @param array $parameters - array of parameters to target a specific order item. eg: group=1, length=5 |
387 | 387 | * |
388 | 388 | * @return bool | item - successfully removed |
@@ -407,9 +407,8 @@ discard block |
||
407 | 407 | /** |
408 | 408 | * Checks and prepares variables for a quantity change (add, edit, remove) for an Order Item. |
409 | 409 | * |
410 | - * @param DataObject $buyable - the buyable (generally a product) being added to the cart |
|
411 | - * @param float $quantity - number of items add. |
|
412 | - * @param bool $mustBeExistingItems - if false, the Order Item gets created if it does not exist - if TRUE the order item is searched for and an error shows if there is no Order item. |
|
410 | + * @param BuyableModel $buyable - the buyable (generally a product) being added to the cart |
|
411 | + * @param bool $mustBeExistingItem - if false, the Order Item gets created if it does not exist - if TRUE the order item is searched for and an error shows if there is no Order item. |
|
413 | 412 | * @param array | Form $parameters - array of parameters to target a specific order item. eg: group=1, length=5* |
414 | 413 | * - form saved into item... |
415 | 414 | * |
@@ -477,7 +476,7 @@ discard block |
||
477 | 476 | * we do not need things like "canPurchase" here, because that is with the "addBuyable" method. |
478 | 477 | * NOTE: does not write! |
479 | 478 | * |
480 | - * @param DataObject $buyable |
|
479 | + * @param BuyableModel $buyable |
|
481 | 480 | * @param array $parameters |
482 | 481 | * |
483 | 482 | * @return OrderItem |
@@ -617,6 +616,7 @@ discard block |
||
617 | 616 | * Removes a modifier from the cart. |
618 | 617 | * |
619 | 618 | * @param Int/ OrderModifier |
619 | + * @param integer $modifier |
|
620 | 620 | * |
621 | 621 | * @return bool |
622 | 622 | */ |
@@ -683,6 +683,7 @@ discard block |
||
683 | 683 | * NOTE: tried to copy part to the Order Class - but that was not much of a go-er. |
684 | 684 | * |
685 | 685 | * @param int | Order $order |
686 | + * @param DataObject $oldOrder |
|
686 | 687 | * |
687 | 688 | * @return Order | false |
688 | 689 | **/ |
@@ -759,6 +760,7 @@ discard block |
||
759 | 760 | * sets region in order so that modifiers can be recalculated, etc... |
760 | 761 | * |
761 | 762 | * @param int | String - $regionID you can use the ID or the code. |
763 | + * @param integer $regionID |
|
762 | 764 | * |
763 | 765 | * @return bool |
764 | 766 | **/ |
@@ -901,7 +903,7 @@ discard block |
||
901 | 903 | /** |
902 | 904 | * Stores a message that can later be returned via ajax or to $form->sessionMessage();. |
903 | 905 | * |
904 | - * @param $message - the message, which could be a notification of successful action, or reason for failure |
|
906 | + * @param string $message - the message, which could be a notification of successful action, or reason for failure |
|
905 | 907 | * @param $type - please use good, bad, warning |
906 | 908 | */ |
907 | 909 | public function addMessage($message, $status = 'good') |
@@ -927,7 +929,7 @@ discard block |
||
927 | 929 | /** |
928 | 930 | * Gets an existing order item based on buyable and passed parameters. |
929 | 931 | * |
930 | - * @param DataObject $buyable |
|
932 | + * @param BuyableModel $buyable |
|
931 | 933 | * @param array $parameters |
932 | 934 | * |
933 | 935 | * @return OrderItem | null |
@@ -953,7 +955,7 @@ discard block |
||
953 | 955 | /** |
954 | 956 | * Removes parameters that aren't in the default array, merges with default parameters, and converts raw2SQL. |
955 | 957 | * |
956 | - * @param array $parameters |
|
958 | + * @param array $params |
|
957 | 959 | * |
958 | 960 | * @return cleaned array |
959 | 961 | */ |
@@ -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 | */ |
@@ -240,7 +241,7 @@ discard block |
||
240 | 241 | * |
241 | 242 | * @param int|string $orderID ID of the order |
242 | 243 | * |
243 | - * @return int | String (URLSegment) |
|
244 | + * @return string | String (URLSegment) |
|
244 | 245 | */ |
245 | 246 | public static function get_order_link($orderID) |
246 | 247 | { |
@@ -382,6 +383,10 @@ discard block |
||
382 | 383 | * @todo: check if we need this....! |
383 | 384 | **/ |
384 | 385 | private $message = ''; |
386 | + |
|
387 | + /** |
|
388 | + * @param string $s |
|
389 | + */ |
|
385 | 390 | public static function set_message($s) |
386 | 391 | { |
387 | 392 | $sessionCode = EcommerceConfig::get('CartPage_Controller', 'session_code'); |
@@ -651,7 +656,7 @@ discard block |
||
651 | 656 | } |
652 | 657 | |
653 | 658 | /** |
654 | - * @return string |
|
659 | + * @return DBField |
|
655 | 660 | **/ |
656 | 661 | public function Message() |
657 | 662 | { |