@@ -76,10 +76,8 @@ discard block |
||
76 | 76 | /** |
77 | 77 | * Constructor |
78 | 78 | * |
79 | - * @param int|string|array|DateTime $time='now' integer timestamp, string with date+time, DateTime object or |
|
80 | - * array with values for keys('year','month','day') or 'full' plus 'hour','minute' and optional 'second' |
|
81 | - * @param DateTimeZone $tz=null timezone, default user time (PHP DateTime default to server time!) |
|
82 | 79 | * @param string &$type=null on return type of $time (optional) |
80 | + * @param string $type |
|
83 | 81 | * @throws Exception if $time can NOT be parsed |
84 | 82 | * @return egw_time |
85 | 83 | */ |
@@ -164,7 +162,7 @@ discard block |
||
164 | 162 | /** |
165 | 163 | * Like DateTime::add, but additional allow to use a string run through DateInterval::createFromDateString |
166 | 164 | * |
167 | - * @param DateInterval|string $interval eg. '1 day', '-2 weeks' |
|
165 | + * @param string $interval eg. '1 day', '-2 weeks' |
|
168 | 166 | */ |
169 | 167 | public function add($interval) |
170 | 168 | { |
@@ -384,7 +382,7 @@ discard block |
||
384 | 382 | * Convert a server time into a user time |
385 | 383 | * |
386 | 384 | * @param int|string|array|DateTime $time |
387 | - * @param string $type=null type or return-value, default (null) same as $time |
|
385 | + * @param string $type |
|
388 | 386 | * @return int|string|array|datetime null if time could not be parsed |
389 | 387 | */ |
390 | 388 | public static function server2user($time,$type=null) |
@@ -413,8 +411,8 @@ discard block |
||
413 | 411 | * Convert a user time into a server time |
414 | 412 | * |
415 | 413 | * @param int|string|array|datetime $time |
416 | - * @param string $type=null type or return-value, default (null) same as $time |
|
417 | - * @return int|string|array|datetime null if time could not be parsed |
|
414 | + * @param string $type |
|
415 | + * @return integer|null null if time could not be parsed |
|
418 | 416 | */ |
419 | 417 | public static function user2server($time,$type=null) |
420 | 418 | { |
@@ -441,7 +439,6 @@ discard block |
||
441 | 439 | /** |
442 | 440 | * Convert time to a specific format or string, static version of egw_time::format() |
443 | 441 | * |
444 | - * @param int|string|array|DateTime $time='now' see constructor |
|
445 | 442 | * @param string $type='' 'integer'|'ts'=timestamp, 'server'=timestamp in servertime, 'string'='Y-m-d H:i:s', 'object'=DateTime, |
446 | 443 | * 'array'=array with values for keys ('year','month','day','hour','minute','second','full','raw') or string with format |
447 | 444 | * true = date only, false = time only as in user prefs, '' = date+time as in user prefs |
@@ -507,7 +504,6 @@ discard block |
||
507 | 504 | * |
508 | 505 | * Compatibility method for old code. It is only valid for the given time, because of possible daylight saving changes! |
509 | 506 | * |
510 | - * @param int|string|DateTime $time='now' |
|
511 | 507 | * @return int difference in seconds between user and server time (for the given time!) |
512 | 508 | */ |
513 | 509 | public static function tz_offset_s($time='now') |
@@ -558,7 +554,7 @@ discard block |
||
558 | 554 | * - return UTC and oceans at the end |
559 | 555 | * - if (user lang is a european language), move Europe to top |
560 | 556 | * |
561 | - * @return array continent|ocean => array(tz-name => tz-label incl. current time) |
|
557 | + * @return string continent|ocean => array(tz-name => tz-label incl. current time) |
|
562 | 558 | */ |
563 | 559 | public static function getTimezones() |
564 | 560 | { |
@@ -307,6 +307,8 @@ discard block |
||
307 | 307 | * @param string $path |
308 | 308 | * @param array &$dav |
309 | 309 | * @param array &$allow |
310 | + * @param integer[] $dav |
|
311 | + * @param boolean $allow |
|
310 | 312 | */ |
311 | 313 | function OPTIONS($path, &$dav, &$allow) |
312 | 314 | { |
@@ -440,9 +442,7 @@ discard block |
||
440 | 442 | * Add a collection to a PROPFIND request |
441 | 443 | * |
442 | 444 | * @param string $path |
443 | - * @param array $props=array() extra properties 'resourcetype' is added anyway, name => value pairs or name => HTTP_WebDAV_Server([namespace,]name,value) |
|
444 | - * @param array $privileges=array('read') values for current-user-privilege-set |
|
445 | - * @param array $supported_privileges=null default $this->supported_privileges |
|
445 | + * @param array $supported_privileges default $this->supported_privileges |
|
446 | 446 | * @return array with values for keys 'path' and 'props' |
447 | 447 | */ |
448 | 448 | public function add_collection($path, array $props = array(), array $privileges=array('read','read-acl','read-current-user-privilege-set'), array $supported_privileges=null) |
@@ -459,9 +459,7 @@ discard block |
||
459 | 459 | * Add a resource to a PROPFIND request |
460 | 460 | * |
461 | 461 | * @param string $path |
462 | - * @param array $props=array() extra properties 'resourcetype' is added anyway, name => value pairs or name => HTTP_WebDAV_Server([namespace,]name,value) |
|
463 | - * @param array $privileges=array('read') values for current-user-privilege-set |
|
464 | - * @param array $supported_privileges=null default $this->supported_privileges |
|
462 | + * @param array $supported_privileges default $this->supported_privileges |
|
465 | 463 | * @return array with values for keys 'path' and 'props' |
466 | 464 | */ |
467 | 465 | public function add_resource($path, array $props = array(), array $privileges=array('read','read-current-user-privilege-set'), array $supported_privileges=null) |
@@ -534,7 +532,7 @@ discard block |
||
534 | 532 | * |
535 | 533 | * @param string $name name of privilege |
536 | 534 | * @param string|array $data string with describtion or array with agregated privileges plus value for key '*description*', '*ns*', '*only*' |
537 | - * @param string $path=null path to match with $data['*only*'] |
|
535 | + * @param string $path |
|
538 | 536 | * @return array of self::mkprop() arrays |
539 | 537 | */ |
540 | 538 | protected function supported_privilege($name, $data, $path=null) |
@@ -562,8 +560,7 @@ discard block |
||
562 | 560 | * Checks if a given property was requested in propfind request |
563 | 561 | * |
564 | 562 | * @param string $name property name |
565 | - * @param string $ns=null namespace, if that is to be checked too |
|
566 | - * @param boolean $return_prop=false if true return the property array with values for 'name', 'xmlns', 'attrs', 'children' |
|
563 | + * @param boolean $return_prop if true return the property array with values for 'name', 'xmlns', 'attrs', 'children' |
|
567 | 564 | * @return boolean|string|array true: $name explicitly requested (or autoindex), "all": allprop or "names": propname requested, false: $name was not requested |
568 | 565 | */ |
569 | 566 | function prop_requested($name, $ns=null, $return_prop=false) |
@@ -599,7 +596,7 @@ discard block |
||
599 | 596 | * @param string $path / or /<username>/ |
600 | 597 | * @param int $user |
601 | 598 | * @param int $depth |
602 | - * @return string|boolean http status or true|false |
|
599 | + * @return boolean http status or true|false |
|
603 | 600 | */ |
604 | 601 | protected function add_home(array &$files, $path, $user, $depth) |
605 | 602 | { |
@@ -691,7 +688,7 @@ discard block |
||
691 | 688 | * |
692 | 689 | * @param array &$files |
693 | 690 | * @param string $path / or /<username>/ |
694 | - * @param int $depth=0 |
|
691 | + * @param int $depth |
|
695 | 692 | * @return string|boolean http status or true|false |
696 | 693 | */ |
697 | 694 | protected function add_resources_collection(array &$files, $path, $depth=0) |
@@ -731,7 +728,7 @@ discard block |
||
731 | 728 | * @param string $path /<username>/ |
732 | 729 | * @param int $app |
733 | 730 | * @param int $user |
734 | - * @return string|boolean http status or true|false |
|
731 | + * @return boolean http status or true|false |
|
735 | 732 | */ |
736 | 733 | protected function add_shared(array &$files, $path, $app, $user) |
737 | 734 | { |
@@ -793,9 +790,7 @@ discard block |
||
793 | 790 | * Add an application collection to a user home or the root |
794 | 791 | * |
795 | 792 | * @param string $app |
796 | - * @param boolean $no_extra_types=false should the GroupDAV and CalDAV types be added (KAddressbook has problems with it in self URL) |
|
797 | - * @param int $user=null owner of the collection, default current user |
|
798 | - * @param string $path='/' |
|
793 | + * @param boolean $no_extra_types should the GroupDAV and CalDAV types be added (KAddressbook has problems with it in self URL) |
|
799 | 794 | * @return array with values for keys 'path' and 'props' |
800 | 795 | */ |
801 | 796 | protected function add_app($app,$no_extra_types=false,$user=null,$path='/') |
@@ -1364,7 +1359,7 @@ discard block |
||
1364 | 1359 | * @param int|string $id |
1365 | 1360 | * @param array $attach array of array with values for keys 'name', 'params', 'value' |
1366 | 1361 | * @param boolean $delete_via_put |
1367 | - * @return boolean false on error, eg. invalid managed id, for false an xml-error body has been send |
|
1362 | + * @return null|false false on error, eg. invalid managed id, for false an xml-error body has been send |
|
1368 | 1363 | */ |
1369 | 1364 | public static function handle_attach($app, $id, $attach, $delete_via_put=false) |
1370 | 1365 | { |
@@ -1452,7 +1447,6 @@ discard block |
||
1452 | 1447 | * @param string $app |
1453 | 1448 | * @param int|string $id |
1454 | 1449 | * @param string $filename defaults to 'attachment' |
1455 | - * @param string $mime=null mime-type to generate extension |
|
1456 | 1450 | * @param string &$path=null on return path opened |
1457 | 1451 | * @return resource |
1458 | 1452 | */ |
@@ -1565,9 +1559,7 @@ discard block |
||
1565 | 1559 | * Return vfs-path of a managed-id |
1566 | 1560 | * |
1567 | 1561 | * @param string $managed_id |
1568 | - * @param string $app=null app-name to check against path |
|
1569 | - * @param string|int $id=null id to check agains path |
|
1570 | - * @return string|boolean "/apps/$app/$id/something" or false if not found or not belonging to given $app/$id |
|
1562 | + * @return false|string "/apps/$app/$id/something" or false if not found or not belonging to given $app/$id |
|
1571 | 1563 | */ |
1572 | 1564 | static public function managed_id2path($managed_id, $app=null, $id=null) |
1573 | 1565 | { |
@@ -1757,7 +1749,7 @@ discard block |
||
1757 | 1749 | * MKCOL method handler |
1758 | 1750 | * |
1759 | 1751 | * @param array general parameter passing array |
1760 | - * @return bool true on success |
|
1752 | + * @return string true on success |
|
1761 | 1753 | */ |
1762 | 1754 | function MKCOL($options) |
1763 | 1755 | { |
@@ -1770,7 +1762,7 @@ discard block |
||
1770 | 1762 | * MOVE method handler |
1771 | 1763 | * |
1772 | 1764 | * @param array general parameter passing array |
1773 | - * @return bool true on success |
|
1765 | + * @return string true on success |
|
1774 | 1766 | */ |
1775 | 1767 | function MOVE($options) |
1776 | 1768 | { |
@@ -1783,7 +1775,7 @@ discard block |
||
1783 | 1775 | * COPY method handler |
1784 | 1776 | * |
1785 | 1777 | * @param array general parameter passing array |
1786 | - * @return bool true on success |
|
1778 | + * @return string true on success |
|
1787 | 1779 | */ |
1788 | 1780 | function COPY($options, $del=false) |
1789 | 1781 | { |
@@ -1796,7 +1788,7 @@ discard block |
||
1796 | 1788 | * LOCK method handler |
1797 | 1789 | * |
1798 | 1790 | * @param array general parameter passing array |
1799 | - * @return bool true on success |
|
1791 | + * @return string|boolean true on success |
|
1800 | 1792 | */ |
1801 | 1793 | function LOCK(&$options) |
1802 | 1794 | { |
@@ -1829,7 +1821,7 @@ discard block |
||
1829 | 1821 | * UNLOCK method handler |
1830 | 1822 | * |
1831 | 1823 | * @param array general parameter passing array |
1832 | - * @return bool true on success |
|
1824 | + * @return string true on success |
|
1833 | 1825 | */ |
1834 | 1826 | function UNLOCK(&$options) |
1835 | 1827 | { |
@@ -2098,7 +2090,7 @@ discard block |
||
2098 | 2090 | * Output xml error element |
2099 | 2091 | * |
2100 | 2092 | * @param string|array $xml_error string with name for empty element in DAV NS or array with props |
2101 | - * @param string $human_readable=null human readable error message |
|
2093 | + * @param string $human_readable human readable error message |
|
2102 | 2094 | */ |
2103 | 2095 | public static function xml_error($xml_error, $human_readable=null) |
2104 | 2096 | { |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | * |
148 | 148 | * @param string $path |
149 | 149 | * @param array $filter |
150 | - * @param array|boolean $start false=return all or array(start,num) |
|
150 | + * @param integer[] $start false=return all or array(start,num) |
|
151 | 151 | * @param int &$total |
152 | 152 | * @return array with "files" array with values for keys path and props |
153 | 153 | */ |
@@ -158,7 +158,6 @@ discard block |
||
158 | 158 | * |
159 | 159 | * @param array &$options |
160 | 160 | * @param int $id |
161 | - * @param int $user=null account_id |
|
162 | 161 | * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
163 | 162 | */ |
164 | 163 | abstract function get(&$options,$id,$user=null); |
@@ -168,7 +167,6 @@ discard block |
||
168 | 167 | * |
169 | 168 | * @param array &$options |
170 | 169 | * @param int $id |
171 | - * @param int $user=null account_id of owner, default null |
|
172 | 170 | * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
173 | 171 | */ |
174 | 172 | abstract function put(&$options,$id,$user=null); |
@@ -186,7 +184,6 @@ discard block |
||
186 | 184 | * Read an entry |
187 | 185 | * |
188 | 186 | * @param string|int $id |
189 | - * @param string $path=null implementation can use it, used in call from _common_get_put_delete |
|
190 | 187 | * @return array|boolean array with entry, false if no read rights, null if $id does not exist |
191 | 188 | */ |
192 | 189 | abstract function read($id /*,$path=null*/); |
@@ -214,10 +211,8 @@ discard block |
||
214 | 211 | /** |
215 | 212 | * Add extra properties for collections |
216 | 213 | * |
217 | - * @param array $props=array() regular props by the groupdav handler |
|
218 | 214 | * @param string $displayname |
219 | - * @param string $base_uri=null base url of handler |
|
220 | - * @param int $user=null account_id of owner of collection |
|
215 | + * @param string $base_uri base url of handler |
|
221 | 216 | * @return array |
222 | 217 | */ |
223 | 218 | public function extra_properties(array $props=array(), $displayname, $base_uri=null, $user=null) |
@@ -228,8 +223,7 @@ discard block |
||
228 | 223 | /** |
229 | 224 | * Get the etag for an entry, can be reimplemented for other algorithm or field names |
230 | 225 | * |
231 | - * @param array|int $event array with event or cal_id |
|
232 | - * @return string|boolean string with etag or false |
|
226 | + * @return false|string string with etag or false |
|
233 | 227 | */ |
234 | 228 | function get_etag($entry) |
235 | 229 | { |
@@ -268,7 +262,7 @@ discard block |
||
268 | 262 | * @param array &$options |
269 | 263 | * @param int|string &$id on return self::$path_extension got removed |
270 | 264 | * @param boolean &$return_no_access=false if set to true on call, instead of '403 Forbidden' the entry is returned and $return_no_access===false |
271 | - * @param boolean $ignore_if_match=false if true, ignore If-Match precondition |
|
265 | + * @param boolean $ignore_if_match if true, ignore If-Match precondition |
|
272 | 266 | * @return array|string entry on success, string with http-error-code on failure, null for PUT on an unknown id |
273 | 267 | */ |
274 | 268 | function _common_get_put_delete($method,&$options,&$id,&$return_no_access=false,$ignore_if_match=false) |
@@ -343,7 +337,6 @@ discard block |
||
343 | 337 | * |
344 | 338 | * @param array $options |
345 | 339 | * @param int $id |
346 | - * @param int $user=null account_id |
|
347 | 340 | * @return string|boolean http status of get or null if no representation was requested |
348 | 341 | */ |
349 | 342 | public function check_return_representation($options, $id, $user=null) |
@@ -416,7 +409,7 @@ discard block |
||
416 | 409 | /** |
417 | 410 | * Identify know GroupDAV agents by HTTP_USER_AGENT header |
418 | 411 | * |
419 | - * @return string|boolean agent name or false |
|
412 | + * @return string|false agent name or false |
|
420 | 413 | */ |
421 | 414 | static function get_agent() |
422 | 415 | { |
@@ -503,7 +496,6 @@ discard block |
||
503 | 496 | * Priviledges are for the collection, not the resources / entries! |
504 | 497 | * |
505 | 498 | * @param string $path path of collection |
506 | - * @param int $user=null owner of the collection, default current user |
|
507 | 499 | * @return array with privileges |
508 | 500 | */ |
509 | 501 | public function current_user_privileges($path, $user=null) |
@@ -556,8 +548,8 @@ discard block |
||
556 | 548 | * @param int|array $entry id or array of new created entry |
557 | 549 | * @param string $path |
558 | 550 | * @param int|string $retval |
559 | - * @param boolean $path_attr_is_name=true true: path_attr is ca(l|rd)dav_name, false: id (GroupDAV needs Location header) |
|
560 | - * @param string $etag=null etag, to not calculate it again (if != null) |
|
551 | + * @param boolean $path_attr_is_name true: path_attr is ca(l|rd)dav_name, false: id (GroupDAV needs Location header) |
|
552 | + * @param string $etag |
|
561 | 553 | */ |
562 | 554 | function put_response_headers($entry, $path, $retval, $path_attr_is_name=true, $etag=null) |
563 | 555 | { |
@@ -655,7 +647,7 @@ discard block |
||
655 | 647 | * |
656 | 648 | * base_uri of WebDAV class can be both, depending on EGroupware config |
657 | 649 | * |
658 | - * @param boolean $full_uri=true |
|
650 | + * @param boolean $full_uri |
|
659 | 651 | * @return string eg. https://domain.com/egroupware/groupdav.php |
660 | 652 | */ |
661 | 653 | public function base_uri($full_uri=true) |
@@ -726,7 +718,6 @@ discard block |
||
726 | 718 | * |
727 | 719 | * @param string $path |
728 | 720 | * @param int $user parameter necessary to call getctag, if no $token specified |
729 | - * @param int $token=null modification time, default call getctag($path, $user) to fetch it |
|
730 | 721 | * @return string |
731 | 722 | */ |
732 | 723 | public function get_sync_token($path, $user, $token=null) |
@@ -822,7 +813,7 @@ discard block |
||
822 | 813 | * |
823 | 814 | * @param groupdav_handler $handler |
824 | 815 | * @param array $filter filter for propfind call |
825 | - * @param array $files=array() extra files/responses to return too |
|
816 | + * @param string $path |
|
826 | 817 | */ |
827 | 818 | public function __construct(groupdav_handler $handler, $path, array $filter,array &$files=array()) |
828 | 819 | { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * Currently we return all reports independed of path |
79 | 79 | * |
80 | 80 | * @param string $path eg. '/principals/' |
81 | - * @param array $reports=null |
|
81 | + * @param array $reports |
|
82 | 82 | * @return array HTTP_WebDAV_Server::mkprop('supported-report-set', ...) |
83 | 83 | */ |
84 | 84 | protected function supported_report_set($path, array $reports=null) |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | * @param array &$options |
247 | 247 | * @param array &$files |
248 | 248 | * @param int $user account_id |
249 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
249 | + * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
250 | 250 | */ |
251 | 251 | function expand_property_report($path,&$options,&$files,$user) |
252 | 252 | { |
@@ -559,7 +559,6 @@ discard block |
||
559 | 559 | * |
560 | 560 | * @param string $value value to test |
561 | 561 | * @param string $match criteria/sub-string |
562 | - * @param string $match_type='contains' 'starts-with', 'ends-with' or 'equals' |
|
563 | 562 | */ |
564 | 563 | private static function match($value, $match, $match_type='contains') |
565 | 564 | { |
@@ -972,8 +971,7 @@ discard block |
||
972 | 971 | * Convert CalDAV principal URL to a calendar uid |
973 | 972 | * |
974 | 973 | * @param string $url |
975 | - * @param string|array $only_type=null allowed types, return false for other (valid) types, eg. "users", "groups" or "resources", default all |
|
976 | - * @param string $cn=null common name to be stored in case of an "e" uid |
|
974 | + * @param string|array $only_type allowed types, return false for other (valid) types, eg. "users", "groups" or "resources", default all |
|
977 | 975 | * @return int|string|boolean integer account_id, string calendar uid or false if not a supported uid |
978 | 976 | */ |
979 | 977 | static public function url2uid($url, $only_type=null, $cn=null) |
@@ -1118,7 +1116,7 @@ discard block |
||
1118 | 1116 | * Add collection of a single resource to a collection |
1119 | 1117 | * |
1120 | 1118 | * @param array $resource |
1121 | - * @param boolean $is_location=null |
|
1119 | + * @param boolean $is_location |
|
1122 | 1120 | * @return array with values for keys 'path' and 'props' |
1123 | 1121 | */ |
1124 | 1122 | protected function add_principal_resource(array $resource, $is_location=null) |
@@ -1169,7 +1167,7 @@ discard block |
||
1169 | 1167 | * Check if resource is a location |
1170 | 1168 | * |
1171 | 1169 | * @param array|int $resource |
1172 | - * @return boolean |
|
1170 | + * @return null|boolean |
|
1173 | 1171 | */ |
1174 | 1172 | public static function resource_is_location($resource) |
1175 | 1173 | { |
@@ -1233,7 +1231,6 @@ discard block |
||
1233 | 1231 | /** |
1234 | 1232 | * Get all resources (we cache the resources here, to only query them once per request) |
1235 | 1233 | * |
1236 | - * @param int $user=null account_if of user, or null for current user |
|
1237 | 1234 | * @return array of array with values for res_id, cat_id and name (no other values1) |
1238 | 1235 | */ |
1239 | 1236 | public static function get_resources($user=null) |
@@ -1283,7 +1280,6 @@ discard block |
||
1283 | 1280 | * Add a collection |
1284 | 1281 | * |
1285 | 1282 | * @param string $path |
1286 | - * @param array $props=array() extra properties 'resourcetype' is added anyway, name => value pairs or name => HTTP_WebDAV_Server([namespace,]name,value) |
|
1287 | 1283 | * @return array with values for keys 'path' and 'props' |
1288 | 1284 | */ |
1289 | 1285 | protected function add_collection($path, array $props = array()) |
@@ -1299,8 +1295,7 @@ discard block |
||
1299 | 1295 | * Add a principal collection |
1300 | 1296 | * |
1301 | 1297 | * @param string $principal relative to principal-collection-set, eg. "users/username" |
1302 | - * @param array $props=array() extra properties 'resourcetype' is added anyway |
|
1303 | - * @param string $principal_url=null include given principal url, relative to principal-collection-set, default $principal |
|
1298 | + * @param string $principal_url include given principal url, relative to principal-collection-set, default $principal |
|
1304 | 1299 | * @return array with values for keys 'path' and 'props' |
1305 | 1300 | */ |
1306 | 1301 | protected function add_principal($principal, array $props = array(), $principal_url=null) |
@@ -1327,8 +1322,7 @@ discard block |
||
1327 | 1322 | * |
1328 | 1323 | * @param string $principal relative to principal-collection-set, eg. "users/username" |
1329 | 1324 | * @param string $type eg. 'calendar-proxy-read' or 'calendar-proxy-write' |
1330 | - * @param array $proxys=array() |
|
1331 | - * @param array $resource=null resource to use (to not query it multiple times from the database) |
|
1325 | + * @param array $resource resource to use (to not query it multiple times from the database) |
|
1332 | 1326 | * @return array with values for 'path' and 'props' |
1333 | 1327 | */ |
1334 | 1328 | protected function add_proxys($principal, $type, array $proxys=array(), array $resource=null) |
@@ -1405,9 +1399,8 @@ discard block |
||
1405 | 1399 | * Create a named property with set or principal-urls |
1406 | 1400 | * |
1407 | 1401 | * @param string $prop egw. 'group-member-set' or 'membership' |
1408 | - * @param array $accounts=array() account_id => account_lid pairs |
|
1409 | - * @param string|array $app_proxys=null applications for which proxys should be added |
|
1410 | 1402 | * @param int $account who is the proxy |
1403 | + * @param string[] $add_proxys |
|
1411 | 1404 | * @return array with href props |
1412 | 1405 | */ |
1413 | 1406 | protected function principal_set($prop, array $accounts=array(), $add_proxys=null, $account=null) |
@@ -1445,7 +1438,6 @@ discard block |
||
1445 | 1438 | * Get proxy-groups for given user $account: users or groups who GRANT proxy rights to $account |
1446 | 1439 | * |
1447 | 1440 | * @param int $account who is the proxy |
1448 | - * @param string|array $app_proxys=null applications for which proxys should be added |
|
1449 | 1441 | * @return array with href props |
1450 | 1442 | */ |
1451 | 1443 | protected function get_resource_proxy_groups($account) |
@@ -1489,7 +1481,6 @@ discard block |
||
1489 | 1481 | * Get proxy-groups for given user $account: users or groups who GRANT proxy rights to $account |
1490 | 1482 | * |
1491 | 1483 | * @param int $account who is the proxy |
1492 | - * @param string|array $app_proxys=null applications for which proxys should be added |
|
1493 | 1484 | * @return array with href props |
1494 | 1485 | */ |
1495 | 1486 | protected function get_calendar_proxy_groups($account, $app='calendar') |
@@ -1515,7 +1506,7 @@ discard block |
||
1515 | 1506 | * @param string $name name of group or empty |
1516 | 1507 | * @param string $rest rest of path behind account-name |
1517 | 1508 | * @param array $options |
1518 | - * @param boolean $do_locations=false false: /principal/resources, true: /principals/locations |
|
1509 | + * @param boolean $do_locations false: /principal/resources, true: /principals/locations |
|
1519 | 1510 | * @return array|string array with files or HTTP error code |
1520 | 1511 | */ |
1521 | 1512 | protected function propfind_resources($name,$rest,array $options,$do_locations=false) |
@@ -1583,8 +1574,6 @@ discard block |
||
1583 | 1574 | /** |
1584 | 1575 | * Do propfind of /principals/ |
1585 | 1576 | * |
1586 | - * @param string $name name of group or empty |
|
1587 | - * @param string $rest name of rest of path behind group-name |
|
1588 | 1577 | * @param array $options |
1589 | 1578 | * @return array|string array with files or HTTP error code |
1590 | 1579 | */ |
@@ -1614,8 +1603,7 @@ discard block |
||
1614 | 1603 | * |
1615 | 1604 | * @param array &$options |
1616 | 1605 | * @param int $id |
1617 | - * @param int $user=null account_id |
|
1618 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1606 | + * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1619 | 1607 | */ |
1620 | 1608 | function get(&$options,$id,$user=null) |
1621 | 1609 | { |
@@ -1627,8 +1615,7 @@ discard block |
||
1627 | 1615 | * |
1628 | 1616 | * @param array &$options |
1629 | 1617 | * @param int $id |
1630 | - * @param int $user=null account_id of owner, default null |
|
1631 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1618 | + * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1632 | 1619 | */ |
1633 | 1620 | function put(&$options,$id,$user=null) |
1634 | 1621 | { |
@@ -1640,7 +1627,7 @@ discard block |
||
1640 | 1627 | * |
1641 | 1628 | * @param array &$options |
1642 | 1629 | * @param int $id |
1643 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1630 | + * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1644 | 1631 | */ |
1645 | 1632 | function delete(&$options,$id) |
1646 | 1633 | { |
@@ -1663,7 +1650,7 @@ discard block |
||
1663 | 1650 | * |
1664 | 1651 | * @param int $acl EGW_ACL_READ, EGW_ACL_EDIT or EGW_ACL_DELETE |
1665 | 1652 | * @param array/int $entry entry-array or id |
1666 | - * @return boolean null if entry does not exist, false if no access, true if access permitted |
|
1653 | + * @return null|boolean null if entry does not exist, false if no access, true if access permitted |
|
1667 | 1654 | */ |
1668 | 1655 | function check_access($acl,$entry) |
1669 | 1656 | { |
@@ -1681,7 +1668,6 @@ discard block |
||
1681 | 1668 | /** |
1682 | 1669 | * Get the etag for an entry, can be reimplemented for other algorithm or field names |
1683 | 1670 | * |
1684 | - * @param array/int $event array with event or cal_id |
|
1685 | 1671 | * @return string/boolean string with etag or false |
1686 | 1672 | */ |
1687 | 1673 | function get_etag($account) |
@@ -1705,8 +1691,7 @@ discard block |
||
1705 | 1691 | * Privileges are for the collection, not the resources / entries! |
1706 | 1692 | * |
1707 | 1693 | * @param string $path path of collection |
1708 | - * @param int $user=null owner of the collection, default current user |
|
1709 | - * @return array with privileges |
|
1694 | + * @return string[] with privileges |
|
1710 | 1695 | */ |
1711 | 1696 | public function current_user_privileges($path, $user=null) |
1712 | 1697 | { |
@@ -112,6 +112,8 @@ |
||
112 | 112 | |
113 | 113 | /** |
114 | 114 | * Static function to add a history record |
115 | + * @param string $field_code |
|
116 | + * @param string $new_value |
|
115 | 117 | */ |
116 | 118 | public static function static_add($appname, $id, $user, $field_code, $new_value, $old_value = '') |
117 | 119 | { |
@@ -270,7 +270,7 @@ |
||
270 | 270 | * |
271 | 271 | * @param string $appname Application 'name' |
272 | 272 | * @param string $location is required, the hook itself |
273 | - * @return boolean|int false on error, true if new hooks are supplied and registed or number of removed hooks |
|
273 | + * @return boolean false on error, true if new hooks are supplied and registed or number of removed hooks |
|
274 | 274 | */ |
275 | 275 | function register_single_app_hook($appname, $location) |
276 | 276 | { |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | * |
309 | 309 | * @param string $name string with name of the submitted var which holds the key of the selected item form array |
310 | 310 | * @param string|array $key key(s) of already selected item(s) from $arr, eg. '1' or '1,2' or array with keys |
311 | - * @param array $arr array with items to select, eg. $arr = array ( 'y' => 'yes','n' => 'no','m' => 'maybe'); |
|
311 | + * @param integer $arr array with items to select, eg. $arr = array ( 'y' => 'yes','n' => 'no','m' => 'maybe'); |
|
312 | 312 | * @param boolean $no_lang NOT run the labels of the options through lang(), default false=use lang() |
313 | 313 | * @param string $options additional options (e.g. 'width') |
314 | 314 | * @param int $multiple number of lines for a multiselect, default 0 = no multiselect, < 0 sets size without multiple |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | * |
397 | 397 | * @param string $name string with name of the submitted var which holds the key of the selected item form array |
398 | 398 | * @param string|array $key key(s) of already selected item(s) from $arr, eg. '1' or '1,2' or array with keys |
399 | - * @param array $arr array with items to select, eg. $arr = array ( 'y' => 'yes','n' => 'no','m' => 'maybe'); |
|
399 | + * @param integer $arr array with items to select, eg. $arr = array ( 'y' => 'yes','n' => 'no','m' => 'maybe'); |
|
400 | 400 | * @param boolean $no_lang NOT run the labels of the options through lang(), default false=use lang() |
401 | 401 | * @param string $options additional options (e.g. 'width') |
402 | 402 | * @param int $multiple number of lines for a multiselect, default 3 |
@@ -482,7 +482,7 @@ discard block |
||
482 | 482 | * @param string $value value |
483 | 483 | * @param string $label label |
484 | 484 | * @param mixed $selected value or array of values of options to mark as selected |
485 | - * @param boolean $no_lang NOT running the label through lang(), default false=use lang() |
|
485 | + * @param integer $no_lang NOT running the label through lang(), default false=use lang() |
|
486 | 486 | * @param string $extra extra text, e.g.: style="", default: '' |
487 | 487 | * @return string html |
488 | 488 | */ |
@@ -555,7 +555,6 @@ discard block |
||
555 | 555 | * |
556 | 556 | * @param string $name name attr. of the tag |
557 | 557 | * @param string $value default |
558 | - * @param boolean $ignore_empty if true all empty, zero (!) or unset values, plus filer=none |
|
559 | 558 | * @param boolean $double_encoding =false do we want double encoding or not, default no |
560 | 559 | * @param string html |
561 | 560 | */ |
@@ -913,7 +912,6 @@ discard block |
||
913 | 912 | * @param array $hidden_vars array with name-value pairs for hidden input fields |
914 | 913 | * @param string $url eGW relative URL, will be run through the link function |
915 | 914 | * @param string|array $url_vars parameters for the URL, send to link static function too |
916 | - * @param string $options attributes for the tag, default ''=none |
|
917 | 915 | * @param string $form_name name of the form, defaul ''=none |
918 | 916 | * @param string $method method of the form, default 'POST' |
919 | 917 | * @return string html |
@@ -1209,7 +1207,7 @@ discard block |
||
1209 | 1207 | * Example: formatOptions('100%,,1','width,height,border') = ' width="100%" border="1"' |
1210 | 1208 | * |
1211 | 1209 | * @param mixed $options String (or Array) with option-values eg. '100%,,1' |
1212 | - * @param mixed $names String (or Array) with the option-names eg. 'WIDTH,HEIGHT,BORDER' |
|
1210 | + * @param string $names String (or Array) with the option-names eg. 'WIDTH,HEIGHT,BORDER' |
|
1213 | 1211 | * @return string with options/attributes |
1214 | 1212 | */ |
1215 | 1213 | static function formatOptions($options,$names) |
@@ -1312,7 +1310,7 @@ discard block |
||
1312 | 1310 | * @author Lars Kneschke <lars-AT-kneschke.de> original code in felamimail |
1313 | 1311 | * @param array $_folders array of folders: pairs path => node (string label or array with keys: label, (optional) image, (optional) title, (optional) checked) |
1314 | 1312 | * @param string $_selected path of selected folder |
1315 | - * @param mixed $_topFolder =false node of topFolder or false for none |
|
1313 | + * @param boolean $_topFolder =false node of topFolder or false for none |
|
1316 | 1314 | * @param string $_onNodeSelect ='alert' js static function to call if node gets selected |
1317 | 1315 | * @param string $tree ='foldertree' id of the div and name of the variable containing the tree object |
1318 | 1316 | * @param string $_divClass ='' css class of the div |
@@ -68,8 +68,7 @@ discard block |
||
68 | 68 | /** |
69 | 69 | * Constructor |
70 | 70 | * |
71 | - * @param string|array $recipients=null recipient email-address(es) |
|
72 | - * @param string $url=null ischedule url, if it should NOT be discovered |
|
71 | + * @param string|array $recipients recipient email-address(es) |
|
73 | 72 | * @throws Exception in case of an error or discovery failure |
74 | 73 | */ |
75 | 74 | public function __construct($recipients, $url=null) |
@@ -121,8 +120,7 @@ discard block |
||
121 | 120 | * @param string|array $recipients (array of) mailto urls (from same domain!) |
122 | 121 | * @param int $start starttime |
123 | 122 | * @param int $end endtime |
124 | - * @param string $uid=null |
|
125 | - * @param string $originator=null default current user's email |
|
123 | + * @param string $originator default current user's email |
|
126 | 124 | * @return array with values for keys 'schedule-response' or 'error' |
127 | 125 | * @throws Exception if discovery of recipient(s) fails |
128 | 126 | */ |
@@ -190,7 +188,7 @@ discard block |
||
190 | 188 | * Set originator and (optional) DKIM private key |
191 | 189 | * |
192 | 190 | * @param string $originator |
193 | - * @param string $dkim_private_key=null |
|
191 | + * @param string $dkim_private_key |
|
194 | 192 | * @throws Exception for invalid / not an email originator |
195 | 193 | */ |
196 | 194 | public function setOriginator($originator, $dkim_private_key=null) |
@@ -279,8 +277,7 @@ discard block |
||
279 | 277 | * |
280 | 278 | * @param string $content |
281 | 279 | * @param string $content_type |
282 | - * @param boolean $debug=false true echo request before posting |
|
283 | - * @param int $max_redirect=3 maximum number of redirect before failing |
|
280 | + * @param int $max_redirect maximum number of redirect before failing |
|
284 | 281 | * @return string |
285 | 282 | * @throws Exception with http status code and message, if server responds other then 2xx |
286 | 283 | */ |
@@ -366,10 +363,7 @@ discard block |
||
366 | 363 | * |
367 | 364 | * @param array $headers name => value pairs, names as in $sign_headers |
368 | 365 | * @param string $body |
369 | - * @param string $selector='calendar' |
|
370 | - * @param string $sign_headers='iSchedule-Version:Content-Type:Originator:Recipient' |
|
371 | 366 | * @param int $expires seconds the signature is valid, default 300 |
372 | - * @param boolean $fold=false true: return folded signature, false: return a single line |
|
373 | 367 | * @return string DKIM-Signature: ... |
374 | 368 | */ |
375 | 369 | public function dkim_sign(array $headers, $body, $selector='calendar',$sign_headers=self::DKIM_HEADERS,$expires=300,$fold=false) |
@@ -418,7 +412,6 @@ discard block |
||
418 | 412 | /** |
419 | 413 | * Query capabilities of iSchedule server |
420 | 414 | * |
421 | - * @param string $name=null name of capability to return, default null to return internal array with all capabilities |
|
422 | 415 | * @return mixed |
423 | 416 | * @throws Exception in case of an error or discovery failure |
424 | 417 | */ |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | * |
321 | 321 | * @param array $event |
322 | 322 | * @param calendar_ical $handler |
323 | - * @param string $component |
|
323 | + * @param Horde_iCalendar_vevent $component |
|
324 | 324 | * @param XMLWriter $xml |
325 | 325 | */ |
326 | 326 | function vevent(array $event, calendar_ical $handler, Horde_iCalendar_vevent $component, XMLWriter $xml) |
@@ -636,7 +636,7 @@ discard block |
||
636 | 636 | * |
637 | 637 | * @param string $d domain |
638 | 638 | * @param string $s selector |
639 | - * @return string|boolean string with (full) public key or false if not found or other error retrieving it |
|
639 | + * @return false|string string with (full) public key or false if not found or other error retrieving it |
|
640 | 640 | */ |
641 | 641 | public static function well_known_pubkey($d, $s) |
642 | 642 | { |
@@ -653,7 +653,7 @@ discard block |
||
653 | 653 | * |
654 | 654 | * @param string $d domain |
655 | 655 | * @param string $s selector |
656 | - * @return string|boolean string with (full) public key or false if not found or other error retrieving it |
|
656 | + * @return false|string string with (full) public key or false if not found or other error retrieving it |
|
657 | 657 | */ |
658 | 658 | public function dns_txt_pubkey($d, $s) |
659 | 659 | { |