@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * You can set an alternative class name for order item using this method. |
114 | 114 | * |
115 | - * @param string $ClassName |
|
115 | + * @param string $className |
|
116 | 116 | **/ |
117 | 117 | public function setAlternativeClassNameForOrderItem($className); |
118 | 118 | |
@@ -248,6 +248,10 @@ discard block |
||
248 | 248 | * @return Money |
249 | 249 | */ |
250 | 250 | public function CalculatedPriceAsMoney(); |
251 | + |
|
252 | + /** |
|
253 | + * @return Money |
|
254 | + */ |
|
251 | 255 | public function getCalculatedPriceAsMoney(); |
252 | 256 | |
253 | 257 | //CRUD SETTINGS |
@@ -13,6 +13,7 @@ |
||
13 | 13 | /** |
14 | 14 | * assign the right payment gateways for the user |
15 | 15 | * @param string (optional) $gateway |
16 | + * @return void |
|
16 | 17 | */ |
17 | 18 | public static function assign_payment_gateway($gateway = ""); |
18 | 19 | } |
@@ -185,7 +185,6 @@ |
||
185 | 185 | /** |
186 | 186 | * checks if a code is allowed. |
187 | 187 | * |
188 | - * @param string $code - e.g. NZ, NSW, or CO |
|
189 | 188 | * |
190 | 189 | * @return bool |
191 | 190 | */ |
@@ -132,6 +132,9 @@ discard block |
||
132 | 132 | */ |
133 | 133 | protected $_canView = null; |
134 | 134 | |
135 | + /** |
|
136 | + * @param DataObject $member |
|
137 | + */ |
|
135 | 138 | public function canCreate($member = null) |
136 | 139 | { |
137 | 140 | if (! $member) { |
@@ -353,6 +356,7 @@ discard block |
||
353 | 356 | * makes selected fields into read only using the $this->readOnlyFields array. |
354 | 357 | * |
355 | 358 | * @param FieldList | Composite $fields |
359 | + * @param CompositeField $fields |
|
356 | 360 | * |
357 | 361 | * @return FieldList |
358 | 362 | */ |
@@ -420,7 +424,7 @@ discard block |
||
420 | 424 | * Casted variable |
421 | 425 | * returns the full strng of the record. |
422 | 426 | * |
423 | - * @return string |
|
427 | + * @return HTMLText |
|
424 | 428 | */ |
425 | 429 | public function FullString() |
426 | 430 | { |
@@ -142,6 +142,7 @@ discard block |
||
142 | 142 | * tells us if the current member is in the Shop Administrators Group. |
143 | 143 | * |
144 | 144 | * @param Member | Null $member |
145 | + * @param DataObject $member |
|
145 | 146 | * |
146 | 147 | * @return bool |
147 | 148 | */ |
@@ -161,6 +162,7 @@ discard block |
||
161 | 162 | * tells us if the current member is in the Shop Administrators Group. |
162 | 163 | * |
163 | 164 | * @param Member | Null $member |
165 | + * @param DataObject $member |
|
164 | 166 | * |
165 | 167 | * @return bool |
166 | 168 | */ |
@@ -180,6 +182,7 @@ discard block |
||
180 | 182 | * tells us if the current member can process the orders |
181 | 183 | * |
182 | 184 | * @param Member | Null $member |
185 | + * @param DataObject $member |
|
183 | 186 | * |
184 | 187 | * @return bool |
185 | 188 | */ |
@@ -416,7 +419,6 @@ discard block |
||
416 | 419 | } |
417 | 420 | |
418 | 421 | /** |
419 | - * @param bool $additionalFields: add extra fields. |
|
420 | 422 | * |
421 | 423 | * @return FieldList |
422 | 424 | */ |
@@ -503,7 +505,7 @@ discard block |
||
503 | 505 | * Return which member fields should be required on {@link OrderForm} |
504 | 506 | * and {@link ShopAccountForm}. |
505 | 507 | * |
506 | - * @return array |
|
508 | + * @return string[] |
|
507 | 509 | */ |
508 | 510 | public function getEcommerceRequiredFields() |
509 | 511 | { |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | * CRUCIAL |
82 | 82 | * makes sure all the relevant payment methods are available ... |
83 | 83 | * |
84 | - * @return this | EcommercePayment |
|
84 | + * @return EcommercePayment | EcommercePayment |
|
85 | 85 | */ |
86 | 86 | public function init() |
87 | 87 | { |
@@ -399,6 +399,7 @@ discard block |
||
399 | 399 | * Return the form requirements for all the payment methods. |
400 | 400 | * |
401 | 401 | * @param null | Array |
402 | + * @param Order $order |
|
402 | 403 | * |
403 | 404 | * @return An array suitable for passing to CustomRequiredFields |
404 | 405 | */ |
@@ -414,6 +415,7 @@ discard block |
||
414 | 415 | * |
415 | 416 | * @param string $amount formatted amount (e.g. 12.30) without the currency |
416 | 417 | * @param null | Order $order |
418 | + * @param Order $order |
|
417 | 419 | * |
418 | 420 | * @return FieldList |
419 | 421 | */ |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * @param bool (optional) $b |
193 | 193 | * @param int (optional) $orderID |
194 | 194 | * |
195 | - * @return bool |
|
195 | + * @return boolean|null |
|
196 | 196 | */ |
197 | 197 | public static function set_needs_recalculating($b = true, $orderID = 0) |
198 | 198 | { |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | /** |
265 | 265 | * This function returns the OrderSteps. |
266 | 266 | * |
267 | - * @return ArrayList (OrderSteps) |
|
267 | + * @return DataList (OrderSteps) |
|
268 | 268 | **/ |
269 | 269 | public static function get_order_status_options() |
270 | 270 | { |
@@ -453,6 +453,7 @@ discard block |
||
453 | 453 | * link to edit the record. |
454 | 454 | * |
455 | 455 | * @param string | Null $action - e.g. edit |
456 | + * @param string $action |
|
456 | 457 | * |
457 | 458 | * @return string |
458 | 459 | */ |
@@ -1159,7 +1160,7 @@ discard block |
||
1159 | 1160 | * @param Member $member - the user cancelling the order |
1160 | 1161 | * @param string $reason - the reason the order is cancelled |
1161 | 1162 | * |
1162 | - * @return OrderStatusLog_Cancel |
|
1163 | + * @return integer |
|
1163 | 1164 | */ |
1164 | 1165 | public function Cancel(Member $member, $reason = '') |
1165 | 1166 | { |
@@ -1594,7 +1595,7 @@ discard block |
||
1594 | 1595 | * Stores the preferred currency of the order. |
1595 | 1596 | * IMPORTANTLY we store the exchange rate for future reference... |
1596 | 1597 | * |
1597 | - * @param EcommerceCurrency $currency |
|
1598 | + * @param EcommerceCurrency $newCurrency |
|
1598 | 1599 | */ |
1599 | 1600 | public function UpdateCurrency($newCurrency) |
1600 | 1601 | { |
@@ -1690,9 +1691,9 @@ discard block |
||
1690 | 1691 | * |
1691 | 1692 | * @param string $emailClassName - the class name of the email you wish to send |
1692 | 1693 | * @param string $subject - email subject |
1693 | - * @param bool $copyToAdmin - true by default, whether it should send a copy to the admin |
|
1694 | 1694 | * @param bool $resend - sends the email even it has been sent before. |
1695 | 1695 | * @param bool | string $adminOnlyOrToEmail - sends the email to the ADMIN ONLY, if you provide an email, it will go to the email... |
1696 | + * @param string $message |
|
1696 | 1697 | * |
1697 | 1698 | * @return bool TRUE for success, FALSE for failure (not tested) |
1698 | 1699 | */ |
@@ -1811,7 +1812,7 @@ discard block |
||
1811 | 1812 | * @param string $message - the additional message |
1812 | 1813 | * @param string $emailClassName - template to use. |
1813 | 1814 | * |
1814 | - * @return array (Message, Order, EmailLogo, ShopPhysicalAddress) |
|
1815 | + * @return string (Message, Order, EmailLogo, ShopPhysicalAddress) |
|
1815 | 1816 | */ |
1816 | 1817 | public function renderOrderInEmailFormat($message = '', $emailClassName) |
1817 | 1818 | { |
@@ -2054,7 +2055,7 @@ discard block |
||
2054 | 2055 | * @param string|array $excluded - Class(es) of modifier(s) to ignore in the calculation. |
2055 | 2056 | * @param bool $stopAtExcludedModifier - when this flag is TRUE, we stop adding the modifiers when we reach an excluded modifier. |
2056 | 2057 | * |
2057 | - * @return float |
|
2058 | + * @return integer |
|
2058 | 2059 | */ |
2059 | 2060 | public function ModifiersSubTotal($excluded = null, $stopAtExcludedModifier = false) |
2060 | 2061 | { |
@@ -2252,7 +2253,7 @@ discard block |
||
2252 | 2253 | * |
2253 | 2254 | * @param Member (optional) $member |
2254 | 2255 | * |
2255 | - * @return bool |
|
2256 | + * @return boolean|null |
|
2256 | 2257 | **/ |
2257 | 2258 | public function canViewAdminStuff($member = null) |
2258 | 2259 | { |
@@ -2305,7 +2306,7 @@ discard block |
||
2305 | 2306 | * If any of them need immediate attention then this is done |
2306 | 2307 | * first after which it will go through to the checkout page. |
2307 | 2308 | * |
2308 | - * @param Member (optional) $member |
|
2309 | + * @param Member Member $member |
|
2309 | 2310 | * |
2310 | 2311 | * @return bool |
2311 | 2312 | **/ |
@@ -2651,6 +2652,10 @@ discard block |
||
2651 | 2652 | { |
2652 | 2653 | return $this->getTitle($dateFormat, $includeName); |
2653 | 2654 | } |
2655 | + |
|
2656 | + /** |
|
2657 | + * @param string $dateFormat |
|
2658 | + */ |
|
2654 | 2659 | public function getTitle($dateFormat = null, $includeName = false) |
2655 | 2660 | { |
2656 | 2661 | if ($this->exists()) { |
@@ -2714,7 +2719,7 @@ discard block |
||
2714 | 2719 | /** |
2715 | 2720 | * Returns the subtotal of the items for this order. |
2716 | 2721 | * |
2717 | - * @return float |
|
2722 | + * @return integer |
|
2718 | 2723 | */ |
2719 | 2724 | public function SubTotal() |
2720 | 2725 | { |
@@ -2780,7 +2785,7 @@ discard block |
||
2780 | 2785 | /** |
2781 | 2786 | * Returns the total cost of an order including the additional charges or deductions of its modifiers. |
2782 | 2787 | * |
2783 | - * @return float |
|
2788 | + * @return integer |
|
2784 | 2789 | */ |
2785 | 2790 | public function Total() |
2786 | 2791 | { |
@@ -3410,7 +3415,7 @@ discard block |
||
3410 | 3415 | /** |
3411 | 3416 | * Converts the Order into HTML, based on the Order Template. |
3412 | 3417 | * |
3413 | - * @return HTML Object |
|
3418 | + * @return DBField Object |
|
3414 | 3419 | **/ |
3415 | 3420 | public function ConvertToHTML() |
3416 | 3421 | { |
@@ -3474,7 +3479,7 @@ discard block |
||
3474 | 3479 | * In templates, it is used like this: |
3475 | 3480 | * $EcommerceConfigAjax.TableID. |
3476 | 3481 | * |
3477 | - * @return EcommerceConfigAjax |
|
3482 | + * @return EcommerceConfigAjaxDefinitions |
|
3478 | 3483 | **/ |
3479 | 3484 | public function AJAXDefinitions() |
3480 | 3485 | { |
@@ -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 | { |
@@ -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 | **/ |
@@ -492,6 +492,10 @@ discard block |
||
492 | 492 | { |
493 | 493 | return $this->getUnitPrice($recalculate); |
494 | 494 | } |
495 | + |
|
496 | + /** |
|
497 | + * @return double |
|
498 | + */ |
|
495 | 499 | public function getUnitPrice($recalculate = false) |
496 | 500 | { |
497 | 501 | if ($this->priceHasBeenFixed($recalculate) && !$recalculate) { |
@@ -534,6 +538,10 @@ discard block |
||
534 | 538 | { |
535 | 539 | return $this->getTotal(); |
536 | 540 | } |
541 | + |
|
542 | + /** |
|
543 | + * @return double |
|
544 | + */ |
|
537 | 545 | public function getTotal($recalculate = false) |
538 | 546 | { |
539 | 547 | if ($this->priceHasBeenFixed()) { |
@@ -580,7 +588,7 @@ discard block |
||
580 | 588 | } |
581 | 589 | |
582 | 590 | /** |
583 | - * @return Field (EcomQuantityField) |
|
591 | + * @return EcomQuantityField (EcomQuantityField) |
|
584 | 592 | **/ |
585 | 593 | public function QuantityField() |
586 | 594 | { |