@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace SilverStripe\Forms; |
| 4 | 4 | |
| 5 | -use SilverStripe\View\Requirements; |
|
| 6 | - |
|
| 7 | 5 | /** |
| 8 | 6 | * Render a button that will submit the form its contained in through ajax. |
| 9 | 7 | * |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * @return string |
|
| 77 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
| 78 | 78 | */ |
| 79 | 79 | public function InternallyLabelledField() { |
| 80 | 80 | Deprecation::notice('4.0', 'Please use ->setValue() instead'); |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * @return string |
|
| 77 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
| 78 | 78 | */ |
| 79 | 79 | public function InternallyLabelledField() { |
| 80 | 80 | Deprecation::notice('4.0', 'Please use ->setValue() instead'); |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use SilverStripe\ORM\SS_List; |
| 8 | 8 | use SilverStripe\ORM\ArrayList; |
| 9 | 9 | use SilverStripe\ORM\DataObjectInterface; |
| 10 | -use SilverStripe\View\Requirements; |
|
| 11 | 10 | use InvalidArgumentException; |
| 12 | 11 | |
| 13 | 12 | /** |
@@ -57,6 +57,10 @@ discard block |
||
| 57 | 57 | return $this->fieldAmount; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | + /** |
|
| 61 | + * @param string $name |
|
| 62 | + * @param string $title |
|
| 63 | + */ |
|
| 60 | 64 | public function __construct($name, $title = null, $value = "") { |
| 61 | 65 | $this->setName($name); |
| 62 | 66 | |
@@ -129,7 +133,7 @@ discard block |
||
| 129 | 133 | * |
| 130 | 134 | * (see @link MoneyFieldTest_CustomSetter_Object for more information) |
| 131 | 135 | * |
| 132 | - * @param DataObjectInterface|Object $dataObject |
|
| 136 | + * @param DataObjectInterface $dataObject |
|
| 133 | 137 | */ |
| 134 | 138 | public function saveInto(DataObjectInterface $dataObject) { |
| 135 | 139 | $fieldName = $this->getName(); |
@@ -158,6 +162,9 @@ discard block |
||
| 158 | 162 | return $clone; |
| 159 | 163 | } |
| 160 | 164 | |
| 165 | + /** |
|
| 166 | + * @param boolean $bool |
|
| 167 | + */ |
|
| 161 | 168 | public function setReadonly($bool) { |
| 162 | 169 | parent::setReadonly($bool); |
| 163 | 170 | |
@@ -198,6 +205,9 @@ discard block |
||
| 198 | 205 | return $this->allowedCurrencies; |
| 199 | 206 | } |
| 200 | 207 | |
| 208 | + /** |
|
| 209 | + * @param string $locale |
|
| 210 | + */ |
|
| 201 | 211 | public function setLocale($locale) { |
| 202 | 212 | $this->_locale = $locale; |
| 203 | 213 | return $this; |
@@ -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 |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | class PrintableTransformation_TabSet extends TabSet |
| 9 | 9 | { |
| 10 | 10 | /** |
| 11 | - * @param array $tabs |
|
| 11 | + * @param FieldList $tabs |
|
| 12 | 12 | */ |
| 13 | 13 | public function __construct($tabs) |
| 14 | 14 | { |
@@ -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; |