@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * Assign a new configuration instance or identifier |
| 67 | 67 | * |
| 68 | - * @param string|HtmlEditorConfig $config |
|
| 68 | + * @param string $config |
|
| 69 | 69 | * @return $this |
| 70 | 70 | */ |
| 71 | 71 | public function setEditorConfig($config) { |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * |
| 80 | 80 | * @param string $name The internal field name, passed to forms. |
| 81 | 81 | * @param string $title The human-readable field label. |
| 82 | - * @param mixed $value The value of the field. |
|
| 82 | + * @param integer $value The value of the field. |
|
| 83 | 83 | * @param string $config HtmlEditorConfig identifier to be used. Default to the active one. |
| 84 | 84 | */ |
| 85 | 85 | public function __construct($name, $title = null, $value = '', $config = null) { |
@@ -120,6 +120,9 @@ discard block |
||
| 120 | 120 | $record->{$this->name} = $htmlValue->getContent(); |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | + /** |
|
| 124 | + * @param string|null $value |
|
| 125 | + */ |
|
| 123 | 126 | public function setValue($value) { |
| 124 | 127 | // Regenerate links prior to preview, so that the editor can see them. |
| 125 | 128 | $value = Image::regenerate_html_links($value); |
@@ -187,6 +190,10 @@ discard block |
||
| 187 | 190 | |
| 188 | 191 | protected $controller, $name; |
| 189 | 192 | |
| 193 | + /** |
|
| 194 | + * @param Controller|null $controller |
|
| 195 | + * @param string $name |
|
| 196 | + */ |
|
| 190 | 197 | public function __construct($controller, $name) { |
| 191 | 198 | parent::__construct(); |
| 192 | 199 | |
@@ -205,7 +212,7 @@ discard block |
||
| 205 | 212 | /** |
| 206 | 213 | * Searches the SiteTree for display in the dropdown |
| 207 | 214 | * |
| 208 | - * @return callback |
|
| 215 | + * @return DataList |
|
| 209 | 216 | */ |
| 210 | 217 | public function siteTreeSearchCallback($sourceObject, $labelField, $search) { |
| 211 | 218 | return DataObject::get($sourceObject)->filterAny(array( |
@@ -585,7 +592,7 @@ discard block |
||
| 585 | 592 | /** |
| 586 | 593 | * Find all anchors available on the given page. |
| 587 | 594 | * |
| 588 | - * @return array |
|
| 595 | + * @return string |
|
| 589 | 596 | * @throws SS_HTTPResponse_Exception |
| 590 | 597 | */ |
| 591 | 598 | public function getanchors() { |
@@ -1144,7 +1151,7 @@ discard block |
||
| 1144 | 1151 | /** |
| 1145 | 1152 | * Get OEmbed type |
| 1146 | 1153 | * |
| 1147 | - * @return string |
|
| 1154 | + * @return boolean |
|
| 1148 | 1155 | */ |
| 1149 | 1156 | public function getType() { |
| 1150 | 1157 | return $this->oembed->type; |