@@ -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 | { |
@@ -228,7 +228,7 @@ |
||
228 | 228 | * |
229 | 229 | * @todo refactor this into GridFieldComponent |
230 | 230 | * |
231 | - * @param mixed $value |
|
231 | + * @param string $value |
|
232 | 232 | * @param string|array $castingDefinition |
233 | 233 | * |
234 | 234 | * @return mixed |
@@ -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 | { |
@@ -12,7 +12,7 @@ |
||
12 | 12 | |
13 | 13 | /** |
14 | 14 | * @param array $properties |
15 | - * @return string |
|
15 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
16 | 16 | */ |
17 | 17 | public function FieldHolder($properties = array()) |
18 | 18 | { |
@@ -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 | { |
@@ -148,14 +148,14 @@ |
||
148 | 148 | * Get the current value of an option |
149 | 149 | * |
150 | 150 | * @param string $key The key of the option to get |
151 | - * @return mixed The value of the specified option |
|
151 | + * @return string The value of the specified option |
|
152 | 152 | */ |
153 | 153 | abstract public function getOption($key); |
154 | 154 | |
155 | 155 | /** |
156 | 156 | * Set the value of one option |
157 | 157 | * @param string $key The key of the option to set |
158 | - * @param mixed $value The value of the option to set |
|
158 | + * @param string $value The value of the option to set |
|
159 | 159 | * @return $this |
160 | 160 | */ |
161 | 161 | abstract public function setOption($key, $value); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | /** |
74 | 74 | * Assign a new configuration instance or identifier |
75 | 75 | * |
76 | - * @param string|HTMLEditorConfig $config |
|
76 | + * @param string $config |
|
77 | 77 | * @return $this |
78 | 78 | */ |
79 | 79 | public function setEditorConfig($config) |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * |
89 | 89 | * @param string $name The internal field name, passed to forms. |
90 | 90 | * @param string $title The human-readable field label. |
91 | - * @param mixed $value The value of the field. |
|
91 | + * @param integer $value The value of the field. |
|
92 | 92 | * @param string $config HTMLEditorConfig identifier to be used. Default to the active one. |
93 | 93 | */ |
94 | 94 | public function __construct($name, $title = null, $value = '', $config = null) |
@@ -136,6 +136,9 @@ discard block |
||
136 | 136 | $record->{$this->name} = $htmlValue->getContent(); |
137 | 137 | } |
138 | 138 | |
139 | + /** |
|
140 | + * @param string|null $value |
|
141 | + */ |
|
139 | 142 | public function setValue($value) |
140 | 143 | { |
141 | 144 | // Regenerate links prior to preview, so that the editor can see them. |