@@ -73,7 +73,7 @@ |
||
73 | 73 | /** |
74 | 74 | * @param array |
75 | 75 | * |
76 | - * @return HTML |
|
76 | + * @return DBField |
|
77 | 77 | */ |
78 | 78 | public function getAttributesHTML($attrs = null) { |
79 | 79 | $exclude = (is_string($attrs)) ? func_get_args() : null; |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * Gets the combined configuration of all LeafAndMain subclasses required by the client app. |
220 | 220 | * |
221 | - * @return array |
|
221 | + * @return string |
|
222 | 222 | * |
223 | 223 | * WARNING: Experimental API |
224 | 224 | */ |
@@ -649,6 +649,9 @@ discard block |
||
649 | 649 | } |
650 | 650 | } |
651 | 651 | |
652 | + /** |
|
653 | + * @param SS_HTTPRequest $request |
|
654 | + */ |
|
652 | 655 | public function index($request) { |
653 | 656 | return $this->getResponseNegotiator()->respond($request); |
654 | 657 | } |
@@ -1963,7 +1966,7 @@ discard block |
||
1963 | 1966 | } |
1964 | 1967 | |
1965 | 1968 | /** |
1966 | - * @return String |
|
1969 | + * @return DBField |
|
1967 | 1970 | */ |
1968 | 1971 | public function Locale() { |
1969 | 1972 | return DBField::create_field('Locale', i18n::get_locale()); |
@@ -2129,6 +2132,9 @@ discard block |
||
2129 | 2132 | return (parent::isFinished() || $this->isFinished); |
2130 | 2133 | } |
2131 | 2134 | |
2135 | + /** |
|
2136 | + * @param boolean $bool |
|
2137 | + */ |
|
2132 | 2138 | public function setIsFinished($bool) { |
2133 | 2139 | $this->isFinished = $bool; |
2134 | 2140 | } |
@@ -20,7 +20,6 @@ |
||
20 | 20 | use SilverStripe\Security\Permission; |
21 | 21 | use SilverStripe\Security\Security; |
22 | 22 | use SilverStripe\Security\PermissionProvider; |
23 | -use SilverStripe\View\ThemeResourceLoader; |
|
24 | 23 | |
25 | 24 | |
26 | 25 | /** |
@@ -214,6 +214,9 @@ discard block |
||
214 | 214 | |
215 | 215 | |
216 | 216 | |
217 | + /** |
|
218 | + * @param boolean $disabled |
|
219 | + */ |
|
217 | 220 | public function setDisabled($disabled) { |
218 | 221 | parent::setDisabled($disabled); |
219 | 222 | foreach($this->getChildren() as $child) { |
@@ -222,6 +225,9 @@ discard block |
||
222 | 225 | return $this; |
223 | 226 | } |
224 | 227 | |
228 | + /** |
|
229 | + * @param boolean $readonly |
|
230 | + */ |
|
225 | 231 | public function setReadonly($readonly) |
226 | 232 | { |
227 | 233 | parent::setReadonly($readonly); |
@@ -367,6 +373,9 @@ discard block |
||
367 | 373 | return $clone; |
368 | 374 | } |
369 | 375 | |
376 | + /** |
|
377 | + * @return boolean |
|
378 | + */ |
|
370 | 379 | public function IsReadonly() { |
371 | 380 | return $this->readonly; |
372 | 381 | } |
@@ -376,6 +385,7 @@ discard block |
||
376 | 385 | * the children collection. Doesn't work recursively. |
377 | 386 | * |
378 | 387 | * @param string|FormField |
388 | + * @param string $field |
|
379 | 389 | * @return int Position in children collection (first position starts with 0). Returns FALSE if the field can't |
380 | 390 | * be found. |
381 | 391 | */ |
@@ -64,6 +64,10 @@ discard block |
||
64 | 64 | */ |
65 | 65 | protected $config; |
66 | 66 | |
67 | + /** |
|
68 | + * @param string $name |
|
69 | + * @param string $title |
|
70 | + */ |
|
67 | 71 | public function __construct($name, $title = null, $value = ""){ |
68 | 72 | $this->config = $this->config()->default_config; |
69 | 73 | |
@@ -74,6 +78,9 @@ discard block |
||
74 | 78 | parent::__construct($name, $title, $value); |
75 | 79 | } |
76 | 80 | |
81 | + /** |
|
82 | + * @param Form $form |
|
83 | + */ |
|
77 | 84 | public function setForm($form) { |
78 | 85 | parent::setForm($form); |
79 | 86 | |
@@ -84,6 +91,9 @@ discard block |
||
84 | 91 | return $this; |
85 | 92 | } |
86 | 93 | |
94 | + /** |
|
95 | + * @param string $name |
|
96 | + */ |
|
87 | 97 | public function setName($name) { |
88 | 98 | parent::setName($name); |
89 | 99 | |
@@ -96,7 +106,7 @@ discard block |
||
96 | 106 | |
97 | 107 | /** |
98 | 108 | * @param array $properties |
99 | - * @return string |
|
109 | + * @return DBHTMLText |
|
100 | 110 | */ |
101 | 111 | public function FieldHolder($properties = array()) { |
102 | 112 | $config = array( |
@@ -110,7 +120,7 @@ discard block |
||
110 | 120 | |
111 | 121 | /** |
112 | 122 | * @param array $properties |
113 | - * @return string |
|
123 | + * @return DBHTMLText |
|
114 | 124 | */ |
115 | 125 | public function Field($properties = array()) { |
116 | 126 | Requirements::css(FRAMEWORK_DIR . '/client/dist/styles/DatetimeField.css'); |
@@ -223,6 +233,9 @@ discard block |
||
223 | 233 | return $this; |
224 | 234 | } |
225 | 235 | |
236 | + /** |
|
237 | + * @param boolean $bool |
|
238 | + */ |
|
226 | 239 | public function setReadonly($bool) { |
227 | 240 | parent::setReadonly($bool); |
228 | 241 | $this->dateField->setReadonly($bool); |
@@ -240,6 +253,7 @@ discard block |
||
240 | 253 | |
241 | 254 | /** |
242 | 255 | * @param FormField |
256 | + * @param DateField $field |
|
243 | 257 | */ |
244 | 258 | public function setDateField($field) { |
245 | 259 | $expected = $this->getName() . '[date]'; |
@@ -265,6 +279,7 @@ discard block |
||
265 | 279 | |
266 | 280 | /** |
267 | 281 | * @param FormField |
282 | + * @param TimeField $field |
|
268 | 283 | */ |
269 | 284 | public function setTimeField($field) { |
270 | 285 | $expected = $this->getName() . '[time]'; |
@@ -312,7 +327,7 @@ discard block |
||
312 | 327 | * to set field-specific config options. |
313 | 328 | * |
314 | 329 | * @param string $name |
315 | - * @param mixed $val |
|
330 | + * @param string $val |
|
316 | 331 | */ |
317 | 332 | public function setConfig($name, $val) { |
318 | 333 | $this->config[$name] = $val; |
@@ -330,7 +345,7 @@ discard block |
||
330 | 345 | * to get field-specific config options. |
331 | 346 | * |
332 | 347 | * @param String $name Optional, returns the whole configuration array if empty |
333 | - * @return mixed |
|
348 | + * @return string |
|
334 | 349 | */ |
335 | 350 | public function getConfig($name = null) { |
336 | 351 | if($name) { |
@@ -340,6 +355,9 @@ discard block |
||
340 | 355 | } |
341 | 356 | } |
342 | 357 | |
358 | + /** |
|
359 | + * @param RequiredFields $validator |
|
360 | + */ |
|
343 | 361 | public function validate($validator) { |
344 | 362 | $dateValid = $this->dateField->validate($validator); |
345 | 363 | $timeValid = $this->timeField->validate($validator); |
@@ -60,6 +60,10 @@ discard block |
||
60 | 60 | return $this->fieldAmount; |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param string $name |
|
65 | + * @param string $title |
|
66 | + */ |
|
63 | 67 | public function __construct($name, $title = null, $value = "") { |
64 | 68 | $this->setName($name); |
65 | 69 | |
@@ -132,7 +136,7 @@ discard block |
||
132 | 136 | * |
133 | 137 | * (see @link MoneyFieldTest_CustomSetter_Object for more information) |
134 | 138 | * |
135 | - * @param DataObjectInterface|Object $dataObject |
|
139 | + * @param DataObjectInterface $dataObject |
|
136 | 140 | */ |
137 | 141 | public function saveInto(DataObjectInterface $dataObject) { |
138 | 142 | $fieldName = $this->getName(); |
@@ -161,6 +165,9 @@ discard block |
||
161 | 165 | return $clone; |
162 | 166 | } |
163 | 167 | |
168 | + /** |
|
169 | + * @param boolean $bool |
|
170 | + */ |
|
164 | 171 | public function setReadonly($bool) { |
165 | 172 | parent::setReadonly($bool); |
166 | 173 |
@@ -43,6 +43,9 @@ |
||
43 | 43 | self::$instance = $instance; |
44 | 44 | } |
45 | 45 | |
46 | + /** |
|
47 | + * @param string $base |
|
48 | + */ |
|
46 | 49 | public function __construct($base = null) { |
47 | 50 | $this->base = $base ? $base : BASE_PATH; |
48 | 51 | } |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SilverStripe\View; |
4 | 4 | |
5 | -use Deprecation; |
|
6 | - |
|
7 | 5 | /** |
8 | 6 | * Handles finding templates from a stack of template manifest objects. |
9 | 7 | * |