@@ -352,6 +352,7 @@ |
||
| 352 | 352 | * the children collection. Doesn't work recursively. |
| 353 | 353 | * |
| 354 | 354 | * @param string|FormField |
| 355 | + * @param string $field |
|
| 355 | 356 | * @return int Position in children collection (first position starts with 0). Returns FALSE if the field can't |
| 356 | 357 | * be found. |
| 357 | 358 | */ |
@@ -152,6 +152,9 @@ discard block |
||
| 152 | 152 | return $this->title; |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | + /** |
|
| 156 | + * @param string $title |
|
| 157 | + */ |
|
| 155 | 158 | function setTitle($title) { |
| 156 | 159 | $this->title = $title; |
| 157 | 160 | return $this; |
@@ -161,6 +164,9 @@ discard block |
||
| 161 | 164 | return $this->value; |
| 162 | 165 | } |
| 163 | 166 | |
| 167 | + /** |
|
| 168 | + * @param string $Value |
|
| 169 | + */ |
|
| 164 | 170 | function setValue($Value) { |
| 165 | 171 | $this->value = $Value; |
| 166 | 172 | return $this; |
@@ -760,7 +760,6 @@ discard block |
||
| 760 | 760 | * Set the field value. |
| 761 | 761 | * |
| 762 | 762 | * @param mixed $value |
| 763 | - * @param null|array|DataObject $data {@see Form::loadDataFrom} |
|
| 764 | 763 | * |
| 765 | 764 | * @return $this |
| 766 | 765 | */ |
@@ -1184,7 +1183,7 @@ discard block |
||
| 1184 | 1183 | /** |
| 1185 | 1184 | * @param FormTransformation $transformation |
| 1186 | 1185 | * |
| 1187 | - * @return mixed |
|
| 1186 | + * @return FormField |
|
| 1188 | 1187 | */ |
| 1189 | 1188 | public function transform(FormTransformation $transformation) { |
| 1190 | 1189 | return $transformation->transform($this); |
@@ -1287,7 +1286,7 @@ discard block |
||
| 1287 | 1286 | * This function is used by the template processor. If you refer to a field as a $ variable, it |
| 1288 | 1287 | * will return the $Field value. |
| 1289 | 1288 | * |
| 1290 | - * @return string |
|
| 1289 | + * @return DBHTMLText |
|
| 1291 | 1290 | */ |
| 1292 | 1291 | public function forTemplate() { |
| 1293 | 1292 | return $this->Field(); |
@@ -1309,7 +1308,7 @@ discard block |
||
| 1309 | 1308 | * |
| 1310 | 1309 | * @param FieldList $containerFieldList |
| 1311 | 1310 | * |
| 1312 | - * @return FieldList |
|
| 1311 | + * @return FormField |
|
| 1313 | 1312 | */ |
| 1314 | 1313 | public function setContainerFieldList($containerFieldList) { |
| 1315 | 1314 | $this->containerFieldList = $containerFieldList; |