@@ -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 | { |
@@ -67,6 +67,10 @@ discard block |
||
67 | 67 | */ |
68 | 68 | protected $name; |
69 | 69 | |
70 | + /** |
|
71 | + * @param Controller|null $controller |
|
72 | + * @param string $name |
|
73 | + */ |
|
70 | 74 | public function __construct($controller, $name) |
71 | 75 | { |
72 | 76 | parent::__construct(); |
@@ -487,7 +491,7 @@ discard block |
||
487 | 491 | /** |
488 | 492 | * Find all anchors available on the given page. |
489 | 493 | * |
490 | - * @return array |
|
494 | + * @return string |
|
491 | 495 | * @throws SS_HTTPResponse_Exception |
492 | 496 | */ |
493 | 497 | public function getanchors() |
@@ -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) { |
@@ -74,7 +74,7 @@ |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
77 | - * @return string |
|
77 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
78 | 78 | */ |
79 | 79 | public function InternallyLabelledField() { |
80 | 80 | Deprecation::notice('4.0', 'Please use ->setValue() instead'); |
@@ -74,7 +74,7 @@ |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
77 | - * @return string |
|
77 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
78 | 78 | */ |
79 | 79 | public function InternallyLabelledField() { |
80 | 80 | Deprecation::notice('4.0', 'Please use ->setValue() instead'); |
@@ -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; |