@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * Set a different instance than {@link Upload_Validator} |
103 | 103 | * for this upload session. |
104 | 104 | * |
105 | - * @param object $validator |
|
105 | + * @param Upload_Validator $validator |
|
106 | 106 | */ |
107 | 107 | public function setValidator($validator) { |
108 | 108 | $this->validator = $validator; |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | * |
224 | 224 | * @param array $tmpFile |
225 | 225 | * @param File $file |
226 | - * @return Boolean |
|
226 | + * @return boolean|string |
|
227 | 227 | */ |
228 | 228 | public function loadIntoFile($tmpFile, $file, $folderPath = false) { |
229 | 229 | $this->file = $file; |
@@ -231,7 +231,8 @@ discard block |
||
231 | 231 | } |
232 | 232 | |
233 | 233 | /** |
234 | - * @return Boolean |
|
234 | + * @param boolean $bool |
|
235 | + * @return boolean|null |
|
235 | 236 | */ |
236 | 237 | public function setReplaceFile($bool) { |
237 | 238 | $this->replaceFile = $bool; |
@@ -295,7 +296,7 @@ discard block |
||
295 | 296 | /** |
296 | 297 | * Determines wether previous operations caused an error. |
297 | 298 | * |
298 | - * @return boolean |
|
299 | + * @return integer |
|
299 | 300 | */ |
300 | 301 | public function isError() { |
301 | 302 | return (count($this->errors)); |
@@ -73,6 +73,9 @@ |
||
73 | 73 | return $this; |
74 | 74 | } |
75 | 75 | |
76 | + /** |
|
77 | + * @return string |
|
78 | + */ |
|
76 | 79 | public static function joinPhoneNumber( $value ) { |
77 | 80 | if( is_array( $value ) ) { |
78 | 81 | $completeNumber = ''; |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * |
77 | 77 | * @param string $name the field name |
78 | 78 | * @param string $title the field label |
79 | - * @param string|array $sourceObject The object-type to list in the tree. This could |
|
79 | + * @param string $sourceObject The object-type to list in the tree. This could |
|
80 | 80 | * be one of the following: |
81 | 81 | * - A DataObject class name with the {@link Hierarchy} extension. |
82 | 82 | * - An array of key/value pairs, like a {@link DropdownField} source. In |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | } |
205 | 205 | |
206 | 206 | /** |
207 | - * @return HTMLText |
|
207 | + * @return string |
|
208 | 208 | */ |
209 | 209 | public function Field($properties = array()) { |
210 | 210 | Requirements::add_i18n_javascript(FRAMEWORK_DIR . '/javascript/lang'); |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | * If a filter function has been set, that will be called. And if search text is set, |
386 | 386 | * filter on that too. Return true if all applicable conditions are true, false otherwise. |
387 | 387 | * @param $node |
388 | - * @return unknown_type |
|
388 | + * @return boolean |
|
389 | 389 | */ |
390 | 390 | public function filterMarking($node) { |
391 | 391 | if ($this->filterCallback && !call_user_func($this->filterCallback, $node)) return false; |
@@ -436,7 +436,6 @@ discard block |
||
436 | 436 | } |
437 | 437 | |
438 | 438 | /** |
439 | - * @param String $field |
|
440 | 439 | */ |
441 | 440 | public function setSourceObject($class) { |
442 | 441 | $this->sourceObject = $class; |
@@ -385,6 +385,7 @@ discard block |
||
385 | 385 | * - minutes |
386 | 386 | * - seconds |
387 | 387 | * This includes the singular forms as well |
388 | + * @param string $date |
|
388 | 389 | * @return string SQL datetime expression to query for a datetime (YYYY-MM-DD hh:mm:ss) which is the result of |
389 | 390 | * the addition |
390 | 391 | */ |
@@ -398,6 +399,7 @@ discard block |
||
398 | 399 | * e.g. '"SiteTree"."Created"' |
399 | 400 | * @param string $date2 to be substracted of $date1, can be either 'now', literal datetime |
400 | 401 | * like '1973-10-14 10:30:00' or field name, e.g. '"SiteTree"."Created"' |
402 | + * @param string $date1 |
|
401 | 403 | * @return string SQL datetime expression to query for the interval between $date1 and $date2 in seconds which |
402 | 404 | * is the result of the substraction |
403 | 405 | */ |
@@ -625,7 +627,7 @@ discard block |
||
625 | 627 | * @param boolean $create Flag indicating whether the database should be created |
626 | 628 | * if it doesn't exist. If $create is false and the database doesn't exist |
627 | 629 | * then an error will be raised |
628 | - * @param int|boolean $errorLevel The level of error reporting to enable for the query, or false if no error |
|
630 | + * @param boolean $errorLevel The level of error reporting to enable for the query, or false if no error |
|
629 | 631 | * should be raised |
630 | 632 | * @return boolean Flag indicating success |
631 | 633 | */ |
@@ -785,6 +787,7 @@ discard block |
||
785 | 787 | |
786 | 788 | /** |
787 | 789 | * @deprecated since version 4.0 Use DB::field_list instead |
790 | + * @param string $table |
|
788 | 791 | */ |
789 | 792 | public function fieldList($table) { |
790 | 793 | Deprecation::notice('4.0', 'Use DB::field_list instead'); |
@@ -89,6 +89,7 @@ |
||
89 | 89 | * Determines if the field should render open or closed by default. |
90 | 90 | * |
91 | 91 | * @param boolean |
92 | + * @param boolean $bool |
|
92 | 93 | */ |
93 | 94 | public function startClosed($bool) { |
94 | 95 | ($bool) ? $this->addExtraClass('startClosed') : $this->removeExtraClass('startClosed'); |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | * Combine the given forms into a formset with a tabbed interface |
467 | 467 | * |
468 | 468 | * @param array $forms List of LoginForm instances |
469 | - * @return string |
|
469 | + * @return HTMLText |
|
470 | 470 | */ |
471 | 471 | protected function generateLoginFormSet($forms) { |
472 | 472 | $viewData = new ArrayData(array( |
@@ -646,7 +646,6 @@ discard block |
||
646 | 646 | * - t: plaintext token |
647 | 647 | * |
648 | 648 | * @param Member $member Member object associated with this link. |
649 | - * @param string $autoLoginHash The auto login token. |
|
650 | 649 | */ |
651 | 650 | public static function getPasswordResetLink($member, $autologinToken) { |
652 | 651 | $autologinToken = urldecode($autologinToken); |
@@ -737,7 +736,7 @@ discard block |
||
737 | 736 | /** |
738 | 737 | * Factory method for the lost password form |
739 | 738 | * |
740 | - * @return Form Returns the lost password form |
|
739 | + * @return Security Returns the lost password form |
|
741 | 740 | */ |
742 | 741 | public function ChangePasswordForm() { |
743 | 742 | return Object::create('ChangePasswordForm', $this, 'ChangePasswordForm'); |
@@ -921,7 +920,7 @@ discard block |
||
921 | 920 | * @deprecated 4.0 Use the "Security.password_encryption_algorithm" config setting instead |
922 | 921 | * @param string $algorithm One of the available password encryption |
923 | 922 | * algorithms determined by {@link Security::get_encryption_algorithms()} |
924 | - * @return bool Returns TRUE if the passed algorithm was valid, otherwise FALSE. |
|
923 | + * @return boolean|null Returns TRUE if the passed algorithm was valid, otherwise FALSE. |
|
925 | 924 | */ |
926 | 925 | public static function set_password_encryption_algorithm($algorithm) { |
927 | 926 | Deprecation::notice('4.0', 'Use the "Security.password_encryption_algorithm" config setting instead'); |
@@ -1076,7 +1075,7 @@ discard block |
||
1076 | 1075 | /** |
1077 | 1076 | * Set to true to ignore access to disallowed actions, rather than returning permission failure |
1078 | 1077 | * Note that this is just a flag that other code needs to check with Security::ignore_disallowed_actions() |
1079 | - * @param $flag True or false |
|
1078 | + * @param boolean $flag True or false |
|
1080 | 1079 | */ |
1081 | 1080 | public static function set_ignore_disallowed_actions($flag) { |
1082 | 1081 | self::$ignore_disallowed_actions = $flag; |
@@ -125,8 +125,6 @@ discard block |
||
125 | 125 | * $list = DataList::create('SiteTree'); |
126 | 126 | * $list = SiteTree::get(); |
127 | 127 | * |
128 | - * @param string $class the class name |
|
129 | - * @param mixed $arguments,... arguments to pass to the constructor |
|
130 | 128 | * @return static |
131 | 129 | */ |
132 | 130 | public static function create() { |
@@ -149,7 +147,6 @@ discard block |
||
149 | 147 | * way to access instance methods which don't rely on instance |
150 | 148 | * data (e.g. the custom SilverStripe static handling). |
151 | 149 | * |
152 | - * @param string $className Optional classname (if called on Object directly) |
|
153 | 150 | * @return static The singleton instance |
154 | 151 | */ |
155 | 152 | public static function singleton() { |
@@ -334,8 +331,6 @@ discard block |
||
334 | 331 | * Similar to {@link Object::create()}, except that classes are only overloaded if you set the $strong parameter to |
335 | 332 | * TRUE when using {@link Object::useCustomClass()} |
336 | 333 | * |
337 | - * @param string $class the class name |
|
338 | - * @param mixed $arguments,... arguments to pass to the constructor |
|
339 | 334 | * @return static |
340 | 335 | */ |
341 | 336 | public static function strong_create() { |
@@ -387,8 +382,8 @@ discard block |
||
387 | 382 | * without any inheritance, merging or parent lookup if it doesn't exist on the given class. |
388 | 383 | * |
389 | 384 | * @static |
390 | - * @param $class - The class to get the static from |
|
391 | - * @param $name - The property to get from the class |
|
385 | + * @param string $class - The class to get the static from |
|
386 | + * @param string $name - The property to get from the class |
|
392 | 387 | * @param null $default - The value to return if property doesn't exist on class |
393 | 388 | * @return any - The value of the static property $name on class $class, or $default if that property is not |
394 | 389 | * defined |
@@ -908,6 +903,7 @@ discard block |
||
908 | 903 | |
909 | 904 | /** |
910 | 905 | * @see Object::get_static() |
906 | + * @param string $name |
|
911 | 907 | */ |
912 | 908 | public function stat($name, $uncached = false) { |
913 | 909 | return Config::inst()->get(($this->class ? $this->class : get_class($this)), $name, Config::FIRST_SET); |
@@ -915,6 +911,8 @@ discard block |
||
915 | 911 | |
916 | 912 | /** |
917 | 913 | * @see Object::set_static() |
914 | + * @param string $name |
|
915 | + * @param string $value |
|
918 | 916 | */ |
919 | 917 | public function set_stat($name, $value) { |
920 | 918 | Config::inst()->update(($this->class ? $this->class : get_class($this)), $name, $value); |
@@ -922,6 +920,7 @@ discard block |
||
922 | 920 | |
923 | 921 | /** |
924 | 922 | * @see Object::uninherited_static() |
923 | + * @param string $name |
|
925 | 924 | */ |
926 | 925 | public function uninherited($name) { |
927 | 926 | return Config::inst()->get(($this->class ? $this->class : get_class($this)), $name, Config::UNINHERITED); |
@@ -972,7 +971,7 @@ discard block |
||
972 | 971 | * all results into an array |
973 | 972 | * |
974 | 973 | * @param string $method the method name to call |
975 | - * @param mixed $argument a single argument to pass |
|
974 | + * @param string $argument a single argument to pass |
|
976 | 975 | * @return mixed |
977 | 976 | * @todo integrate inheritance rules |
978 | 977 | */ |
@@ -995,7 +994,6 @@ discard block |
||
995 | 994 | * The extension methods are defined during {@link __construct()} in {@link defineMethods()}. |
996 | 995 | * |
997 | 996 | * @param string $method the name of the method to call on each extension |
998 | - * @param mixed $a1,... up to 7 arguments to be passed to the method |
|
999 | 997 | * @return array |
1000 | 998 | */ |
1001 | 999 | public function extend($method, &$a1=null, &$a2=null, &$a3=null, &$a4=null, &$a5=null, &$a6=null, &$a7=null) { |