@@ -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. |
@@ -142,7 +142,7 @@ |
||
142 | 142 | } |
143 | 143 | |
144 | 144 | /** |
145 | - * @return AdapterInterface |
|
145 | + * @return Embed |
|
146 | 146 | */ |
147 | 147 | public function getEmbed() |
148 | 148 | { |
@@ -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(); |
@@ -508,7 +512,7 @@ discard block |
||
508 | 512 | /** |
509 | 513 | * Find all anchors available on the given page. |
510 | 514 | * |
511 | - * @return array |
|
515 | + * @return string |
|
512 | 516 | * @throws HTTPResponse_Exception |
513 | 517 | */ |
514 | 518 | public function getanchors() |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * Returns a <select> tag containing all the appropriate <option> tags |
66 | 66 | * |
67 | 67 | * @param array $properties |
68 | - * @return string |
|
68 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
69 | 69 | */ |
70 | 70 | public function Field($properties = array()) |
71 | 71 | { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * |
29 | 29 | * @param array $properties |
30 | 30 | * |
31 | - * @return string |
|
31 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
32 | 32 | */ |
33 | 33 | public function Field($properties = array()) |
34 | 34 | { |
@@ -61,6 +61,10 @@ discard block |
||
61 | 61 | return $this->fieldAmount; |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @param string $name |
|
66 | + * @param string $title |
|
67 | + */ |
|
64 | 68 | public function __construct($name, $title = null, $value = "") |
65 | 69 | { |
66 | 70 | $this->setName($name); |
@@ -136,7 +140,7 @@ discard block |
||
136 | 140 | * |
137 | 141 | * (see @link MoneyFieldTest_CustomSetter_Object for more information) |
138 | 142 | * |
139 | - * @param DataObjectInterface|Object $dataObject |
|
143 | + * @param DataObjectInterface $dataObject |
|
140 | 144 | */ |
141 | 145 | public function saveInto(DataObjectInterface $dataObject) |
142 | 146 | { |
@@ -167,6 +171,9 @@ discard block |
||
167 | 171 | return $clone; |
168 | 172 | } |
169 | 173 | |
174 | + /** |
|
175 | + * @param boolean $bool |
|
176 | + */ |
|
170 | 177 | public function setReadonly($bool) |
171 | 178 | { |
172 | 179 | parent::setReadonly($bool); |
@@ -211,6 +218,9 @@ discard block |
||
211 | 218 | return $this->allowedCurrencies; |
212 | 219 | } |
213 | 220 | |
221 | + /** |
|
222 | + * @param string $locale |
|
223 | + */ |
|
214 | 224 | public function setLocale($locale) |
215 | 225 | { |
216 | 226 | $this->_locale = $locale; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | /** |
83 | 83 | * Set the label used for the Is Null checkbox. |
84 | 84 | * |
85 | - * @param $isNulLabel string |
|
85 | + * @param string $isNulLabel string |
|
86 | 86 | * |
87 | 87 | * @return $this |
88 | 88 | */ |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | /** |
130 | 130 | * Value is sometimes an array, and sometimes a single value, so we need to handle both cases |
131 | 131 | * |
132 | - * @param mixed $value |
|
132 | + * @param string|null $value |
|
133 | 133 | * @param null|array $data |
134 | 134 | * |
135 | 135 | * @return $this |