@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | /** |
| 58 | 58 | * Assign a new configuration instance or identifier |
| 59 | 59 | * |
| 60 | - * @param string|HtmlEditorConfig $config |
|
| 60 | + * @param string $config |
|
| 61 | 61 | * @return $this |
| 62 | 62 | */ |
| 63 | 63 | public function setEditorConfig($config) { |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * |
| 72 | 72 | * @param string $name The internal field name, passed to forms. |
| 73 | 73 | * @param string $title The human-readable field label. |
| 74 | - * @param mixed $value The value of the field. |
|
| 74 | + * @param integer $value The value of the field. |
|
| 75 | 75 | * @param string $config HtmlEditorConfig identifier to be used. Default to the active one. |
| 76 | 76 | */ |
| 77 | 77 | public function __construct($name, $title = null, $value = '', $config = null) { |
@@ -112,6 +112,9 @@ discard block |
||
| 112 | 112 | $record->{$this->name} = $htmlValue->getContent(); |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | + /** |
|
| 116 | + * @param string|null $value |
|
| 117 | + */ |
|
| 115 | 118 | public function setValue($value) { |
| 116 | 119 | // Regenerate links prior to preview, so that the editor can see them. |
| 117 | 120 | $value = Image::regenerate_html_links($value); |
@@ -179,6 +182,10 @@ discard block |
||
| 179 | 182 | |
| 180 | 183 | protected $controller, $name; |
| 181 | 184 | |
| 185 | + /** |
|
| 186 | + * @param Controller|null $controller |
|
| 187 | + * @param string $name |
|
| 188 | + */ |
|
| 182 | 189 | public function __construct($controller, $name) { |
| 183 | 190 | parent::__construct(); |
| 184 | 191 | |
@@ -197,7 +204,7 @@ discard block |
||
| 197 | 204 | /** |
| 198 | 205 | * Searches the SiteTree for display in the dropdown |
| 199 | 206 | * |
| 200 | - * @return callback |
|
| 207 | + * @return DataList |
|
| 201 | 208 | */ |
| 202 | 209 | public function siteTreeSearchCallback($sourceObject, $labelField, $search) { |
| 203 | 210 | return DataObject::get($sourceObject)->filterAny(array( |
@@ -577,7 +584,7 @@ discard block |
||
| 577 | 584 | /** |
| 578 | 585 | * Find all anchors available on the given page. |
| 579 | 586 | * |
| 580 | - * @return array |
|
| 587 | + * @return string |
|
| 581 | 588 | * @throws SS_HTTPResponse_Exception |
| 582 | 589 | */ |
| 583 | 590 | public function getanchors() { |
@@ -1136,7 +1143,7 @@ discard block |
||
| 1136 | 1143 | /** |
| 1137 | 1144 | * Get OEmbed type |
| 1138 | 1145 | * |
| 1139 | - * @return string |
|
| 1146 | + * @return boolean |
|
| 1140 | 1147 | */ |
| 1141 | 1148 | public function getType() { |
| 1142 | 1149 | return $this->oembed->type; |