@@ -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 | { |
@@ -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 | { |
@@ -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 | { |
@@ -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 | { |