@@ -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 | { |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * |
152 | 152 | * @param string $path |
153 | 153 | * @param array $filter |
154 | - * @param array|boolean $start false=return all or array(start,num) |
|
154 | + * @param integer[] $start false=return all or array(start,num) |
|
155 | 155 | * @param int &$total |
156 | 156 | * @return array with "files" array with values for keys path and props |
157 | 157 | */ |
@@ -193,7 +193,6 @@ discard block |
||
193 | 193 | * Read an entry |
194 | 194 | * |
195 | 195 | * @param string|int $id |
196 | - * @param string $path =null implementation can use it, used in call from _common_get_put_delete |
|
197 | 196 | * @return array|boolean array with entry, false if no read rights, null if $id does not exist |
198 | 197 | */ |
199 | 198 | abstract function read($id /*,$path=null*/); |
@@ -238,7 +237,7 @@ discard block |
||
238 | 237 | * Get the etag for an entry, can be reimplemented for other algorithm or field names |
239 | 238 | * |
240 | 239 | * @param array|int $entry array with event or cal_id |
241 | - * @return string|boolean string with etag or false |
|
240 | + * @return false|string string with etag or false |
|
242 | 241 | */ |
243 | 242 | function get_etag($entry) |
244 | 243 | { |
@@ -423,7 +422,7 @@ discard block |
||
423 | 422 | /** |
424 | 423 | * Identify know GroupDAV agents by HTTP_USER_AGENT header |
425 | 424 | * |
426 | - * @return string|boolean agent name or false |
|
425 | + * @return string|false agent name or false |
|
427 | 426 | */ |
428 | 427 | static function get_agent() |
429 | 428 | { |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | * @param array &$options |
257 | 257 | * @param array &$files |
258 | 258 | * @param int $user account_id |
259 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
259 | + * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
260 | 260 | */ |
261 | 261 | function expand_property_report($path,&$options,&$files,$user) |
262 | 262 | { |
@@ -1191,7 +1191,7 @@ discard block |
||
1191 | 1191 | * Check if resource is a location |
1192 | 1192 | * |
1193 | 1193 | * @param array|int $resource |
1194 | - * @return boolean |
|
1194 | + * @return null|boolean |
|
1195 | 1195 | */ |
1196 | 1196 | public static function resource_is_location($resource) |
1197 | 1197 | { |
@@ -1470,7 +1470,6 @@ discard block |
||
1470 | 1470 | * Get proxy-groups for given user $account: users or groups who GRANT proxy rights to $account |
1471 | 1471 | * |
1472 | 1472 | * @param int $account who is the proxy |
1473 | - * @param string|array $app_proxys =null applications for which proxys should be added |
|
1474 | 1473 | * @return array with href props |
1475 | 1474 | */ |
1476 | 1475 | protected function get_resource_proxy_groups($account) |
@@ -1608,8 +1607,6 @@ discard block |
||
1608 | 1607 | /** |
1609 | 1608 | * Do propfind of /principals/ |
1610 | 1609 | * |
1611 | - * @param string $name name of group or empty |
|
1612 | - * @param string $rest name of rest of path behind group-name |
|
1613 | 1610 | * @param array $options |
1614 | 1611 | * @return array|string array with files or HTTP error code |
1615 | 1612 | */ |
@@ -1640,7 +1637,7 @@ discard block |
||
1640 | 1637 | * @param array &$options |
1641 | 1638 | * @param int $id |
1642 | 1639 | * @param int $user =null account_id |
1643 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1640 | + * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1644 | 1641 | */ |
1645 | 1642 | function get(&$options,$id,$user=null) |
1646 | 1643 | { |
@@ -1655,7 +1652,7 @@ discard block |
||
1655 | 1652 | * @param array &$options |
1656 | 1653 | * @param int $id |
1657 | 1654 | * @param int $user =null account_id of owner, default null |
1658 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1655 | + * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1659 | 1656 | */ |
1660 | 1657 | function put(&$options,$id,$user=null) |
1661 | 1658 | { |
@@ -1669,7 +1666,7 @@ discard block |
||
1669 | 1666 | * |
1670 | 1667 | * @param array &$options |
1671 | 1668 | * @param int $id |
1672 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1669 | + * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1673 | 1670 | */ |
1674 | 1671 | function delete(&$options,$id) |
1675 | 1672 | { |
@@ -1681,7 +1678,7 @@ discard block |
||
1681 | 1678 | /** |
1682 | 1679 | * Read an entry |
1683 | 1680 | * |
1684 | - * @param string|int $id |
|
1681 | + * @param integer $id |
|
1685 | 1682 | * @return array/boolean array with entry, false if no read rights, null if $id does not exist |
1686 | 1683 | */ |
1687 | 1684 | function read($id) |
@@ -1696,7 +1693,7 @@ discard block |
||
1696 | 1693 | * |
1697 | 1694 | * @param int $acl Api\Acl::READ, Api\Acl::EDIT or Api\Acl::DELETE |
1698 | 1695 | * @param array|int $entry entry-array or id |
1699 | - * @return boolean null if entry does not exist, false if no access, true if access permitted |
|
1696 | + * @return null|boolean null if entry does not exist, false if no access, true if access permitted |
|
1700 | 1697 | */ |
1701 | 1698 | function check_access($acl,$entry) |
1702 | 1699 | { |
@@ -1739,7 +1736,7 @@ discard block |
||
1739 | 1736 | * |
1740 | 1737 | * @param string $path path of collection |
1741 | 1738 | * @param int $user =null owner of the collection, default current user |
1742 | - * @return array with privileges |
|
1739 | + * @return string[] with privileges |
|
1743 | 1740 | */ |
1744 | 1741 | public function current_user_privileges($path, $user=null) |
1745 | 1742 | { |
@@ -94,6 +94,7 @@ |
||
94 | 94 | * @param Handler $handler |
95 | 95 | * @param array $filter filter for propfind call |
96 | 96 | * @param array $files =array() extra files/responses to return too |
97 | + * @param string $path |
|
97 | 98 | */ |
98 | 99 | public function __construct(Handler $handler, $path, array $filter,array &$files=array()) |
99 | 100 | { |
@@ -322,13 +322,13 @@ discard block |
||
322 | 322 | * return a sorted array populated with categories (main sorting criteria is hierachy!) |
323 | 323 | * |
324 | 324 | * @param int $start =0 see $limit |
325 | - * @param boolean|int $limit if true limited query to maxmatches rows (starting with $start) |
|
325 | + * @param boolean $limit if true limited query to maxmatches rows (starting with $start) |
|
326 | 326 | * @param string $query ='' query-pattern |
327 | 327 | * @param string $sort ='ASC' sort order, either defaults to 'ASC' |
328 | 328 | * @param string $order ='cat_name' order by |
329 | 329 | * @param boolean|string $globals includes the global egroupware categories or not, |
330 | 330 | * 'all_no_acl' to return global and all non-private user categories independent of ACL |
331 | - * @param array|int $parent_id =0 return only subcats of $parent_id(s) |
|
331 | + * @param integer $parent_id =0 return only subcats of $parent_id(s) |
|
332 | 332 | * @param boolean $unserialize_data =true return $cat['data'] as array (not serialized array) |
333 | 333 | * @return array with cats |
334 | 334 | */ |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | * @param mixed $category category as array or the category_id |
508 | 508 | * @param boolean $no_acl_check =false if true, grants are NOT checked, gives access to all non-private categories of all users |
509 | 509 | * @param boolean $allow_global_read if true, global cats are allowed (independent of app) for reading |
510 | - * @return boolean true permission granted, false for permission denied, null for category does not exist |
|
510 | + * @return null|boolean true permission granted, false for permission denied, null for category does not exist |
|
511 | 511 | */ |
512 | 512 | public function check_perms($needed, $category, $no_acl_check=false, $allow_global_read=false) |
513 | 513 | { |
@@ -675,7 +675,7 @@ discard block |
||
675 | 675 | * check_consistency4update - for edit |
676 | 676 | * |
677 | 677 | * @param array $values array with cat-data (it need to be complete, as everything get's written) |
678 | - * @return mixed string/boolean errorstring if consitency check failed / true if the consistency check did not fail |
|
678 | + * @return string|boolean string/boolean errorstring if consitency check failed / true if the consistency check did not fail |
|
679 | 679 | */ |
680 | 680 | function check_consistency4update($values) |
681 | 681 | { |
@@ -822,7 +822,7 @@ discard block |
||
822 | 822 | * |
823 | 823 | * @param int|array $cat |
824 | 824 | * @param boolean $application_global =false true check for application global categories only (appname == 'phpgw') |
825 | - * @return boolean |
|
825 | + * @return null|boolean |
|
826 | 826 | */ |
827 | 827 | static function is_global($cat,$application_global=false) |
828 | 828 | { |
@@ -1030,7 +1030,7 @@ discard block |
||
1030 | 1030 | * |
1031 | 1031 | * @param string appname |
1032 | 1032 | * |
1033 | - * @return Returns the URL, but you do not need to do anything with it. |
|
1033 | + * @return string the URL, but you do not need to do anything with it. |
|
1034 | 1034 | */ |
1035 | 1035 | public static function css($appname) |
1036 | 1036 | { |