@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | 89 | * @param array $properties |
| 90 | - * @return string |
|
| 90 | + * @return DBHTMLText |
|
| 91 | 91 | */ |
| 92 | 92 | public function Field($properties = array()) { |
| 93 | 93 | $properties = array_merge($properties, array( |
@@ -251,7 +251,6 @@ discard block |
||
| 251 | 251 | * for each of these categories |
| 252 | 252 | * |
| 253 | 253 | * @param string $category Category name |
| 254 | - * @param string,... $categories Additional category names |
|
| 255 | 254 | * @return $this |
| 256 | 255 | */ |
| 257 | 256 | public function setAllowedFileCategories($category) { |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | /** |
| 134 | 134 | * @param array $properties |
| 135 | - * @return string |
|
| 135 | + * @return DBHTMLText |
|
| 136 | 136 | */ |
| 137 | 137 | public function Field($properties = array()) { |
| 138 | 138 | $properties = array_merge( |
@@ -197,6 +197,7 @@ discard block |
||
| 197 | 197 | * Enable or disable the rendering of this action as a <button /> |
| 198 | 198 | * |
| 199 | 199 | * @param boolean |
| 200 | + * @param boolean $bool |
|
| 200 | 201 | * @return $this |
| 201 | 202 | */ |
| 202 | 203 | public function setUseButtonTag($bool) { |
@@ -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; |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | * Which columns are handled by this component |
| 56 | 56 | * |
| 57 | 57 | * @param GridField $gridField |
| 58 | - * @return array |
|
| 58 | + * @return string[] |
|
| 59 | 59 | */ |
| 60 | 60 | public function getColumnsHandled($gridField) { |
| 61 | 61 | return array('Actions'); |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | * @param DataObject $record |
| 77 | 77 | * @param string $columnName |
| 78 | 78 | * |
| 79 | - * @return string - the HTML for the column |
|
| 79 | + * @return DBHTMLText - the HTML for the column |
|
| 80 | 80 | */ |
| 81 | 81 | public function getColumnContent($gridField, $record, $columnName) { |
| 82 | 82 | // No permission checks, handled through GridFieldDetailForm, |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * @param array $properties |
| 15 | - * @return string |
|
| 15 | + * @return DBHTMLText |
|
| 16 | 16 | */ |
| 17 | 17 | public function FieldHolder($properties = array()) { |
| 18 | 18 | return $this->Field($properties); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * |
| 25 | 25 | * @param array $properties |
| 26 | 26 | * |
| 27 | - * @return string |
|
| 27 | + * @return SilverStripe\ORM\FieldType\DBHTMLText |
|
| 28 | 28 | */ |
| 29 | 29 | public function Field($properties = array()) { |
| 30 | 30 | $source = ArrayLib::flatten($this->getSource()); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | /** |
| 85 | 85 | * Set the label used for the Is Null checkbox. |
| 86 | 86 | * |
| 87 | - * @param $isNulLabel string |
|
| 87 | + * @param string $isNulLabel string |
|
| 88 | 88 | * |
| 89 | 89 | * @return $this |
| 90 | 90 | */ |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | /** |
| 129 | 129 | * Value is sometimes an array, and sometimes a single value, so we need to handle both cases |
| 130 | 130 | * |
| 131 | - * @param mixed $value |
|
| 131 | + * @param string|null $value |
|
| 132 | 132 | * @param null|array $data |
| 133 | 133 | * |
| 134 | 134 | * @return $this |
@@ -1,8 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | |
| 4 | -use SilverStripe\ORM\FieldType\DBField; |
|
| 5 | - |
|
| 6 | 4 | |
| 7 | 5 | /** |
| 8 | 6 | * NullableField is a field that wraps other fields when you want to allow the user to specify |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | * If $dontEscape is false the returned value will be safely encoded, |
| 96 | 96 | * but should not be escaped by the frontend. |
| 97 | 97 | * |
| 98 | - * @return mixed|string |
|
| 98 | + * @return string |
|
| 99 | 99 | */ |
| 100 | 100 | public function Value() { |
| 101 | 101 | // Get raw value |
@@ -154,6 +154,9 @@ discard block |
||
| 154 | 154 | return $this->title; |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | + /** |
|
| 158 | + * @param string $title |
|
| 159 | + */ |
|
| 157 | 160 | function setTitle($title) { |
| 158 | 161 | $this->title = $title; |
| 159 | 162 | return $this; |
@@ -163,6 +166,9 @@ discard block |
||
| 163 | 166 | return $this->value; |
| 164 | 167 | } |
| 165 | 168 | |
| 169 | + /** |
|
| 170 | + * @param string $Value |
|
| 171 | + */ |
|
| 166 | 172 | function setValue($Value) { |
| 167 | 173 | $this->value = $Value; |
| 168 | 174 | return $this; |