@@ -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) { |
@@ -57,6 +57,10 @@ discard block |
||
57 | 57 | return $this->fieldAmount; |
58 | 58 | } |
59 | 59 | |
60 | + /** |
|
61 | + * @param string $name |
|
62 | + * @param string $title |
|
63 | + */ |
|
60 | 64 | public function __construct($name, $title = null, $value = "") { |
61 | 65 | $this->setName($name); |
62 | 66 | |
@@ -129,7 +133,7 @@ discard block |
||
129 | 133 | * |
130 | 134 | * (see @link MoneyFieldTest_CustomSetter_Object for more information) |
131 | 135 | * |
132 | - * @param DataObjectInterface|Object $dataObject |
|
136 | + * @param DataObjectInterface $dataObject |
|
133 | 137 | */ |
134 | 138 | public function saveInto(DataObjectInterface $dataObject) { |
135 | 139 | $fieldName = $this->getName(); |
@@ -158,6 +162,9 @@ discard block |
||
158 | 162 | return $clone; |
159 | 163 | } |
160 | 164 | |
165 | + /** |
|
166 | + * @param boolean $bool |
|
167 | + */ |
|
161 | 168 | public function setReadonly($bool) { |
162 | 169 | parent::setReadonly($bool); |
163 | 170 | |
@@ -198,6 +205,9 @@ discard block |
||
198 | 205 | return $this->allowedCurrencies; |
199 | 206 | } |
200 | 207 | |
208 | + /** |
|
209 | + * @param string $locale |
|
210 | + */ |
|
201 | 211 | public function setLocale($locale) { |
202 | 212 | $this->_locale = $locale; |
203 | 213 | return $this; |
@@ -8,7 +8,7 @@ |
||
8 | 8 | class PrintableTransformation_TabSet extends TabSet |
9 | 9 | { |
10 | 10 | /** |
11 | - * @param array $tabs |
|
11 | + * @param FieldList $tabs |
|
12 | 12 | */ |
13 | 13 | public function __construct($tabs) |
14 | 14 | { |