@@ -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 | { |
@@ -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 | { |
@@ -194,7 +194,7 @@ |
||
| 194 | 194 | /** |
| 195 | 195 | * sets a single value in the repositry, you need to call save_repository after |
| 196 | 196 | * |
| 197 | - * @param $variable_name string name of the config |
|
| 197 | + * @param string $variable_name string name of the config |
|
| 198 | 198 | * @param $variable_data mixed the content |
| 199 | 199 | */ |
| 200 | 200 | function value($variable_name,$variable_data) |
@@ -484,7 +484,6 @@ discard block |
||
| 484 | 484 | /** |
| 485 | 485 | * get selectbox options for the customfields |
| 486 | 486 | * |
| 487 | - * @param array $field =null |
|
| 488 | 487 | * @return array with options: |
| 489 | 488 | */ |
| 490 | 489 | public static function cf_options() |
@@ -536,7 +535,7 @@ discard block |
||
| 536 | 535 | * @param string $fileas_type '' or type of $this->fileas_types |
| 537 | 536 | * @param int $all =false update all contacts or only ones with empty values |
| 538 | 537 | * @param int &$errors=null on return number of errors |
| 539 | - * @return int|boolean number of contacts updated, false for wrong fileas type |
|
| 538 | + * @return string|null number of contacts updated, false for wrong fileas type |
|
| 540 | 539 | */ |
| 541 | 540 | function set_all_fileas($fileas_type,$all=false,&$errors=null,$ignore_acl=false) |
| 542 | 541 | { |
@@ -597,7 +596,7 @@ discard block |
||
| 597 | 596 | * remove unneeded carriage returns or set empty fields to NULL |
| 598 | 597 | * |
| 599 | 598 | * @param int &$errors=null on return number of errors |
| 600 | - * @return int|boolean number of contacts updated |
|
| 599 | + * @return integer number of contacts updated |
|
| 601 | 600 | */ |
| 602 | 601 | function set_all_cleanup(&$errors=null,$ignore_acl=false) |
| 603 | 602 | { |
@@ -1122,7 +1121,7 @@ discard block |
||
| 1122 | 1121 | * @param mixed $contact contact as array or the contact-id |
| 1123 | 1122 | * @param boolean $deny_account_delete =false if true never allow to delete accounts |
| 1124 | 1123 | * @param int $user =null for which user to check, default current user |
| 1125 | - * @return boolean true permission granted, false for permission denied, null for contact does not exist |
|
| 1124 | + * @return null|boolean true permission granted, false for permission denied, null for contact does not exist |
|
| 1126 | 1125 | */ |
| 1127 | 1126 | function check_perms($needed,$contact,$deny_account_delete=false,$user=null) |
| 1128 | 1127 | { |
@@ -1179,7 +1178,7 @@ discard block |
||
| 1179 | 1178 | * @param int $check Acl::READ for read and Acl::EDIT for write or delete access |
| 1180 | 1179 | * @param string $rel_path =null currently not used in InfoLog |
| 1181 | 1180 | * @param int $user =null for which user to check, default current user |
| 1182 | - * @return boolean true if access is granted or false otherwise |
|
| 1181 | + * @return null|boolean true if access is granted or false otherwise |
|
| 1183 | 1182 | */ |
| 1184 | 1183 | function file_access($id,$check,$rel_path=null,$user=null) |
| 1185 | 1184 | { |
@@ -2094,6 +2093,9 @@ discard block |
||
| 2094 | 2093 | return $cat_id_list; |
| 2095 | 2094 | } |
| 2096 | 2095 | |
| 2096 | + /** |
|
| 2097 | + * @param string $cat_id_list |
|
| 2098 | + */ |
|
| 2097 | 2099 | function get_categories($cat_id_list) |
| 2098 | 2100 | { |
| 2099 | 2101 | if (!is_object($this->categories)) |
@@ -213,7 +213,6 @@ |
||
| 213 | 213 | /** |
| 214 | 214 | * Remove attributes we are not allowed to update |
| 215 | 215 | * |
| 216 | - * @param array $attributes |
|
| 217 | 216 | */ |
| 218 | 217 | function sanitize_update(array &$ldapContact) |
| 219 | 218 | { |
@@ -425,7 +425,6 @@ discard block |
||
| 425 | 425 | /** |
| 426 | 426 | * Remove attributes we are not allowed to update |
| 427 | 427 | * |
| 428 | - * @param array $attributes |
|
| 429 | 428 | */ |
| 430 | 429 | function sanitize_update(array &$ldapContact) |
| 431 | 430 | { |
@@ -703,14 +702,14 @@ discard block |
||
| 703 | 702 | * |
| 704 | 703 | * '*' and '?' are replaced with sql-wildcards '%' and '_' |
| 705 | 704 | * |
| 706 | - * @param array|string $criteria array of key and data cols, OR a SQL query (content for WHERE), fully quoted (!) |
|
| 705 | + * @param boolean $criteria array of key and data cols, OR a SQL query (content for WHERE), fully quoted (!) |
|
| 707 | 706 | * @param boolean|string $only_keys =true True returns only keys, False returns all cols. comma seperated list of keys to return |
| 708 | 707 | * @param string $order_by ='' fieldnames + {ASC|DESC} separated by colons ',', can also contain a GROUP BY (if it contains ORDER BY) |
| 709 | - * @param string|array $extra_cols ='' string or array of strings to be added to the SELECT, eg. "count(*) as num" |
|
| 708 | + * @param string $extra_cols ='' string or array of strings to be added to the SELECT, eg. "count(*) as num" |
|
| 710 | 709 | * @param string $wildcard ='' appended befor and after each criteria |
| 711 | 710 | * @param boolean $empty =false False=empty criteria are ignored in query, True=empty have to be empty in row |
| 712 | 711 | * @param string $op ='AND' defaults to 'AND', can be set to 'OR' too, then criteria's are OR'ed together |
| 713 | - * @param mixed $start =false if != false, return only maxmatch rows begining with start, or array($start,$num) |
|
| 712 | + * @param boolean $start =false if != false, return only maxmatch rows begining with start, or array($start,$num) |
|
| 714 | 713 | * @param array $filter =null if set (!=null) col-data pairs, to be and-ed (!) into the query without wildcards |
| 715 | 714 | * @param string $join ='' sql to do a join, added as is after the table-name, eg. ", table2 WHERE x=y" or |
| 716 | 715 | * "LEFT JOIN table2 ON (x=y)", Note: there's no quoting done on $join! |