@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * Assign a new configuration instance or identifier |
51 | 51 | * |
52 | - * @param string|HtmlEditorConfig $config |
|
52 | + * @param string $config |
|
53 | 53 | * @return $this |
54 | 54 | */ |
55 | 55 | public function setEditorConfig($config) { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @param string $name The internal field name, passed to forms. |
65 | 65 | * @param string $title The human-readable field label. |
66 | - * @param mixed $value The value of the field. |
|
66 | + * @param integer $value The value of the field. |
|
67 | 67 | * @param string $config HtmlEditorConfig identifier to be used. Default to the active one. |
68 | 68 | */ |
69 | 69 | public function __construct($name, $title = null, $value = '', $config = null) { |
@@ -104,6 +104,9 @@ discard block |
||
104 | 104 | $record->{$this->name} = $htmlValue->getContent(); |
105 | 105 | } |
106 | 106 | |
107 | + /** |
|
108 | + * @param string|null $value |
|
109 | + */ |
|
107 | 110 | public function setValue($value) { |
108 | 111 | // Regenerate links prior to preview, so that the editor can see them. |
109 | 112 | $value = Image::regenerate_html_links($value); |
@@ -171,6 +174,10 @@ discard block |
||
171 | 174 | |
172 | 175 | protected $controller, $name; |
173 | 176 | |
177 | + /** |
|
178 | + * @param Controller $controller |
|
179 | + * @param string $name |
|
180 | + */ |
|
174 | 181 | public function __construct($controller, $name) { |
175 | 182 | parent::__construct(); |
176 | 183 | |
@@ -189,7 +196,7 @@ discard block |
||
189 | 196 | /** |
190 | 197 | * Searches the SiteTree for display in the dropdown |
191 | 198 | * |
192 | - * @return callback |
|
199 | + * @return DataList |
|
193 | 200 | */ |
194 | 201 | public function siteTreeSearchCallback($sourceObject, $labelField, $search) { |
195 | 202 | return DataObject::get($sourceObject)->filterAny(array( |
@@ -467,7 +474,7 @@ discard block |
||
467 | 474 | /** |
468 | 475 | * Find all anchors available on the given page. |
469 | 476 | * |
470 | - * @return array |
|
477 | + * @return string |
|
471 | 478 | */ |
472 | 479 | public function getanchors() { |
473 | 480 | $id = (int)$this->getRequest()->getVar('PageID'); |
@@ -1025,7 +1032,7 @@ discard block |
||
1025 | 1032 | /** |
1026 | 1033 | * Get OEmbed type |
1027 | 1034 | * |
1028 | - * @return string |
|
1035 | + * @return boolean |
|
1029 | 1036 | */ |
1030 | 1037 | public function getType() { |
1031 | 1038 | return $this->oembed->type; |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | * |
249 | 249 | * @param array $args Array of input shortcode arguments |
250 | 250 | * @param int $errorCode If the file is not found, or is inaccessible, this will be assigned to a HTTP error code. |
251 | - * @return File|null The File DataObject, if it can be found. |
|
251 | + * @return null|DataObject The File DataObject, if it can be found. |
|
252 | 252 | */ |
253 | 253 | public static function find_shortcode_record($args, &$errorCode = null) { |
254 | 254 | // Validate shortcode |
@@ -973,6 +973,7 @@ discard block |
||
973 | 973 | * |
974 | 974 | * @param String File extension, without dot prefix. Use an asterisk ('*') |
975 | 975 | * to specify a generic fallback if no mapping is found for an extension. |
976 | + * @param string $ext |
|
976 | 977 | * @return String Classname for a subclass of {@link File} |
977 | 978 | */ |
978 | 979 | public static function get_class_for_file_extension($ext) { |
@@ -1106,7 +1107,6 @@ discard block |
||
1106 | 1107 | * Note that the result will not have a leading slash, and should not be used |
1107 | 1108 | * with local file paths. |
1108 | 1109 | * |
1109 | - * @param string $part,... Parts |
|
1110 | 1110 | * @return string |
1111 | 1111 | */ |
1112 | 1112 | public static function join_paths() { |