@@ -64,6 +64,9 @@ discard block |
||
64 | 64 | $this->extend('updateOrderModifierForm', $this); |
65 | 65 | } |
66 | 66 | |
67 | + /** |
|
68 | + * @param string $str |
|
69 | + */ |
|
67 | 70 | protected function myLcFirst($str) |
68 | 71 | { |
69 | 72 | if (function_exists('lcfirst') === false) { |
@@ -104,7 +107,6 @@ discard block |
||
104 | 107 | /** |
105 | 108 | * saves the form into session. |
106 | 109 | * |
107 | - * @param array $data - data from form. |
|
108 | 110 | */ |
109 | 111 | public function saveDataToSession() |
110 | 112 | { |
@@ -68,7 +68,6 @@ |
||
68 | 68 | /** |
69 | 69 | * saves the form into session. |
70 | 70 | * |
71 | - * @param array $data - data from form. |
|
72 | 71 | */ |
73 | 72 | public function saveDataToSession() |
74 | 73 | { |
@@ -489,7 +489,7 @@ discard block |
||
489 | 489 | * can be executed one after the other, each |
490 | 490 | * being less specific than the last... |
491 | 491 | * |
492 | - * @return array |
|
492 | + * @return boolean |
|
493 | 493 | */ |
494 | 494 | private function addToResults($listToAdd) |
495 | 495 | { |
@@ -512,8 +512,8 @@ discard block |
||
512 | 512 | * can be executed one after the other, each |
513 | 513 | * being less specific than the last... |
514 | 514 | * |
515 | - * @param array $words - words being search |
|
516 | 515 | * @param array $fields - fields being searched |
516 | + * @param string $keywordPhrase |
|
517 | 517 | * |
518 | 518 | * @return array |
519 | 519 | */ |
@@ -553,7 +553,6 @@ discard block |
||
553 | 553 | /** |
554 | 554 | * saves the form into session. |
555 | 555 | * |
556 | - * @param array $data - data from form. |
|
557 | 556 | */ |
558 | 557 | public function saveDataToSession() |
559 | 558 | { |
@@ -188,7 +188,6 @@ |
||
188 | 188 | /** |
189 | 189 | * saves the form into session. |
190 | 190 | * |
191 | - * @param array $data - data from form. |
|
192 | 191 | */ |
193 | 192 | public function saveDataToSession() |
194 | 193 | { |
@@ -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 | { |