Completed
Push — namespace-model ( dc57a0...2a0ce1 )
by Sam
07:25
created
forms/htmleditor/HtmlEditorField.php 1 patch
Doc Comments   +13 added lines, -6 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 	/**
67 67
 	 * Assign a new configuration instance or identifier
68 68
 	 *
69
-	 * @param string|HtmlEditorConfig $config
69
+	 * @param string $config
70 70
 	 * @return $this
71 71
 	 */
72 72
 	public function setEditorConfig($config) {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	 *
81 81
 	 * @param string $name The internal field name, passed to forms.
82 82
 	 * @param string $title The human-readable field label.
83
-	 * @param mixed $value The value of the field.
83
+	 * @param integer $value The value of the field.
84 84
 	 * @param string $config HtmlEditorConfig identifier to be used. Default to the active one.
85 85
 	 */
86 86
 	public function __construct($name, $title = null, $value = '', $config = null) {
@@ -121,6 +121,9 @@  discard block
 block discarded – undo
121 121
 		$record->{$this->name} = $htmlValue->getContent();
122 122
 	}
123 123
 
124
+	/**
125
+	 * @param string|null $value
126
+	 */
124 127
 	public function setValue($value) {
125 128
 		// Regenerate links prior to preview, so that the editor can see them.
126 129
 		$value = Image::regenerate_html_links($value);
@@ -188,6 +191,10 @@  discard block
 block discarded – undo
188 191
 
189 192
 	protected $controller, $name;
190 193
 
194
+	/**
195
+	 * @param Controller|null $controller
196
+	 * @param string $name
197
+	 */
191 198
 	public function __construct($controller, $name) {
192 199
 		parent::__construct();
193 200
 
@@ -206,7 +213,7 @@  discard block
 block discarded – undo
206 213
 	/**
207 214
 	 * Searches the SiteTree for display in the dropdown
208 215
 	 *
209
-	 * @return callback
216
+	 * @return DataList
210 217
 	 */
211 218
 	public function siteTreeSearchCallback($sourceObject, $labelField, $search) {
212 219
 		return DataObject::get($sourceObject)->filterAny(array(
@@ -491,7 +498,7 @@  discard block
 block discarded – undo
491 498
 	 *
492 499
 	 * @param string $message
493 500
 	 * @param int $code
494
-	 * @return SS_HTTPResponse_Exception
501
+	 * @return HTTPResponse_Exception
495 502
 	 */
496 503
 	protected function getErrorFor($message, $code = 400) {
497 504
 		$exception = new HTTPResponse_Exception($message, $code);
@@ -586,7 +593,7 @@  discard block
 block discarded – undo
586 593
 	/**
587 594
 	 * Find all anchors available on the given page.
588 595
 	 *
589
-	 * @return array
596
+	 * @return string
590 597
 	 * @throws SS_HTTPResponse_Exception
591 598
 	 */
592 599
 	public function getanchors() {
@@ -1145,7 +1152,7 @@  discard block
 block discarded – undo
1145 1152
 	/**
1146 1153
 	 * Get OEmbed type
1147 1154
 	 *
1148
-	 * @return string
1155
+	 * @return boolean
1149 1156
 	 */
1150 1157
 	public function getType() {
1151 1158
 		return $this->oembed->type;
Please login to merge, or discard this patch.