@@ -296,7 +296,6 @@ discard block |
||
296 | 296 | * Return a link to view the order on this page. |
297 | 297 | * |
298 | 298 | * @param int|string $orderID ID of the order |
299 | - * @param string $type - the type of email you want to send. |
|
300 | 299 | * @param bool $actuallySendEmail - do we actually send the email |
301 | 300 | * @param int $alternativeOrderStepID - OrderStep to use |
302 | 301 | * |
@@ -335,7 +334,7 @@ discard block |
||
335 | 334 | * |
336 | 335 | * @param bool $isCurrentStep |
337 | 336 | * |
338 | - * @return Checkout_StepDescription |
|
337 | + * @return CheckoutPage_StepDescription |
|
339 | 338 | */ |
340 | 339 | public function CurrentCheckoutStep($isCurrentStep = false) |
341 | 340 | { |
@@ -687,7 +686,7 @@ discard block |
||
687 | 686 | * checking to see if IsFeedbackEnabled is true |
688 | 687 | * first of all. |
689 | 688 | * |
690 | - * @return OrderForm_Feedback |
|
689 | + * @return OrderConfirmationPage_Controller|null |
|
691 | 690 | */ |
692 | 691 | public function FeedbackForm() |
693 | 692 | { |
@@ -350,8 +350,8 @@ discard block |
||
350 | 350 | * Adds any number of items to the cart. |
351 | 351 | * Returns the order item on succes OR false on failure. |
352 | 352 | * |
353 | - * @param DataObject $buyable - the buyable (generally a product) being added to the cart |
|
354 | - * @param float $quantity - number of items add. |
|
353 | + * @param BuyableModel $buyable - the buyable (generally a product) being added to the cart |
|
354 | + * @param integer $quantity - number of items add. |
|
355 | 355 | * @param mixed $parameters - array of parameters to target a specific order item. eg: group=1, length=5 |
356 | 356 | * if you make it a form, it will save the form into the orderitem |
357 | 357 | * returns null if the current user does not allow order manipulation or saving (e.g. session disabled) |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | * |
399 | 399 | * returns null if the current user does not allow order manipulation or saving (e.g. session disabled) |
400 | 400 | * |
401 | - * @param DataObject $buyable - the buyable (generally a product) being added to the cart |
|
401 | + * @param BuyableModel $buyable - the buyable (generally a product) being added to the cart |
|
402 | 402 | * @param float $quantity - number of items add. |
403 | 403 | * @param array $parameters - array of parameters to target a specific order item. eg: group=1, length=5 |
404 | 404 | * |
@@ -428,8 +428,8 @@ discard block |
||
428 | 428 | * |
429 | 429 | * returns null if the current user does not allow order manipulation or saving (e.g. session disabled) |
430 | 430 | * |
431 | - * @param DataObject $buyable - the buyable (generally a product) being added to the cart |
|
432 | - * @param float $quantity - number of items add. |
|
431 | + * @param BuyableModel $buyable - the buyable (generally a product) being added to the cart |
|
432 | + * @param integer $quantity - number of items add. |
|
433 | 433 | * @param array $parameters - array of parameters to target a specific order item. eg: group=1, length=5 |
434 | 434 | * |
435 | 435 | * @return false | OrderItem | null |
@@ -467,7 +467,7 @@ discard block |
||
467 | 467 | * |
468 | 468 | * returns null if the current user does not allow order manipulation or saving (e.g. session disabled) |
469 | 469 | * |
470 | - * @param OrderItem $buyable - the buyable (generally a product) being added to the cart |
|
470 | + * @param BuyableModel $buyable - the buyable (generally a product) being added to the cart |
|
471 | 471 | * @param array $parameters - array of parameters to target a specific order item. eg: group=1, length=5 |
472 | 472 | * |
473 | 473 | * @return bool | item | null - successfully removed |
@@ -494,9 +494,8 @@ discard block |
||
494 | 494 | /** |
495 | 495 | * Checks and prepares variables for a quantity change (add, edit, remove) for an Order Item. |
496 | 496 | * |
497 | - * @param DataObject $buyable - the buyable (generally a product) being added to the cart |
|
498 | - * @param float $quantity - number of items add. |
|
499 | - * @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. |
|
497 | + * @param BuyableModel $buyable - the buyable (generally a product) being added to the cart |
|
498 | + * @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. |
|
500 | 499 | * @param array | Form $parameters - array of parameters to target a specific order item. eg: group=1, length=5* |
501 | 500 | * - form saved into item... |
502 | 501 | * |
@@ -564,7 +563,7 @@ discard block |
||
564 | 563 | * we do not need things like "canPurchase" here, because that is with the "addBuyable" method. |
565 | 564 | * NOTE: does not write! |
566 | 565 | * |
567 | - * @param DataObject $buyable |
|
566 | + * @param BuyableModel $buyable |
|
568 | 567 | * @param array $parameters |
569 | 568 | * |
570 | 569 | * @return OrderItem |
@@ -626,7 +625,7 @@ discard block |
||
626 | 625 | /** |
627 | 626 | * returns null if the current user does not allow order manipulation or saving (e.g. session disabled) |
628 | 627 | * |
629 | - * @return bool | null |
|
628 | + * @return boolean|null | null |
|
630 | 629 | */ |
631 | 630 | public function save() |
632 | 631 | { |
@@ -690,7 +689,7 @@ discard block |
||
690 | 689 | * |
691 | 690 | * @param OrderModifier $modifier |
692 | 691 | * |
693 | - * @return bool | null |
|
692 | + * @return boolean|null | null |
|
694 | 693 | */ |
695 | 694 | public function removeModifier(OrderModifier $modifier) |
696 | 695 | { |
@@ -722,8 +721,9 @@ discard block |
||
722 | 721 | * returns null if the current user does not allow order manipulation or saving (e.g. session disabled) |
723 | 722 | * |
724 | 723 | * @param Int/ OrderModifier |
724 | + * @param integer $modifier |
|
725 | 725 | * |
726 | - * @return bool |
|
726 | + * @return boolean|null |
|
727 | 727 | */ |
728 | 728 | public function addModifier($modifier) |
729 | 729 | { |
@@ -857,7 +857,7 @@ discard block |
||
857 | 857 | * |
858 | 858 | * @param string - $countryCode |
859 | 859 | * |
860 | - * @return bool |
|
860 | + * @return boolean|null |
|
861 | 861 | **/ |
862 | 862 | public function setCountry($countryCode) |
863 | 863 | { |
@@ -879,6 +879,7 @@ discard block |
||
879 | 879 | * sets region in order so that modifiers can be recalculated, etc... |
880 | 880 | * |
881 | 881 | * @param int | String - $regionID you can use the ID or the code. |
882 | + * @param integer $regionID |
|
882 | 883 | * |
883 | 884 | * @return bool |
884 | 885 | **/ |
@@ -1021,7 +1022,7 @@ discard block |
||
1021 | 1022 | /** |
1022 | 1023 | * Stores a message that can later be returned via ajax or to $form->sessionMessage();. |
1023 | 1024 | * |
1024 | - * @param $message - the message, which could be a notification of successful action, or reason for failure |
|
1025 | + * @param string $message - the message, which could be a notification of successful action, or reason for failure |
|
1025 | 1026 | * @param $type - please use good, bad, warning |
1026 | 1027 | */ |
1027 | 1028 | public function addMessage($message, $status = 'good') |
@@ -1047,7 +1048,7 @@ discard block |
||
1047 | 1048 | /** |
1048 | 1049 | * Gets an existing order item based on buyable and passed parameters. |
1049 | 1050 | * |
1050 | - * @param DataObject $buyable |
|
1051 | + * @param BuyableModel $buyable |
|
1051 | 1052 | * @param array $parameters |
1052 | 1053 | * |
1053 | 1054 | * @return OrderItem | null |
@@ -1073,7 +1074,7 @@ discard block |
||
1073 | 1074 | /** |
1074 | 1075 | * Removes parameters that aren't in the default array, merges with default parameters, and converts raw2SQL. |
1075 | 1076 | * |
1076 | - * @param array $parameters |
|
1077 | + * @param array $params |
|
1077 | 1078 | * |
1078 | 1079 | * @return cleaned array |
1079 | 1080 | */ |
@@ -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 | { |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | * @param bool (optional) $b |
197 | 197 | * @param int (optional) $orderID |
198 | 198 | * |
199 | - * @return bool |
|
199 | + * @return boolean|null |
|
200 | 200 | */ |
201 | 201 | public static function set_needs_recalculating($b = true, $orderID = 0) |
202 | 202 | { |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | /** |
269 | 269 | * This function returns the OrderSteps. |
270 | 270 | * |
271 | - * @return ArrayList (OrderSteps) |
|
271 | + * @return DataList (OrderSteps) |
|
272 | 272 | **/ |
273 | 273 | public static function get_order_status_options() |
274 | 274 | { |
@@ -467,6 +467,7 @@ discard block |
||
467 | 467 | * link to edit the record. |
468 | 468 | * |
469 | 469 | * @param string | Null $action - e.g. edit |
470 | + * @param string $action |
|
470 | 471 | * |
471 | 472 | * @return string |
472 | 473 | */ |
@@ -1680,7 +1681,7 @@ discard block |
||
1680 | 1681 | * Stores the preferred currency of the order. |
1681 | 1682 | * IMPORTANTLY we store the exchange rate for future reference... |
1682 | 1683 | * |
1683 | - * @param EcommerceCurrency $currency |
|
1684 | + * @param EcommerceCurrency $newCurrency |
|
1684 | 1685 | */ |
1685 | 1686 | public function UpdateCurrency($newCurrency) |
1686 | 1687 | { |
@@ -2141,7 +2142,7 @@ discard block |
||
2141 | 2142 | * @param string|array $excluded - Class(es) of modifier(s) to ignore in the calculation. |
2142 | 2143 | * @param bool $stopAtExcludedModifier - when this flag is TRUE, we stop adding the modifiers when we reach an excluded modifier. |
2143 | 2144 | * |
2144 | - * @return float |
|
2145 | + * @return integer |
|
2145 | 2146 | */ |
2146 | 2147 | public function ModifiersSubTotal($excluded = null, $stopAtExcludedModifier = false) |
2147 | 2148 | { |
@@ -2339,7 +2340,7 @@ discard block |
||
2339 | 2340 | * |
2340 | 2341 | * @param Member (optional) $member |
2341 | 2342 | * |
2342 | - * @return bool |
|
2343 | + * @return boolean|null |
|
2343 | 2344 | **/ |
2344 | 2345 | public function canViewAdminStuff($member = null) |
2345 | 2346 | { |
@@ -2392,7 +2393,7 @@ discard block |
||
2392 | 2393 | * If any of them need immediate attention then this is done |
2393 | 2394 | * first after which it will go through to the checkout page. |
2394 | 2395 | * |
2395 | - * @param Member (optional) $member |
|
2396 | + * @param Member Member $member |
|
2396 | 2397 | * |
2397 | 2398 | * @return bool |
2398 | 2399 | **/ |
@@ -2759,6 +2760,10 @@ discard block |
||
2759 | 2760 | { |
2760 | 2761 | return $this->getTitle($dateFormat, $includeName); |
2761 | 2762 | } |
2763 | + |
|
2764 | + /** |
|
2765 | + * @param string $dateFormat |
|
2766 | + */ |
|
2762 | 2767 | public function getTitle($dateFormat = null, $includeName = false) |
2763 | 2768 | { |
2764 | 2769 | if ($this->exists()) { |
@@ -2822,7 +2827,7 @@ discard block |
||
2822 | 2827 | /** |
2823 | 2828 | * Returns the subtotal of the items for this order. |
2824 | 2829 | * |
2825 | - * @return float |
|
2830 | + * @return integer |
|
2826 | 2831 | */ |
2827 | 2832 | public function SubTotal() |
2828 | 2833 | { |
@@ -2888,7 +2893,7 @@ discard block |
||
2888 | 2893 | /** |
2889 | 2894 | * Returns the total cost of an order including the additional charges or deductions of its modifiers. |
2890 | 2895 | * |
2891 | - * @return float |
|
2896 | + * @return integer |
|
2892 | 2897 | */ |
2893 | 2898 | public function Total() |
2894 | 2899 | { |
@@ -3353,7 +3358,7 @@ discard block |
||
3353 | 3358 | /** |
3354 | 3359 | * Submission Log for this Order (if any). |
3355 | 3360 | * |
3356 | - * @return DateTime |
|
3361 | + * @return DBField |
|
3357 | 3362 | **/ |
3358 | 3363 | public function OrderDate() |
3359 | 3364 | { |
@@ -3538,7 +3543,7 @@ discard block |
||
3538 | 3543 | /** |
3539 | 3544 | * Converts the Order into HTML, based on the Order Template. |
3540 | 3545 | * |
3541 | - * @return HTML Object |
|
3546 | + * @return DBField Object |
|
3542 | 3547 | **/ |
3543 | 3548 | public function ConvertToHTML() |
3544 | 3549 | { |
@@ -3602,7 +3607,7 @@ discard block |
||
3602 | 3607 | * In templates, it is used like this: |
3603 | 3608 | * $EcommerceConfigAjax.TableID. |
3604 | 3609 | * |
3605 | - * @return EcommerceConfigAjax |
|
3610 | + * @return EcommerceConfigAjaxDefinitions |
|
3606 | 3611 | **/ |
3607 | 3612 | public function AJAXDefinitions() |
3608 | 3613 | { |
@@ -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 | */ |
@@ -651,7 +651,7 @@ discard block |
||
651 | 651 | * |
652 | 652 | * @see Order::doNextStatus |
653 | 653 | * |
654 | - * @param Order object |
|
654 | + * @param Order Order |
|
655 | 655 | * |
656 | 656 | * @return bool - true if the current step is ready to be run... |
657 | 657 | **/ |
@@ -670,7 +670,7 @@ discard block |
||
670 | 670 | * |
671 | 671 | * @see Order::doNextStatus |
672 | 672 | * |
673 | - * @param Order object |
|
673 | + * @param Order Order |
|
674 | 674 | * |
675 | 675 | * @return bool - true if run correctly. |
676 | 676 | **/ |
@@ -714,6 +714,7 @@ discard block |
||
714 | 714 | * |
715 | 715 | * @param string $code: the name of the step to check |
716 | 716 | * @param bool $orIsEqualTo if set to true, this method will return TRUE if the step being checked is the current one |
717 | + * @param string $code |
|
717 | 718 | * |
718 | 719 | * @return bool |
719 | 720 | **/ |
@@ -966,6 +967,11 @@ discard block |
||
966 | 967 | return $this->hasCustomerMessage() ? _t('OrderStep.YES', 'Yes') : _t('OrderStep.NO', 'No'); |
967 | 968 | } |
968 | 969 | |
970 | + /** |
|
971 | + * @param Order $order |
|
972 | + * |
|
973 | + * @return boolean|string |
|
974 | + */ |
|
969 | 975 | public function CalculatedEmailSubject($order = null) |
970 | 976 | { |
971 | 977 | return $this->EmailSubject; |
@@ -979,7 +985,7 @@ discard block |
||
979 | 985 | /** |
980 | 986 | * Formatted answer for "hasCustomerMessage". |
981 | 987 | * |
982 | - * @return string |
|
988 | + * @return DBField |
|
983 | 989 | */ |
984 | 990 | public function ShowAsSummary() |
985 | 991 | { |
@@ -989,7 +995,7 @@ discard block |
||
989 | 995 | /** |
990 | 996 | * |
991 | 997 | * |
992 | - * @return string |
|
998 | + * @return DBField |
|
993 | 999 | */ |
994 | 1000 | public function getShowAsSummary() |
995 | 1001 | { |
@@ -1049,7 +1055,7 @@ discard block |
||
1049 | 1055 | /** |
1050 | 1056 | * Formatted answer for "hasCustomerMessage". |
1051 | 1057 | * |
1052 | - * @return string |
|
1058 | + * @return DBField |
|
1053 | 1059 | */ |
1054 | 1060 | public function NameAndDescription() |
1055 | 1061 | { |