@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * @param string $tabName The name of the tab or tabset. Subtabs can be referred to as TabSet.Tab |
134 | 134 | * or TabSet.Tab.Subtab. This function will create any missing tabs. |
135 | 135 | * @param array $fields An array of {@link FormField} objects. |
136 | - * @param string $name Name of the field to insert before (optional) |
|
136 | + * @param string $insertBefore |
|
137 | 137 | */ |
138 | 138 | public function addFieldsToTab($tabName, $fields, $insertBefore = null) { |
139 | 139 | $this->flushFieldsCache(); |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | * Removes a number of fields from a Tab/TabSet within this FieldList. |
174 | 174 | * |
175 | 175 | * @param string $tabName The name of the Tab or TabSet field |
176 | - * @param array $fields A list of fields, e.g. array('Name', 'Email') |
|
176 | + * @param string[] $fields A list of fields, e.g. array('Name', 'Email') |
|
177 | 177 | */ |
178 | 178 | public function removeFieldsFromTab($tabName, $fields) { |
179 | 179 | $this->flushFieldsCache(); |
@@ -453,6 +453,7 @@ discard block |
||
453 | 453 | |
454 | 454 | /** |
455 | 455 | * Handler method called before the FieldList is going to be manipulated. |
456 | + * @param FormField $item |
|
456 | 457 | */ |
457 | 458 | protected function onBeforeInsert($item) { |
458 | 459 | $this->flushFieldsCache(); |
@@ -525,6 +526,7 @@ discard block |
||
525 | 526 | * Transform this FieldList with a given tranform method, |
526 | 527 | * e.g. $this->transform(new ReadonlyTransformation()) |
527 | 528 | * |
529 | + * @param ReadonlyTransformation $trans |
|
528 | 530 | * @return FieldList |
529 | 531 | */ |
530 | 532 | public function transform($trans) { |
@@ -544,6 +546,9 @@ discard block |
||
544 | 546 | else return $this; |
545 | 547 | } |
546 | 548 | |
549 | + /** |
|
550 | + * @param CompositeField $field |
|
551 | + */ |
|
547 | 552 | public function setContainerField($field) { |
548 | 553 | $this->containerField = $field; |
549 | 554 | return $this; |
@@ -562,6 +567,7 @@ discard block |
||
562 | 567 | * Transform the named field into a readonly feld. |
563 | 568 | * |
564 | 569 | * @param string|FormField |
570 | + * @param string $field |
|
565 | 571 | */ |
566 | 572 | public function makeFieldReadonly($field) { |
567 | 573 | $fieldName = ($field instanceof FormField) ? $field->getName() : $field; |
@@ -616,6 +622,7 @@ discard block |
||
616 | 622 | * the children collection. Doesn't work recursively. |
617 | 623 | * |
618 | 624 | * @param string|FormField |
625 | + * @param string $field |
|
619 | 626 | * @return int Position in children collection (first position starts with 0). Returns FALSE if the field can't |
620 | 627 | * be found. |
621 | 628 | */ |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | /** |
78 | 78 | * @param array $properties |
79 | - * @return HTMLText |
|
79 | + * @return string |
|
80 | 80 | */ |
81 | 81 | public function Field($properties = array()) { |
82 | 82 | $properties = array_merge( |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | /** |
95 | 95 | * @param array $properties |
96 | - * @return HTMLText |
|
96 | + * @return string |
|
97 | 97 | */ |
98 | 98 | public function FieldHolder($properties = array()) { |
99 | 99 | return $this->Field($properties); |
@@ -157,6 +157,7 @@ discard block |
||
157 | 157 | * Enable or disable the rendering of this action as a `<button />` |
158 | 158 | * |
159 | 159 | * @param boolean |
160 | + * @param boolean $bool |
|
160 | 161 | * @return $this |
161 | 162 | */ |
162 | 163 | public function setUseButtonTag($bool) { |
@@ -544,6 +544,7 @@ discard block |
||
544 | 544 | * |
545 | 545 | * Caution: this doesn't work on all fields, see {@link setAttribute()}. |
546 | 546 | * |
547 | + * @param string $name |
|
547 | 548 | * @return null|string |
548 | 549 | */ |
549 | 550 | public function getAttribute($name) { |
@@ -1205,7 +1206,7 @@ discard block |
||
1205 | 1206 | * |
1206 | 1207 | * @param FieldList $containerFieldList |
1207 | 1208 | * |
1208 | - * @return FieldList |
|
1209 | + * @return FormField |
|
1209 | 1210 | */ |
1210 | 1211 | public function setContainerFieldList($containerFieldList) { |
1211 | 1212 | $this->containerFieldList = $containerFieldList; |
@@ -70,6 +70,7 @@ |
||
70 | 70 | /** |
71 | 71 | * Get the DisplayFields |
72 | 72 | * |
73 | + * @param GridField $gridField |
|
73 | 74 | * @return array |
74 | 75 | * @see GridFieldDataColumns::setDisplayFields |
75 | 76 | */ |
@@ -91,6 +91,7 @@ discard block |
||
91 | 91 | |
92 | 92 | /** |
93 | 93 | * Handle the export, for both the action button and the URL |
94 | + * @param GridField $gridField |
|
94 | 95 | */ |
95 | 96 | public function handleExport($gridField, $request = null) { |
96 | 97 | $now = Date("d-m-Y-H-i"); |
@@ -248,6 +249,7 @@ discard block |
||
248 | 249 | |
249 | 250 | /** |
250 | 251 | * @param boolean |
252 | + * @param boolean $bool |
|
251 | 253 | */ |
252 | 254 | public function setCsvHasHeader($bool) { |
253 | 255 | $this->csvHasHeader = $bool; |
@@ -23,6 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * By default, this is set to true so that it's clearer what's happening, but the predefined |
25 | 25 | * {@link GridFieldConfig} subclasses set this to false for flexibility. |
26 | + * @param boolean $throwExceptionOnBadDataType |
|
26 | 27 | */ |
27 | 28 | public function setThrowExceptionOnBadDataType($throwExceptionOnBadDataType) { |
28 | 29 | $this->throwExceptionOnBadDataType = $throwExceptionOnBadDataType; |
@@ -38,6 +39,7 @@ discard block |
||
38 | 39 | /** |
39 | 40 | * Check that this dataList is of the right data type. |
40 | 41 | * Returns false if it's a bad data type, and if appropriate, throws an exception. |
42 | + * @param SS_List $dataList |
|
41 | 43 | */ |
42 | 44 | protected function checkDataType($dataList) { |
43 | 45 | if($dataList instanceof SS_Filterable) { |
@@ -29,6 +29,7 @@ discard block |
||
29 | 29 | * |
30 | 30 | * By default, this is set to true so that it's clearer what's happening, but the predefined |
31 | 31 | * {@link GridFieldConfig} subclasses set this to false for flexibility. |
32 | + * @param boolean $throwExceptionOnBadDataType |
|
32 | 33 | */ |
33 | 34 | public function setThrowExceptionOnBadDataType($throwExceptionOnBadDataType) { |
34 | 35 | $this->throwExceptionOnBadDataType = $throwExceptionOnBadDataType; |
@@ -44,6 +45,7 @@ discard block |
||
44 | 45 | /** |
45 | 46 | * Check that this dataList is of the right data type. |
46 | 47 | * Returns false if it's a bad data type, and if appropriate, throws an exception. |
48 | + * @param SS_List $dataList |
|
47 | 49 | */ |
48 | 50 | protected function checkDataType($dataList) { |
49 | 51 | if($dataList instanceof SS_Sortable) { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | /** |
40 | 40 | * Given a TinyMCE pattern (close to unix glob style), create a regex that does the match |
41 | 41 | * |
42 | - * @param $str - The TinyMCE pattern |
|
42 | + * @param string|null $str - The TinyMCE pattern |
|
43 | 43 | * @return string - The equivalent regex |
44 | 44 | */ |
45 | 45 | protected function patternToRegex($str) { |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | /** |
182 | 182 | * Given an attribute name, return the rule structure for that attribute |
183 | 183 | * |
184 | - * @param object $elementRule |
|
184 | + * @param stdClass $elementRule |
|
185 | 185 | * @param string $name The attribute name |
186 | 186 | * @return stdClass The attribute rule |
187 | 187 | */ |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @param string $name the field name |
85 | 85 | * @param string $title the field label |
86 | - * @param string|array $sourceObject The object-type to list in the tree. This could |
|
86 | + * @param string $sourceObject The object-type to list in the tree. This could |
|
87 | 87 | * be one of the following: |
88 | 88 | * - A DataObject class name with the {@link Hierarchy} extension. |
89 | 89 | * - An array of key/value pairs, like a {@link DropdownField} source. In |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | } |
212 | 212 | |
213 | 213 | /** |
214 | - * @return HTMLText |
|
214 | + * @return string |
|
215 | 215 | */ |
216 | 216 | public function Field($properties = array()) { |
217 | 217 | Requirements::add_i18n_javascript(FRAMEWORK_DIR . '/javascript/lang'); |
@@ -445,7 +445,6 @@ discard block |
||
445 | 445 | } |
446 | 446 | |
447 | 447 | /** |
448 | - * @param string $field |
|
449 | 448 | * @return $this |
450 | 449 | */ |
451 | 450 | public function setSourceObject($class) { |