@@ -46,7 +46,7 @@ |
||
46 | 46 | /** |
47 | 47 | * Given a TinyMCE pattern (close to unix glob style), create a regex that does the match |
48 | 48 | * |
49 | - * @param $str - The TinyMCE pattern |
|
49 | + * @param string|null $str - The TinyMCE pattern |
|
50 | 50 | * @return string - The equivalent regex |
51 | 51 | */ |
52 | 52 | protected function patternToRegex($str) { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use DOMAttr; |
6 | 6 | use DOMElement; |
7 | -use DOMNode; |
|
8 | 7 | use SilverStripe\Core\Injector\Injectable; |
9 | 8 | use SilverStripe\View\Parsers\HTMLValue; |
10 | 9 | use stdClass; |
@@ -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 |
@@ -74,6 +74,9 @@ |
||
74 | 74 | return $state; |
75 | 75 | } |
76 | 76 | |
77 | + /** |
|
78 | + * @param \SilverStripe\Forms\FieldList $fields |
|
79 | + */ |
|
77 | 80 | protected function getFieldStates($fields) { |
78 | 81 | $states = []; |
79 | 82 | foreach ($fields as $field) { |
@@ -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; |
@@ -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'); |
@@ -52,6 +52,10 @@ discard block |
||
52 | 52 | |
53 | 53 | protected $schemaDataType = FormField::SCHEMA_DATA_TYPE_TIME; |
54 | 54 | |
55 | + /** |
|
56 | + * @param string $name |
|
57 | + * @param string $title |
|
58 | + */ |
|
55 | 59 | public function __construct($name, $title = null, $value = ""){ |
56 | 60 | if(!$this->locale) { |
57 | 61 | $this->locale = i18n::get_locale(); |
@@ -213,7 +217,7 @@ discard block |
||
213 | 217 | |
214 | 218 | /** |
215 | 219 | * @param String $name Optional, returns the whole configuration array if empty |
216 | - * @return mixed|array |
|
220 | + * @return string |
|
217 | 221 | */ |
218 | 222 | public function getConfig($name = null) { |
219 | 223 | if($name) { |
@@ -230,6 +234,9 @@ discard block |
||
230 | 234 | return $this->castedCopy('TimeField_Readonly'); |
231 | 235 | } |
232 | 236 | |
237 | + /** |
|
238 | + * @param string $class |
|
239 | + */ |
|
233 | 240 | public function castedCopy($class) { |
234 | 241 | $copy = parent::castedCopy($class); |
235 | 242 | if($copy->hasMethod('setConfig')) { |