@@ -86,6 +86,9 @@ discard block |
||
86 | 86 | $this->sequentialSaveableSet = null; |
87 | 87 | } |
88 | 88 | |
89 | + /** |
|
90 | + * @param FormField[] $list |
|
91 | + */ |
|
89 | 92 | protected function collateDataFields(&$list, $saveableOnly = false) |
90 | 93 | { |
91 | 94 | foreach ($this as $field) { |
@@ -191,7 +194,7 @@ discard block |
||
191 | 194 | * Removes a number of fields from a Tab/TabSet within this FieldList. |
192 | 195 | * |
193 | 196 | * @param string $tabName The name of the Tab or TabSet field |
194 | - * @param array $fields A list of fields, e.g. array('Name', 'Email') |
|
197 | + * @param string[] $fields A list of fields, e.g. array('Name', 'Email') |
|
195 | 198 | */ |
196 | 199 | public function removeFieldsFromTab($tabName, $fields) |
197 | 200 | { |
@@ -618,7 +621,7 @@ discard block |
||
618 | 621 | } |
619 | 622 | |
620 | 623 | /** |
621 | - * @param $field |
|
624 | + * @param CompositeField $field |
|
622 | 625 | * @return $this |
623 | 626 | */ |
624 | 627 | public function setContainerField($field) |
@@ -700,6 +703,7 @@ discard block |
||
700 | 703 | * the children collection. Doesn't work recursively. |
701 | 704 | * |
702 | 705 | * @param string|FormField |
706 | + * @param string $field |
|
703 | 707 | * @return int Position in children collection (first position starts with 0). |
704 | 708 | * Returns FALSE if the field can't be found. |
705 | 709 | */ |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | * The callback can opt out of handling specific responses by returning NULL, |
542 | 542 | * in which case the default form behaviour will kick in. |
543 | 543 | * |
544 | - * @param $callback |
|
544 | + * @param \Closure $callback |
|
545 | 545 | * @return self |
546 | 546 | */ |
547 | 547 | public function setValidationResponseCallback($callback) |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | /** |
604 | 604 | * Fields can have action to, let's check if anyone of the responds to $funcname them |
605 | 605 | * |
606 | - * @param SS_List|array $fields |
|
606 | + * @param FieldList $fields |
|
607 | 607 | * @param callable $funcName |
608 | 608 | * @return FormField |
609 | 609 | */ |
@@ -755,6 +755,7 @@ discard block |
||
755 | 755 | * Set actions that are exempt from validation |
756 | 756 | * |
757 | 757 | * @param array |
758 | + * @param string[] $actions |
|
758 | 759 | * @return $this |
759 | 760 | */ |
760 | 761 | public function setValidationExemptActions($actions) |
@@ -1198,7 +1199,7 @@ discard block |
||
1198 | 1199 | * If set to false (the default), then the form method is only used to construct the default |
1199 | 1200 | * form. |
1200 | 1201 | * |
1201 | - * @param $bool boolean |
|
1202 | + * @param boolean $bool boolean |
|
1202 | 1203 | * @return $this |
1203 | 1204 | */ |
1204 | 1205 | public function setStrictFormMethodCheck($bool) |
@@ -807,7 +807,6 @@ discard block |
||
807 | 807 | * Set the field value. |
808 | 808 | * |
809 | 809 | * @param mixed $value |
810 | - * @param null|array|DataObject $data {@see Form::loadDataFrom} |
|
811 | 810 | * @return $this |
812 | 811 | */ |
813 | 812 | public function setValue($value) |
@@ -1251,7 +1250,7 @@ discard block |
||
1251 | 1250 | /** |
1252 | 1251 | * @param FormTransformation $transformation |
1253 | 1252 | * |
1254 | - * @return mixed |
|
1253 | + * @return FormField |
|
1255 | 1254 | */ |
1256 | 1255 | public function transform(FormTransformation $transformation) |
1257 | 1256 | { |
@@ -1362,7 +1361,7 @@ discard block |
||
1362 | 1361 | * This function is used by the template processor. If you refer to a field as a $ variable, it |
1363 | 1362 | * will return the $Field value. |
1364 | 1363 | * |
1365 | - * @return string |
|
1364 | + * @return DBHTMLText |
|
1366 | 1365 | */ |
1367 | 1366 | public function forTemplate() |
1368 | 1367 | { |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | /** |
155 | 155 | * |
156 | 156 | * @param GridField $gridField |
157 | - * @return array |
|
157 | + * @return string[] |
|
158 | 158 | */ |
159 | 159 | public function getActions($gridField) |
160 | 160 | { |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | } |
297 | 297 | |
298 | 298 | /** |
299 | - * @param array $fields |
|
299 | + * @param string[] $fields |
|
300 | 300 | * @return $this |
301 | 301 | */ |
302 | 302 | public function setSearchFields($fields) |
@@ -92,6 +92,9 @@ discard block |
||
92 | 92 | parent::__construct(); |
93 | 93 | } |
94 | 94 | |
95 | + /** |
|
96 | + * @param string $action |
|
97 | + */ |
|
95 | 98 | public function Link($action = null) |
96 | 99 | { |
97 | 100 | return Controller::join_links( |
@@ -341,6 +344,9 @@ discard block |
||
341 | 344 | return $c; |
342 | 345 | } |
343 | 346 | |
347 | + /** |
|
348 | + * @return string |
|
349 | + */ |
|
344 | 350 | protected function getBackLink() |
345 | 351 | { |
346 | 352 | // TODO Coupling with CMS |
@@ -448,6 +454,9 @@ discard block |
||
448 | 454 | } |
449 | 455 | } |
450 | 456 | |
457 | + /** |
|
458 | + * @param integer $errorCode |
|
459 | + */ |
|
451 | 460 | public function httpError($errorCode, $errorMessage = null) |
452 | 461 | { |
453 | 462 | $controller = $this->getToplevelController(); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * Which columns are handled by this component |
66 | 66 | * |
67 | 67 | * @param GridField $gridField |
68 | - * @return array |
|
68 | + * @return string[] |
|
69 | 69 | */ |
70 | 70 | public function getColumnsHandled($gridField) |
71 | 71 | { |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * @param GridField $gridField |
88 | 88 | * @param DataObject $record |
89 | 89 | * @param string $columnName |
90 | - * @return string The HTML for the column |
|
90 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText The HTML for the column |
|
91 | 91 | */ |
92 | 92 | public function getColumnContent($gridField, $record, $columnName) |
93 | 93 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * export is an action button |
76 | 76 | * |
77 | 77 | * @param GridField $gridField |
78 | - * @return array |
|
78 | + * @return string[] |
|
79 | 79 | */ |
80 | 80 | public function getActions($gridField) |
81 | 81 | { |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * Generate export fields for CSV. |
150 | 150 | * |
151 | 151 | * @param GridField $gridField |
152 | - * @return array |
|
152 | + * @return string |
|
153 | 153 | */ |
154 | 154 | public function generateExportFileData($gridField) |
155 | 155 | { |
@@ -392,7 +392,7 @@ |
||
392 | 392 | /** |
393 | 393 | * Get location of all editor.css files |
394 | 394 | * |
395 | - * @return array |
|
395 | + * @return string[] |
|
396 | 396 | */ |
397 | 397 | protected function getEditorCSS() { |
398 | 398 | $editor = array(); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * Gets the list of shortcodes provided by this handler |
19 | 19 | * |
20 | - * @return mixed |
|
20 | + * @return string[] |
|
21 | 21 | */ |
22 | 22 | public static function get_shortcodes() |
23 | 23 | { |