@@ -369,8 +369,8 @@ |
||
| 369 | 369 | * |
| 370 | 370 | * @param string $method the method name to call |
| 371 | 371 | * @param mixed $a1 |
| 372 | - * @param mixed $a2 |
|
| 373 | - * @param mixed $a3 |
|
| 372 | + * @param string $a2 |
|
| 373 | + * @param boolean $a3 |
|
| 374 | 374 | * @param mixed $a4 |
| 375 | 375 | * @param mixed $a5 |
| 376 | 376 | * @param mixed $a6 |
@@ -38,6 +38,9 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | private static $nice_format = 'd/m/Y'; |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param string|null $value |
|
| 43 | + */ |
|
| 41 | 44 | public function setValue($value, $record = null, $markChanged = true) { |
| 42 | 45 | if($value === false || $value === null || (is_string($value) && !strlen($value))) { |
| 43 | 46 | // don't try to evaluate empty values with strtotime() below, as it returns "1970-01-01" when it should be |
@@ -194,7 +197,7 @@ discard block |
||
| 194 | 197 | * Return a date formatted as per a CMS user's settings. |
| 195 | 198 | * |
| 196 | 199 | * @param Member $member |
| 197 | - * @return boolean | string A date formatted as per user-defined settings. |
|
| 200 | + * @return false|string | string A date formatted as per user-defined settings. |
|
| 198 | 201 | */ |
| 199 | 202 | public function FormatFromSettings($member = null) { |
| 200 | 203 | require_once 'Zend/Date.php'; |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * @param string $name |
| 22 | 22 | * @param int $wholeSize |
| 23 | 23 | * @param int $decimalSize |
| 24 | - * @param float|int $defaultValue |
|
| 24 | + * @param integer $defaultValue |
|
| 25 | 25 | */ |
| 26 | 26 | public function __construct($name = null, $wholeSize = 9, $decimalSize = 2, $defaultValue = 0) { |
| 27 | 27 | $this->wholeSize = is_int($wholeSize) ? $wholeSize : 9; |
@@ -33,14 +33,14 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * @return float |
|
| 36 | + * @return string |
|
| 37 | 37 | */ |
| 38 | 38 | public function Nice() { |
| 39 | 39 | return number_format($this->value, $this->decimalSize); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | - * @return int |
|
| 43 | + * @return double |
|
| 44 | 44 | */ |
| 45 | 45 | public function Int() { |
| 46 | 46 | return floor($this->value); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | - * @return float |
|
| 86 | + * @return integer |
|
| 87 | 87 | */ |
| 88 | 88 | public function nullValue() { |
| 89 | 89 | return 0; |
@@ -105,6 +105,9 @@ |
||
| 105 | 105 | return $this->descriptionTemplate; |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | + /** |
|
| 109 | + * @param string $template |
|
| 110 | + */ |
|
| 108 | 111 | public function setDescriptionTemplate($template) { |
| 109 | 112 | $this->descriptionTemplate = $template; |
| 110 | 113 | } |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | * |
| 380 | 380 | * Note that columns may be double quoted as per ANSI sql standard |
| 381 | 381 | * |
| 382 | - * @return DataList |
|
| 382 | + * @return ArrayList |
|
| 383 | 383 | * @see SS_List::sort() |
| 384 | 384 | * @example $list->sort('Name'); // default ASC sorting |
| 385 | 385 | * @example $list->sort('Name DESC'); // DESC sorting |
@@ -515,7 +515,7 @@ discard block |
||
| 515 | 515 | * $list = $list->filterAny(array('Name'=>array('bob','phil'), 'Age'=>array(21, 43))); |
| 516 | 516 | * |
| 517 | 517 | * @param string|array See {@link filter()} |
| 518 | - * @return DataList |
|
| 518 | + * @return ArrayList |
|
| 519 | 519 | */ |
| 520 | 520 | public function filterAny() { |
| 521 | 521 | $keepUs = call_user_func_array(array($this, 'normaliseFilterArgs'), func_get_args()); |
@@ -666,7 +666,6 @@ discard block |
||
| 666 | 666 | /** |
| 667 | 667 | * Returns whether an item with $key exists |
| 668 | 668 | * |
| 669 | - * @param mixed $key |
|
| 670 | 669 | * @return bool |
| 671 | 670 | */ |
| 672 | 671 | public function offsetExists($offset) { |
@@ -676,7 +675,6 @@ discard block |
||
| 676 | 675 | /** |
| 677 | 676 | * Returns item stored in list with index $key |
| 678 | 677 | * |
| 679 | - * @param mixed $key |
|
| 680 | 678 | * @return DataObject |
| 681 | 679 | */ |
| 682 | 680 | public function offsetGet($offset) { |
@@ -686,7 +684,6 @@ discard block |
||
| 686 | 684 | /** |
| 687 | 685 | * Set an item with the key in $key |
| 688 | 686 | * |
| 689 | - * @param mixed $key |
|
| 690 | 687 | * @param mixed $value |
| 691 | 688 | */ |
| 692 | 689 | public function offsetSet($offset, $value) { |
@@ -700,7 +697,6 @@ discard block |
||
| 700 | 697 | /** |
| 701 | 698 | * Unset an item with the key in $key |
| 702 | 699 | * |
| 703 | - * @param mixed $key |
|
| 704 | 700 | */ |
| 705 | 701 | public function offsetUnset($offset) { |
| 706 | 702 | unset($this->items[$offset]); |
@@ -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)) { |
@@ -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; |
@@ -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) { |