@@ -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 | { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * In templates, it is used like this: |
19 | 19 | * $AJAXDefinitions.TableID. |
20 | 20 | * |
21 | - * @return EcommerceConfigAjax |
|
21 | + * @return EcommerceConfigAjaxDefinitions |
|
22 | 22 | **/ |
23 | 23 | public function AJAXDefinitions() |
24 | 24 | { |
@@ -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 | { |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | } |
423 | 423 | |
424 | 424 | /** |
425 | - * @return object (HeadingField) |
|
425 | + * @return FormField (HeadingField) |
|
426 | 426 | */ |
427 | 427 | protected function headingField() |
428 | 428 | { |
@@ -435,7 +435,7 @@ discard block |
||
435 | 435 | } |
436 | 436 | |
437 | 437 | /** |
438 | - * @return object (LiteralField) |
|
438 | + * @return LiteralField (LiteralField) |
|
439 | 439 | */ |
440 | 440 | protected function descriptionField() |
441 | 441 | { |
@@ -94,7 +94,7 @@ |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - *@return string |
|
97 | + *@return HTMLText |
|
98 | 98 | **/ |
99 | 99 | public function CustomerNote() |
100 | 100 | { |
@@ -93,7 +93,7 @@ |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
96 | - * @return string |
|
96 | + * @return HTMLText|null |
|
97 | 97 | **/ |
98 | 98 | public function CustomerNote() |
99 | 99 | { |
@@ -253,7 +253,6 @@ discard block |
||
253 | 253 | * Return a link to view the order on this page. |
254 | 254 | * |
255 | 255 | * @param int|string $orderID ID of the order |
256 | - * @param string $type - the type of email you want to send. |
|
257 | 256 | * @param bool $actuallySendEmail - do we actually send the email |
258 | 257 | * @param int $alternativeOrderStepID - OrderStep to use |
259 | 258 | * |
@@ -290,7 +289,7 @@ discard block |
||
290 | 289 | * |
291 | 290 | * @param bool $isCurrentStep |
292 | 291 | * |
293 | - * @return Checkout_StepDescription |
|
292 | + * @return CheckoutPage_StepDescription |
|
294 | 293 | */ |
295 | 294 | public function CurrentCheckoutStep($isCurrentStep = false) |
296 | 295 | { |