@@ -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($this->gridField->Link('item'), |
@@ -339,6 +342,9 @@ discard block |
||
339 | 342 | return $c; |
340 | 343 | } |
341 | 344 | |
345 | + /** |
|
346 | + * @return string |
|
347 | + */ |
|
342 | 348 | protected function getBackLink() |
343 | 349 | { |
344 | 350 | // TODO Coupling with CMS |
@@ -446,6 +452,9 @@ discard block |
||
446 | 452 | } |
447 | 453 | } |
448 | 454 | |
455 | + /** |
|
456 | + * @param integer $errorCode |
|
457 | + */ |
|
449 | 458 | public function httpError($errorCode, $errorMessage = null) |
450 | 459 | { |
451 | 460 | $controller = $this->getToplevelController(); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * Which columns are handled by this component |
61 | 61 | * |
62 | 62 | * @param GridField $gridField |
63 | - * @return array |
|
63 | + * @return string[] |
|
64 | 64 | */ |
65 | 65 | public function getColumnsHandled($gridField) { |
66 | 66 | return array('Actions'); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * @param GridField $gridField |
81 | 81 | * @param DataObject $record |
82 | 82 | * @param string $columnName |
83 | - * @return string The HTML for the column |
|
83 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText The HTML for the column |
|
84 | 84 | */ |
85 | 85 | public function getColumnContent($gridField, $record, $columnName) { |
86 | 86 | // No permission checks, handled through GridFieldDetailForm, |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * export is an action button |
73 | 73 | * |
74 | 74 | * @param GridField $gridField |
75 | - * @return array |
|
75 | + * @return string[] |
|
76 | 76 | */ |
77 | 77 | public function getActions($gridField) { |
78 | 78 | return array('export'); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * Generate export fields for CSV. |
142 | 142 | * |
143 | 143 | * @param GridField $gridField |
144 | - * @return array |
|
144 | + * @return string |
|
145 | 145 | */ |
146 | 146 | public function generateExportFileData($gridField) { |
147 | 147 | $csvColumns = $this->getExportColumnsForGridField($gridField); |
@@ -129,7 +129,7 @@ |
||
129 | 129 | /** |
130 | 130 | * |
131 | 131 | * @param GridField $gridField |
132 | - * @return array |
|
132 | + * @return string[] |
|
133 | 133 | */ |
134 | 134 | public function getActions($gridField) { |
135 | 135 | return array('addto'); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * Gets the list of shortcodes provided by this handler |
24 | 24 | * |
25 | - * @return mixed |
|
25 | + * @return string[] |
|
26 | 26 | */ |
27 | 27 | public static function get_shortcodes() |
28 | 28 | { |
@@ -140,14 +140,14 @@ |
||
140 | 140 | * Get the current value of an option |
141 | 141 | * |
142 | 142 | * @param string $key The key of the option to get |
143 | - * @return mixed The value of the specified option |
|
143 | + * @return string The value of the specified option |
|
144 | 144 | */ |
145 | 145 | abstract public function getOption($key); |
146 | 146 | |
147 | 147 | /** |
148 | 148 | * Set the value of one option |
149 | 149 | * @param string $key The key of the option to set |
150 | - * @param mixed $value The value of the option to set |
|
150 | + * @param string $value The value of the option to set |
|
151 | 151 | * @return $this |
152 | 152 | */ |
153 | 153 | abstract public function setOption($key, $value); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | /** |
69 | 69 | * Assign a new configuration instance or identifier |
70 | 70 | * |
71 | - * @param string|HTMLEditorConfig $config |
|
71 | + * @param string $config |
|
72 | 72 | * @return $this |
73 | 73 | */ |
74 | 74 | public function setEditorConfig($config) { |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * |
83 | 83 | * @param string $name The internal field name, passed to forms. |
84 | 84 | * @param string $title The human-readable field label. |
85 | - * @param mixed $value The value of the field. |
|
85 | + * @param integer $value The value of the field. |
|
86 | 86 | * @param string $config HTMLEditorConfig identifier to be used. Default to the active one. |
87 | 87 | */ |
88 | 88 | public function __construct($name, $title = null, $value = '', $config = null) { |
@@ -127,6 +127,9 @@ discard block |
||
127 | 127 | $record->{$this->name} = $htmlValue->getContent(); |
128 | 128 | } |
129 | 129 | |
130 | + /** |
|
131 | + * @param string|null $value |
|
132 | + */ |
|
130 | 133 | public function setValue($value) { |
131 | 134 | // Regenerate links prior to preview, so that the editor can see them. |
132 | 135 | $value = Image::regenerate_html_links($value); |
@@ -140,7 +140,7 @@ |
||
140 | 140 | } |
141 | 141 | |
142 | 142 | /** |
143 | - * @return AdapterInterface |
|
143 | + * @return Embed |
|
144 | 144 | */ |
145 | 145 | public function getEmbed() |
146 | 146 | { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | /** |
47 | 47 | * Given a TinyMCE pattern (close to unix glob style), create a regex that does the match |
48 | 48 | * |
49 | - * @param $str - The TinyMCE pattern |
|
49 | + * @param string|null $str - The TinyMCE pattern |
|
50 | 50 | * @return string - The equivalent regex |
51 | 51 | */ |
52 | 52 | protected function patternToRegex($str) { |