@@ -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 | { |
@@ -468,6 +468,7 @@ discard block |
||
| 468 | 468 | * link to edit the record. |
| 469 | 469 | * |
| 470 | 470 | * @param string | Null $action - e.g. edit |
| 471 | + * @param string $action |
|
| 471 | 472 | * |
| 472 | 473 | * @return string |
| 473 | 474 | */ |
@@ -1420,7 +1421,7 @@ discard block |
||
| 1420 | 1421 | * Has the order been paid? |
| 1421 | 1422 | * TODO: why do we check if there is a total at all? |
| 1422 | 1423 | * |
| 1423 | - * @return Boolean (object) |
|
| 1424 | + * @return string (object) |
|
| 1424 | 1425 | */ |
| 1425 | 1426 | public function IsPaidNice() |
| 1426 | 1427 | { |
@@ -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 | { |