@@ -359,8 +359,8 @@ discard block |
||
359 | 359 | * Adds any number of items to the cart. |
360 | 360 | * Returns the order item on succes OR false on failure. |
361 | 361 | * |
362 | - * @param DataObject $buyable - the buyable (generally a product) being added to the cart |
|
363 | - * @param float $quantity - number of items add. |
|
362 | + * @param BuyableModel $buyable - the buyable (generally a product) being added to the cart |
|
363 | + * @param integer $quantity - number of items add. |
|
364 | 364 | * @param mixed $parameters - array of parameters to target a specific order item. eg: group=1, length=5 |
365 | 365 | * if you make it a form, it will save the form into the orderitem |
366 | 366 | * returns null if the current user does not allow order manipulation or saving (e.g. session disabled) |
@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | * |
408 | 408 | * returns null if the current user does not allow order manipulation or saving (e.g. session disabled) |
409 | 409 | * |
410 | - * @param DataObject $buyable - the buyable (generally a product) being added to the cart |
|
410 | + * @param BuyableModel $buyable - the buyable (generally a product) being added to the cart |
|
411 | 411 | * @param float $quantity - number of items add. |
412 | 412 | * @param array $parameters - array of parameters to target a specific order item. eg: group=1, length=5 |
413 | 413 | * |
@@ -437,8 +437,8 @@ discard block |
||
437 | 437 | * |
438 | 438 | * returns null if the current user does not allow order manipulation or saving (e.g. session disabled) |
439 | 439 | * |
440 | - * @param DataObject $buyable - the buyable (generally a product) being added to the cart |
|
441 | - * @param float $quantity - number of items add. |
|
440 | + * @param BuyableModel $buyable - the buyable (generally a product) being added to the cart |
|
441 | + * @param integer $quantity - number of items add. |
|
442 | 442 | * @param array $parameters - array of parameters to target a specific order item. eg: group=1, length=5 |
443 | 443 | * |
444 | 444 | * @return false | OrderItem | null |
@@ -475,7 +475,7 @@ discard block |
||
475 | 475 | * |
476 | 476 | * returns null if the current user does not allow order manipulation or saving (e.g. session disabled) |
477 | 477 | * |
478 | - * @param OrderItem $buyable - the buyable (generally a product) being added to the cart |
|
478 | + * @param BuyableModel $buyable - the buyable (generally a product) being added to the cart |
|
479 | 479 | * @param array $parameters - array of parameters to target a specific order item. eg: group=1, length=5 |
480 | 480 | * |
481 | 481 | * @return bool | item | null - successfully removed |
@@ -502,9 +502,8 @@ discard block |
||
502 | 502 | /** |
503 | 503 | * Checks and prepares variables for a quantity change (add, edit, remove) for an Order Item. |
504 | 504 | * |
505 | - * @param DataObject $buyable - the buyable (generally a product) being added to the cart |
|
506 | - * @param float $quantity - number of items add. |
|
507 | - * @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. |
|
505 | + * @param BuyableModel $buyable - the buyable (generally a product) being added to the cart |
|
506 | + * @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. |
|
508 | 507 | * @param array | Form $parameters - array of parameters to target a specific order item. eg: group=1, length=5* |
509 | 508 | * - form saved into item... |
510 | 509 | * |
@@ -569,7 +568,7 @@ discard block |
||
569 | 568 | * we do not need things like "canPurchase" here, because that is with the "addBuyable" method. |
570 | 569 | * NOTE: does not write! |
571 | 570 | * |
572 | - * @param DataObject $buyable |
|
571 | + * @param BuyableModel $buyable |
|
573 | 572 | * @param array $parameters |
574 | 573 | * |
575 | 574 | * @return OrderItem |
@@ -631,7 +630,7 @@ discard block |
||
631 | 630 | /** |
632 | 631 | * returns null if the current user does not allow order manipulation or saving (e.g. session disabled) |
633 | 632 | * |
634 | - * @return bool | null |
|
633 | + * @return boolean|null | null |
|
635 | 634 | */ |
636 | 635 | public function save() |
637 | 636 | { |
@@ -695,7 +694,7 @@ discard block |
||
695 | 694 | * |
696 | 695 | * @param OrderModifier $modifier |
697 | 696 | * |
698 | - * @return bool | null |
|
697 | + * @return boolean|null | null |
|
699 | 698 | */ |
700 | 699 | public function removeModifier(OrderModifier $modifier) |
701 | 700 | { |
@@ -727,8 +726,9 @@ discard block |
||
727 | 726 | * returns null if the current user does not allow order manipulation or saving (e.g. session disabled) |
728 | 727 | * |
729 | 728 | * @param Int/ OrderModifier |
729 | + * @param integer $modifier |
|
730 | 730 | * |
731 | - * @return bool |
|
731 | + * @return boolean|null |
|
732 | 732 | */ |
733 | 733 | public function addModifier($modifier) |
734 | 734 | { |
@@ -856,7 +856,7 @@ discard block |
||
856 | 856 | * @param Order $oldOrder |
857 | 857 | * @param Order $newOrder |
858 | 858 | * |
859 | - * @return Ordeer (the new order) |
|
859 | + * @return Order (the new order) |
|
860 | 860 | */ |
861 | 861 | public function CopyOrderOnly($oldOrder, $newOrder) |
862 | 862 | { |
@@ -907,7 +907,7 @@ discard block |
||
907 | 907 | * |
908 | 908 | * @param string - $countryCode |
909 | 909 | * |
910 | - * @return bool |
|
910 | + * @return boolean|null |
|
911 | 911 | **/ |
912 | 912 | public function setCountry($countryCode) |
913 | 913 | { |
@@ -929,6 +929,7 @@ discard block |
||
929 | 929 | * sets region in order so that modifiers can be recalculated, etc... |
930 | 930 | * |
931 | 931 | * @param int | String - $regionID you can use the ID or the code. |
932 | + * @param integer $regionID |
|
932 | 933 | * |
933 | 934 | * @return bool |
934 | 935 | **/ |
@@ -1071,7 +1072,7 @@ discard block |
||
1071 | 1072 | /** |
1072 | 1073 | * Stores a message that can later be returned via ajax or to $form->sessionMessage();. |
1073 | 1074 | * |
1074 | - * @param $message - the message, which could be a notification of successful action, or reason for failure |
|
1075 | + * @param string $message - the message, which could be a notification of successful action, or reason for failure |
|
1075 | 1076 | * @param $type - please use good, bad, warning |
1076 | 1077 | */ |
1077 | 1078 | public function addMessage($message, $status = 'good') |
@@ -1097,7 +1098,7 @@ discard block |
||
1097 | 1098 | /** |
1098 | 1099 | * Gets an existing order item based on buyable and passed parameters. |
1099 | 1100 | * |
1100 | - * @param DataObject $buyable |
|
1101 | + * @param BuyableModel $buyable |
|
1101 | 1102 | * @param array $parameters |
1102 | 1103 | * |
1103 | 1104 | * @return OrderItem | null |
@@ -1122,7 +1123,7 @@ discard block |
||
1122 | 1123 | /** |
1123 | 1124 | * Removes parameters that aren't in the default array, merges with default parameters, and converts raw2SQL. |
1124 | 1125 | * |
1125 | - * @param array $parameters |
|
1126 | + * @param array $params |
|
1126 | 1127 | * |
1127 | 1128 | * @return cleaned array |
1128 | 1129 | */ |