@@ -118,6 +118,11 @@ discard block |
||
| 118 | 118 | ); |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | + /** |
|
| 122 | + * @param Requirements_Backend $backend |
|
| 123 | + * @param boolean $async |
|
| 124 | + * @param boolean $defer |
|
| 125 | + */ |
|
| 121 | 126 | protected function setupCombinedRequirementsJavascriptAsyncDefer($backend, $async, $defer) { |
| 122 | 127 | $basePath = $this->getCurrentRelativePath(); |
| 123 | 128 | $this->setupRequirements($backend); |
@@ -805,6 +810,10 @@ discard block |
||
| 805 | 810 | } |
| 806 | 811 | } |
| 807 | 812 | |
| 813 | + /** |
|
| 814 | + * @param Requirements_Backend $backend |
|
| 815 | + * @param string $type |
|
| 816 | + */ |
|
| 808 | 817 | public function assertFileNotIncluded($backend, $type, $files) { |
| 809 | 818 | $includedFiles = $this->getBackendFiles($backend, $type); |
| 810 | 819 | if(is_array($files)) { |
@@ -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; |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | - * @return ArrayList |
|
| 196 | + * @return SilverStripe\ORM\ArrayList |
|
| 197 | 197 | */ |
| 198 | 198 | public function getComponents() { |
| 199 | 199 | return $this->config->getComponents(); |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | * |
| 205 | 205 | * @todo refactor this into GridFieldComponent |
| 206 | 206 | * |
| 207 | - * @param mixed $value |
|
| 207 | + * @param string $value |
|
| 208 | 208 | * @param string|array $castingDefinition |
| 209 | 209 | * |
| 210 | 210 | * @return mixed |
@@ -63,6 +63,10 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | protected $config; |
| 65 | 65 | |
| 66 | + /** |
|
| 67 | + * @param string $name |
|
| 68 | + * @param string $title |
|
| 69 | + */ |
|
| 66 | 70 | public function __construct($name, $title = null, $value = ""){ |
| 67 | 71 | $this->config = $this->config()->default_config; |
| 68 | 72 | |
@@ -75,6 +79,9 @@ discard block |
||
| 75 | 79 | parent::__construct($name, $title, $value); |
| 76 | 80 | } |
| 77 | 81 | |
| 82 | + /** |
|
| 83 | + * @param Form $form |
|
| 84 | + */ |
|
| 78 | 85 | public function setForm($form) { |
| 79 | 86 | parent::setForm($form); |
| 80 | 87 | |
@@ -85,6 +92,9 @@ discard block |
||
| 85 | 92 | return $this; |
| 86 | 93 | } |
| 87 | 94 | |
| 95 | + /** |
|
| 96 | + * @param string $name |
|
| 97 | + */ |
|
| 88 | 98 | public function setName($name) { |
| 89 | 99 | parent::setName($name); |
| 90 | 100 | |
@@ -97,7 +107,7 @@ discard block |
||
| 97 | 107 | |
| 98 | 108 | /** |
| 99 | 109 | * @param array $properties |
| 100 | - * @return string |
|
| 110 | + * @return DBHTMLText |
|
| 101 | 111 | */ |
| 102 | 112 | public function FieldHolder($properties = array()) { |
| 103 | 113 | $config = array( |
@@ -249,6 +259,7 @@ discard block |
||
| 249 | 259 | |
| 250 | 260 | /** |
| 251 | 261 | * @param FormField |
| 262 | + * @param DateField $field |
|
| 252 | 263 | */ |
| 253 | 264 | public function setDateField($field) { |
| 254 | 265 | $expected = $this->getName() . '[date]'; |
@@ -274,6 +285,7 @@ discard block |
||
| 274 | 285 | |
| 275 | 286 | /** |
| 276 | 287 | * @param FormField |
| 288 | + * @param TimeField $field |
|
| 277 | 289 | */ |
| 278 | 290 | public function setTimeField($field) { |
| 279 | 291 | $expected = $this->getName() . '[time]'; |
@@ -312,7 +324,7 @@ discard block |
||
| 312 | 324 | * to set field-specific config options. |
| 313 | 325 | * |
| 314 | 326 | * @param string $name |
| 315 | - * @param mixed $val |
|
| 327 | + * @param string $val |
|
| 316 | 328 | */ |
| 317 | 329 | public function setConfig($name, $val) { |
| 318 | 330 | $this->config[$name] = $val; |
@@ -330,7 +342,7 @@ discard block |
||
| 330 | 342 | * to get field-specific config options. |
| 331 | 343 | * |
| 332 | 344 | * @param String $name Optional, returns the whole configuration array if empty |
| 333 | - * @return mixed |
|
| 345 | + * @return string|null |
|
| 334 | 346 | */ |
| 335 | 347 | public function getConfig($name = null) { |
| 336 | 348 | if($name) { |
@@ -340,6 +352,9 @@ discard block |
||
| 340 | 352 | } |
| 341 | 353 | } |
| 342 | 354 | |
| 355 | + /** |
|
| 356 | + * @param RequiredFields $validator |
|
| 357 | + */ |
|
| 343 | 358 | public function validate($validator) { |
| 344 | 359 | $dateValid = $this->dateField->validate($validator); |
| 345 | 360 | $timeValid = $this->timeField->validate($validator); |
@@ -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) { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | 95 | * @param array $properties |
| 96 | - * @return string |
|
| 96 | + * @return DBHTMLText |
|
| 97 | 97 | */ |
| 98 | 98 | public function Field($properties = array()) { |
| 99 | 99 | $properties = array_merge( |
@@ -158,6 +158,7 @@ discard block |
||
| 158 | 158 | * Enable or disable the rendering of this action as a <button /> |
| 159 | 159 | * |
| 160 | 160 | * @param boolean |
| 161 | + * @param boolean $bool |
|
| 161 | 162 | * @return $this |
| 162 | 163 | */ |
| 163 | 164 | public function setUseButtonTag($bool) { |
@@ -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()); |