@@ -491,6 +491,10 @@ |
||
| 491 | 491 | protected static function call_hook() |
| 492 | 492 | { |
| 493 | 493 | self::$hook_data = array(); |
| 494 | + |
|
| 495 | + /** |
|
| 496 | + * @param string $appname |
|
| 497 | + */ |
|
| 494 | 498 | function display_section($appname,$file,$file2=False) |
| 495 | 499 | { |
| 496 | 500 | admin_ui::$hook_data[$appname] = $file2 ? $file2 : $file; |
@@ -548,7 +548,7 @@ |
||
| 548 | 548 | * Validate and create a new content type |
| 549 | 549 | * |
| 550 | 550 | * @param array $content |
| 551 | - * @return string|boolean New type ID, or false for error |
|
| 551 | + * @return false|string New type ID, or false for error |
|
| 552 | 552 | */ |
| 553 | 553 | function create_content_type(&$content) |
| 554 | 554 | { |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | * All key of the returned array use the 'account_' prefix. |
| 361 | 361 | * For backward compatibility some values are additionaly availible without the prefix, using them is depricated! |
| 362 | 362 | * |
| 363 | - * @param int|string $id numeric account_id or string with account_lid (use of default value of 0 is depricated!!!) |
|
| 363 | + * @param integer $id numeric account_id or string with account_lid (use of default value of 0 is depricated!!!) |
|
| 364 | 364 | * @param boolean $set_depricated_names =false set _additionaly_ the depricated keys without 'account_' prefix |
| 365 | 365 | * @return array/boolean array with account data (keys: account_id, account_lid, ...) or false if account not found |
| 366 | 366 | */ |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | * - 'account_firstname','account_lastname','account_email','account_fullname','account_phone' |
| 401 | 401 | * |
| 402 | 402 | * @param int|string $id |
| 403 | - * @return string|boolean json or false if not found |
|
| 403 | + * @return string json or false if not found |
|
| 404 | 404 | */ |
| 405 | 405 | function json($id) |
| 406 | 406 | { |
@@ -791,7 +791,7 @@ discard block |
||
| 791 | 791 | * Not all existing accounts are visible because off account_selection preference: 'none' or 'groupmembers' |
| 792 | 792 | * |
| 793 | 793 | * @param int|string $account_id nummeric account_id or account_lid |
| 794 | - * @return boolean true = account is visible, false = account not visible, null = account does not exist |
|
| 794 | + * @return null|boolean true = account is visible, false = account not visible, null = account does not exist |
|
| 795 | 795 | */ |
| 796 | 796 | function visible($account_id) |
| 797 | 797 | { |
@@ -986,7 +986,6 @@ discard block |
||
| 986 | 986 | * |
| 987 | 987 | * @param string $account_lid |
| 988 | 988 | * @param string $passwd |
| 989 | - * @param array $GLOBALS['auto_create_acct'] values for 'firstname', 'lastname', 'email' and 'primary_group' |
|
| 990 | 989 | * @return int|boolean account_id or false on error |
| 991 | 990 | */ |
| 992 | 991 | function auto_add($account_lid, $passwd) |
@@ -1106,7 +1105,7 @@ discard block |
||
| 1106 | 1105 | * |
| 1107 | 1106 | * We use now an instance-wide read-cache storing account-data and members(hips). |
| 1108 | 1107 | * |
| 1109 | - * @param int|array $account_ids user- or group-id(s) for which cache should be invalidated, default 0 = only search/name2id cache |
|
| 1108 | + * @param integer $account_ids user- or group-id(s) for which cache should be invalidated, default 0 = only search/name2id cache |
|
| 1110 | 1109 | */ |
| 1111 | 1110 | static function cache_invalidate($account_ids=0) |
| 1112 | 1111 | { |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | * If no account_id is set in data the account is added and the new id is set in $data. |
| 191 | 191 | * |
| 192 | 192 | * @param array $data array with account-data |
| 193 | - * @return int|boolean the account_id or false on error |
|
| 193 | + * @return false|string the account_id or false on error |
|
| 194 | 194 | */ |
| 195 | 195 | function save(&$data) |
| 196 | 196 | { |
@@ -995,7 +995,7 @@ discard block |
||
| 995 | 995 | * |
| 996 | 996 | * @param int $_account_id |
| 997 | 997 | * @param string $ip |
| 998 | - * @return int lastlogin time |
|
| 998 | + * @return boolean lastlogin time |
|
| 999 | 999 | */ |
| 1000 | 1000 | function update_lastlogin($_account_id, $ip) |
| 1001 | 1001 | { |
@@ -1097,7 +1097,6 @@ discard block |
||
| 1097 | 1097 | * @param int $gid gidnumber of group to set |
| 1098 | 1098 | * @param array $objectclass =null should we set the member and uniqueMember attributes (groupOf(Unique)Names|univentionGroup) (default detect it) |
| 1099 | 1099 | * @param string $use_cn =null if set $cn is used instead $gid and the attributes are returned, not written to ldap |
| 1100 | - * @param boolean $uniqueMember =null should we set the uniqueMember attribute (default detect it) |
|
| 1101 | 1100 | * @return boolean/array false on failure, array or true otherwise |
| 1102 | 1101 | */ |
| 1103 | 1102 | function set_members($members, $gid, array $objectclass=null, $use_cn=null) |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | * If no account_id is set in data the account is added and the new id is set in $data. |
| 48 | 48 | * |
| 49 | 49 | * @param array $data array with account-data |
| 50 | - * @return int|boolean the account_id or false on error |
|
| 50 | + * @return false|string the account_id or false on error |
|
| 51 | 51 | */ |
| 52 | 52 | function save(&$data) |
| 53 | 53 | { |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | * Delete ACL record in the repository of the class |
| 167 | 167 | * |
| 168 | 168 | * @param string $appname appname or '' for $GLOBALS['egw_info']['flags']['currentapp'] |
| 169 | - * @param string/boolean $location location or false for all locations |
|
| 169 | + * @param boolean $location location or false for all locations |
|
| 170 | 170 | * @return array all ACL records from $this->data. |
| 171 | 171 | */ |
| 172 | 172 | function delete($appname,$location) |
@@ -267,8 +267,8 @@ discard block |
||
| 267 | 267 | /** |
| 268 | 268 | * check required rights agains the internal repository (included rights of $this->account_id and all it's memberships) |
| 269 | 269 | * |
| 270 | - * @param $location app location |
|
| 271 | - * @param $required required right to check against |
|
| 270 | + * @param string $location app location |
|
| 271 | + * @param integer $required required right to check against |
|
| 272 | 272 | * @param $appname optional defaults to currentapp |
| 273 | 273 | * @return boolean |
| 274 | 274 | */ |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | * cancels a timer |
| 325 | 325 | * |
| 326 | 326 | * @param string $id has to be the one used to set it. |
| 327 | - * @return boolean True if the timer exists and is not expired. |
|
| 327 | + * @return integer True if the timer exists and is not expired. |
|
| 328 | 328 | */ |
| 329 | 329 | function cancel_timer($id) |
| 330 | 330 | { |
@@ -470,7 +470,7 @@ discard block |
||
| 470 | 470 | /** |
| 471 | 471 | * reads all matching db-rows / jobs |
| 472 | 472 | * |
| 473 | - * @param string $id =0 reads all expired rows / jobs ready to run\ |
|
| 473 | + * @param integer $id =0 reads all expired rows / jobs ready to run\ |
|
| 474 | 474 | * != 0 reads all rows/jobs matching $id (sql-wildcards '%' and '_' can be used) |
| 475 | 475 | * @param array|string $cols ='*' string or array of column-names / select-expressions |
| 476 | 476 | * @param int|bool $offset =False offset for a limited query or False (default) |
@@ -558,7 +558,7 @@ discard block |
||
| 558 | 558 | /** |
| 559 | 559 | * delete db-row / job with $id |
| 560 | 560 | * |
| 561 | - * @return boolean False if $id not found else True |
|
| 561 | + * @return integer False if $id not found else True |
|
| 562 | 562 | */ |
| 563 | 563 | function delete($id) |
| 564 | 564 | { |
@@ -84,8 +84,8 @@ discard block |
||
| 84 | 84 | * check if users are supposed to change their password every x sdays, then check if password is of old age |
| 85 | 85 | * or the devil-admin reset the users password and forced the user to change his password on next login. |
| 86 | 86 | * |
| 87 | - * @param string& $message =null on return false: message why password needs to be changed |
|
| 88 | - * @return boolean true: all good, false: password change required, null: password expires in N days |
|
| 87 | + * @param string $message =null on return false: message why password needs to be changed |
|
| 88 | + * @return boolean|null true: all good, false: password change required, null: password expires in N days |
|
| 89 | 89 | */ |
| 90 | 90 | static function check_password_change(&$message=null) |
| 91 | 91 | { |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | * |
| 295 | 295 | * uses the encryption type set in setup and calls the appropriate encryption functions |
| 296 | 296 | * |
| 297 | - * @param $password password to encrypt |
|
| 297 | + * @param string $password password to encrypt |
|
| 298 | 298 | */ |
| 299 | 299 | static function encrypt_password($password,$sql=False) |
| 300 | 300 | { |
@@ -406,6 +406,7 @@ discard block |
||
| 406 | 406 | * @param string $form_val user input value for comparison |
| 407 | 407 | * @param string $db_val stored value / hash (from database) |
| 408 | 408 | * @param string &$type detected crypt type on return |
| 409 | + * @param string $type |
|
| 409 | 410 | * @return boolean True on successful comparison |
| 410 | 411 | */ |
| 411 | 412 | static function crypt_compare($form_val, $db_val, &$type) |
@@ -618,7 +619,7 @@ discard block |
||
| 618 | 619 | * @param string $forbid_name =null if "yes" username or full-name split by delimiters AND longer then 3 chars are |
| 619 | 620 | * forbidden to be included in password, default to whatever set in config for "passwd_forbid_name" |
| 620 | 621 | * @param array|int $account =null array with account_lid and account_fullname or account_id for $forbid_name check |
| 621 | - * @return mixed false if password is considered "safe" (or no requirements) or a string $message if "unsafe" |
|
| 622 | + * @return string|false false if password is considered "safe" (or no requirements) or a string $message if "unsafe" |
|
| 622 | 623 | */ |
| 623 | 624 | static function crackcheck($passwd, $reqstrength=null, $minlength=null, $forbid_name=null, $account=null) |
| 624 | 625 | { |
@@ -311,6 +311,8 @@ discard block |
||
| 311 | 311 | * @param string $path |
| 312 | 312 | * @param array &$dav |
| 313 | 313 | * @param array &$allow |
| 314 | + * @param integer[] $dav |
|
| 315 | + * @param boolean $allow |
|
| 314 | 316 | */ |
| 315 | 317 | function OPTIONS($path, &$dav, &$allow) |
| 316 | 318 | { |
@@ -606,7 +608,7 @@ discard block |
||
| 606 | 608 | * @param string $path / or /<username>/ |
| 607 | 609 | * @param int $user |
| 608 | 610 | * @param int $depth |
| 609 | - * @return string|boolean http status or true|false |
|
| 611 | + * @return boolean http status or true|false |
|
| 610 | 612 | */ |
| 611 | 613 | protected function add_home(array &$files, $path, $user, $depth) |
| 612 | 614 | { |
@@ -738,7 +740,7 @@ discard block |
||
| 738 | 740 | * @param string $path /<username>/ |
| 739 | 741 | * @param int $app |
| 740 | 742 | * @param int $user |
| 741 | - * @return string|boolean http status or true|false |
|
| 743 | + * @return boolean http status or true|false |
|
| 742 | 744 | */ |
| 743 | 745 | protected function add_shared(array &$files, $path, $app, $user) |
| 744 | 746 | { |
@@ -1380,7 +1382,7 @@ discard block |
||
| 1380 | 1382 | * @param int|string $id |
| 1381 | 1383 | * @param array $attach array of array with values for keys 'name', 'params', 'value' |
| 1382 | 1384 | * @param boolean $delete_via_put |
| 1383 | - * @return boolean false on error, eg. invalid managed id, for false an xml-error body has been send |
|
| 1385 | + * @return null|false false on error, eg. invalid managed id, for false an xml-error body has been send |
|
| 1384 | 1386 | */ |
| 1385 | 1387 | public static function handle_attach($app, $id, $attach, $delete_via_put=false) |
| 1386 | 1388 | { |
@@ -1584,7 +1586,7 @@ discard block |
||
| 1584 | 1586 | * @param string $managed_id |
| 1585 | 1587 | * @param string $app =null app-name to check against path |
| 1586 | 1588 | * @param string|int $id =null id to check agains path |
| 1587 | - * @return string|boolean "/apps/$app/$id/something" or false if not found or not belonging to given $app/$id |
|
| 1589 | + * @return false|string "/apps/$app/$id/something" or false if not found or not belonging to given $app/$id |
|
| 1588 | 1590 | */ |
| 1589 | 1591 | static public function managed_id2path($managed_id, $app=null, $id=null) |
| 1590 | 1592 | { |
@@ -1783,7 +1785,7 @@ discard block |
||
| 1783 | 1785 | * MKCOL method handler |
| 1784 | 1786 | * |
| 1785 | 1787 | * @param array general parameter passing array |
| 1786 | - * @return bool true on success |
|
| 1788 | + * @return string true on success |
|
| 1787 | 1789 | */ |
| 1788 | 1790 | function MKCOL($options) |
| 1789 | 1791 | { |
@@ -1796,7 +1798,7 @@ discard block |
||
| 1796 | 1798 | * MOVE method handler |
| 1797 | 1799 | * |
| 1798 | 1800 | * @param array general parameter passing array |
| 1799 | - * @return bool true on success |
|
| 1801 | + * @return string true on success |
|
| 1800 | 1802 | */ |
| 1801 | 1803 | function MOVE($options) |
| 1802 | 1804 | { |
@@ -1809,7 +1811,7 @@ discard block |
||
| 1809 | 1811 | * COPY method handler |
| 1810 | 1812 | * |
| 1811 | 1813 | * @param array general parameter passing array |
| 1812 | - * @return bool true on success |
|
| 1814 | + * @return string true on success |
|
| 1813 | 1815 | */ |
| 1814 | 1816 | function COPY($options, $del=false) |
| 1815 | 1817 | { |
@@ -1822,7 +1824,7 @@ discard block |
||
| 1822 | 1824 | * LOCK method handler |
| 1823 | 1825 | * |
| 1824 | 1826 | * @param array general parameter passing array |
| 1825 | - * @return bool true on success |
|
| 1827 | + * @return string|boolean true on success |
|
| 1826 | 1828 | */ |
| 1827 | 1829 | function LOCK(&$options) |
| 1828 | 1830 | { |
@@ -1856,7 +1858,7 @@ discard block |
||
| 1856 | 1858 | * UNLOCK method handler |
| 1857 | 1859 | * |
| 1858 | 1860 | * @param array general parameter passing array |
| 1859 | - * @return bool true on success |
|
| 1861 | + * @return string true on success |
|
| 1860 | 1862 | */ |
| 1861 | 1863 | function UNLOCK(&$options) |
| 1862 | 1864 | { |