@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | * Constructor |
20 | 20 | * |
21 | 21 | * @param string/int/array $account account name or id, or array with all parameters |
22 | - * @param string $new_user=null if specified, account to transfer the data to (users only) |
|
23 | - * @param string $is_user=true type of the account: true=user, false=group |
|
22 | + * @param string $new_user if specified, account to transfer the data to (users only) |
|
23 | + * @param string $is_user type of the account: true=user, false=group |
|
24 | 24 | */ |
25 | 25 | function __construct($account,$new_user=null,$is_user=true) |
26 | 26 | { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * delete an account (user or group) |
40 | 40 | * |
41 | - * @param boolean $check_only=false only run the checks (and throw the exceptions), but not the command itself |
|
41 | + * @param boolean $check_only only run the checks (and throw the exceptions), but not the command itself |
|
42 | 42 | * @return string success message |
43 | 43 | * @throws egw_exception_no_admin |
44 | 44 | * @throws egw_exception_wrong_userinput(lang("Unknown account: %1 !!!",$this->account),15); |
@@ -19,7 +19,6 @@ discard block |
||
19 | 19 | * Constructor |
20 | 20 | * |
21 | 21 | * @param string/int/array $account account name or id (!$account to add a new account), or array with all parameters |
22 | - * @param array $set=null array with all data to change |
|
23 | 22 | */ |
24 | 23 | function __construct($account,$set=null) |
25 | 24 | { |
@@ -36,7 +35,7 @@ discard block |
||
36 | 35 | /** |
37 | 36 | * change the password of a given user |
38 | 37 | * |
39 | - * @param boolean $check_only=false only run the checks (and throw the exceptions), but not the command itself |
|
38 | + * @param boolean $check_only only run the checks (and throw the exceptions), but not the command itself |
|
40 | 39 | * @return string success message |
41 | 40 | * @throws egw_exception_no_admin |
42 | 41 | * @throws egw_exception_wrong_userinput(lang("Unknown account: %1 !!!",$this->account),15); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * Showing the command history and the scheduled commands |
56 | 56 | * |
57 | - * @param array $content=null |
|
57 | + * @param array $content |
|
58 | 58 | */ |
59 | 59 | static function index(array $content=null) |
60 | 60 | { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | /** |
109 | 109 | * Showing remote administration instances |
110 | 110 | * |
111 | - * @param array $content=null |
|
111 | + * @param array $content |
|
112 | 112 | */ |
113 | 113 | static function remotes(array $content=null) |
114 | 114 | { |
@@ -127,8 +127,7 @@ |
||
127 | 127 | /** |
128 | 128 | * Show files shared |
129 | 129 | * |
130 | - * @param array $content=null |
|
131 | - * @param string $msg='' |
|
130 | + * @param array $content |
|
132 | 131 | */ |
133 | 132 | public function index(array $content=null) |
134 | 133 | { |
@@ -614,7 +614,7 @@ discard block |
||
614 | 614 | * Validate and create a new content type |
615 | 615 | * |
616 | 616 | * @param array $content |
617 | - * @return string|boolean New type ID, or false for error |
|
617 | + * @return false|string New type ID, or false for error |
|
618 | 618 | */ |
619 | 619 | function create_content_type(&$content) |
620 | 620 | { |
@@ -671,7 +671,7 @@ discard block |
||
671 | 671 | * |
672 | 672 | * @deprecated use egw_customfields::get() direct, no need to instanciate this UI class |
673 | 673 | * @author Cornelius Weiss |
674 | - * @param boolean $all_private_too=false should all the private fields be returned too |
|
674 | + * @param boolean $all_private_too should all the private fields be returned too |
|
675 | 675 | * @return array with customfields |
676 | 676 | */ |
677 | 677 | function get_customfields($all_private_too=false) |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * dir working on just the eGW VFS: returns directory object |
166 | 166 | * |
167 | 167 | * @param string $path filename with absolute path in the eGW VFS |
168 | - * @return Directory |
|
168 | + * @return \Directory |
|
169 | 169 | */ |
170 | 170 | static function dir($path) |
171 | 171 | { |
@@ -1313,7 +1313,7 @@ discard block |
||
1313 | 1313 | * Also works around PHP under Windows returning dirname('/something') === '\\', which is NOT understood by EGroupware's VFS! |
1314 | 1314 | * |
1315 | 1315 | * @param string $_url path or url |
1316 | - * @return string|boolean parent or false if there's none ($path == '/') |
|
1316 | + * @return false|string parent or false if there's none ($path == '/') |
|
1317 | 1317 | */ |
1318 | 1318 | static function dirname($_url) |
1319 | 1319 | { |
@@ -1431,7 +1431,7 @@ discard block |
||
1431 | 1431 | * @param array $_files List of files to include in the zip |
1432 | 1432 | * @param string $name optional Zip file name. If not provided, it will be determined automatically from the files |
1433 | 1433 | * |
1434 | - * @return undefined |
|
1434 | + * @return string|null |
|
1435 | 1435 | */ |
1436 | 1436 | public static function download_zip(Array $_files, $name = false) |
1437 | 1437 | { |
@@ -1741,7 +1741,7 @@ discard block |
||
1741 | 1741 | * checkLock() helper |
1742 | 1742 | * |
1743 | 1743 | * @param string resource path to check for locks |
1744 | - * @return array|boolean false if there's no lock, else array with lock info |
|
1744 | + * @return string false if there's no lock, else array with lock info |
|
1745 | 1745 | */ |
1746 | 1746 | static function checkLock($path) |
1747 | 1747 | { |
@@ -1957,7 +1957,7 @@ discard block |
||
1957 | 1957 | /** |
1958 | 1958 | * Copies the files given in $src to $dst. |
1959 | 1959 | * |
1960 | - * @param array $src contains the source file |
|
1960 | + * @param string[] $src contains the source file |
|
1961 | 1961 | * @param string $dst is the destination directory |
1962 | 1962 | * @param int& $errs =null on return number of errors happened |
1963 | 1963 | * @param array& $copied =null on return files copied |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | * |
516 | 516 | * If you have cached data in your stream but not yet stored it into the underlying storage, you should do so now. |
517 | 517 | * |
518 | - * @return booelan TRUE if the cached data was successfully stored (or if there was no data to store), or FALSE if the data could not be stored. |
|
518 | + * @return boolean TRUE if the cached data was successfully stored (or if there was no data to store), or FALSE if the data could not be stored. |
|
519 | 519 | */ |
520 | 520 | function stream_flush ( ) |
521 | 521 | { |
@@ -556,6 +556,7 @@ discard block |
||
556 | 556 | * In order for the appropriate error message to be returned, do not define this method if your wrapper does not support unlinking! |
557 | 557 | * |
558 | 558 | * @param string $url |
559 | + * @param integer $parent_stat |
|
559 | 560 | * @return boolean TRUE on success or FALSE on failure |
560 | 561 | */ |
561 | 562 | static function unlink ( $url, $parent_stat=null ) |
@@ -684,6 +685,8 @@ discard block |
||
684 | 685 | |
685 | 686 | /** |
686 | 687 | * due to problems with recursive directory creation, we have our own here |
688 | + * @param false|string $pathname |
|
689 | + * @param integer $mode |
|
687 | 690 | */ |
688 | 691 | protected static function mkdir_recursive($pathname, $mode, $depth=0) |
689 | 692 | { |
@@ -1014,7 +1017,7 @@ discard block |
||
1014 | 1017 | * |
1015 | 1018 | * @param string $url URL that was passed to opendir() and that this object is expected to explore. |
1016 | 1019 | * @param int $options |
1017 | - * @return booelan |
|
1020 | + * @return boolean |
|
1018 | 1021 | */ |
1019 | 1022 | function dir_opendir ( $url, $options ) |
1020 | 1023 | { |
@@ -1717,7 +1720,7 @@ discard block |
||
1717 | 1720 | /** |
1718 | 1721 | * Just a little abstration 'til I know how to organise stuff like that with PDO |
1719 | 1722 | * |
1720 | - * @param mixed $time |
|
1723 | + * @param integer $time |
|
1721 | 1724 | * @return string Y-m-d H:i:s |
1722 | 1725 | */ |
1723 | 1726 | static protected function _pdo_timestamp($time) |
@@ -1802,6 +1805,7 @@ discard block |
||
1802 | 1805 | * Replace the password of an url with '...' for error messages |
1803 | 1806 | * |
1804 | 1807 | * @param string &$url |
1808 | + * @param string $url |
|
1805 | 1809 | */ |
1806 | 1810 | static protected function _remove_password(&$url) |
1807 | 1811 | { |
@@ -1817,7 +1821,7 @@ discard block |
||
1817 | 1821 | /** |
1818 | 1822 | * Get storage mode from url (get parameter 'storage', eg. ?storage=db) |
1819 | 1823 | * |
1820 | - * @param string|array $url complete url or array of url-parts from parse_url |
|
1824 | + * @param string $url complete url or array of url-parts from parse_url |
|
1821 | 1825 | * @return int self::STORE2FS or self::STORE2DB |
1822 | 1826 | */ |
1823 | 1827 | static function url2operation($url) |
@@ -171,8 +171,8 @@ discard block |
||
171 | 171 | * will work OK apart from that. |
172 | 172 | * |
173 | 173 | * @param string $id folder id |
174 | - * @param int $cutoffdate=null |
|
175 | - * @param array $not_uids=null uids NOT to return for meeting requests |
|
174 | + * @param int $cutoffdate |
|
175 | + * @param array $not_uids uids NOT to return for meeting requests |
|
176 | 176 | * @return array |
177 | 177 | */ |
178 | 178 | function GetMessageList($id, $cutoffdate=NULL, array $not_uids=null) |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | * List all meeting requests / invitations of user NOT having a UID in $not_uids (already received by email) |
224 | 224 | * |
225 | 225 | * @param array $not_uids |
226 | - * @param int $cutoffdate=null |
|
226 | + * @param int $cutoffdate |
|
227 | 227 | * @return array |
228 | 228 | */ |
229 | 229 | function GetMeetingRequests(array $not_uids, $cutoffdate=NULL) |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | * @param int $truncsize |
267 | 267 | * @param int $bodypreference |
268 | 268 | * @param $optionbodypreference |
269 | - * @param bool $mimesupport |
|
269 | + * @param integer $mimesupport |
|
270 | 270 | * @return SyncMail |
271 | 271 | */ |
272 | 272 | function GetMeetingRequest($id, $truncsize, $bodypreference=false, $optionbodypreference=false, $mimesupport = 0) |
@@ -607,7 +607,6 @@ discard block |
||
607 | 607 | * |
608 | 608 | * @param SyncAppointment $message |
609 | 609 | * @param int $account |
610 | - * @param array $event=array() |
|
611 | 610 | * @return array |
612 | 611 | */ |
613 | 612 | private function message2event(SyncAppointment $message, $account, $event=array()) |
@@ -855,7 +854,7 @@ discard block |
||
855 | 854 | * @param string $displayname => new folder name (to be created, or to be renamed to) |
856 | 855 | * @param string $type folder type, ignored in IMAP |
857 | 856 | * |
858 | - * @return array|boolean stat array or false on error |
|
857 | + * @return boolean stat array or false on error |
|
859 | 858 | */ |
860 | 859 | public function ChangeFolder($id, $oldid, $displayname, $type) |
861 | 860 | { |
@@ -870,7 +869,7 @@ discard block |
||
870 | 869 | * @param string $id of the folder to delete |
871 | 870 | * |
872 | 871 | * @return |
873 | - * @TODO check what is to be returned |
|
872 | + boolean @TODO check what is to be returned |
|
874 | 873 | */ |
875 | 874 | public function DeleteFolder($parentid, $id) |
876 | 875 | { |
@@ -958,9 +957,9 @@ discard block |
||
958 | 957 | * @param string $folderid |
959 | 958 | * @param string|array $id cal_id or event array (used internally) |
960 | 959 | * @param int $truncsize |
961 | - * @param int|bool $bodypreference=false |
|
960 | + * @param int|bool $bodypreference |
|
962 | 961 | * @param $optionbodypreference=false |
963 | - * @param int $mimesupport=0 |
|
962 | + * @param int $mimesupport |
|
964 | 963 | * @return SyncAppointment|boolean false on error |
965 | 964 | */ |
966 | 965 | public function GetMessage($folderid, $id, $truncsize, $bodypreference=false, $optionbodypreference=false, $mimesupport = 0) |
@@ -1303,7 +1302,6 @@ discard block |
||
1303 | 1302 | * matching timezones for incomming timezone data. iPhone seems not to care on receiving about the above. |
1304 | 1303 | * |
1305 | 1304 | * @param string|DateTimeZone $tz timezone, timezone name (eg. "Europe/Berlin") or ical with VTIMEZONE |
1306 | - * @param int|string|DateTime $ts=null time for which active sync timezone data is requested, default current time |
|
1307 | 1305 | * @return array with values for keys: |
1308 | 1306 | * - "bias": timezone offset from UTC in minutes for NO DST |
1309 | 1307 | * - "dstendmonth", "dstendday", "dstendweek", "dstendhour", "dstendminute", "dstendsecond", "dstendmillis" |
@@ -1468,7 +1466,7 @@ discard block |
||
1468 | 1466 | * ) |
1469 | 1467 | * |
1470 | 1468 | * @param string|array $ical lines of ical file |
1471 | - * @param string $component=null |
|
1469 | + * @param string $component |
|
1472 | 1470 | * @return array with parsed ical components |
1473 | 1471 | */ |
1474 | 1472 | static public function ical2array(&$ical,$component=null) |
@@ -1542,6 +1540,7 @@ discard block |
||
1542 | 1540 | * Unpack timezone info from Sync |
1543 | 1541 | * |
1544 | 1542 | * copied from backend/ics.php |
1543 | + * @param string $data |
|
1545 | 1544 | */ |
1546 | 1545 | static public function _getTZFromSyncBlob($data) |
1547 | 1546 | { |
@@ -638,8 +638,8 @@ discard block |
||
638 | 638 | * or an ExecMethod callback with parameters $id,$event |
639 | 639 | * |
640 | 640 | * @param string $app |
641 | - * @param int|string $id |
|
642 | - * @return string |
|
641 | + * @param string $id |
|
642 | + * @return boolean |
|
643 | 643 | */ |
644 | 644 | static function integration_get_private($app,$id,$event) |
645 | 645 | { |
@@ -768,7 +768,7 @@ discard block |
||
768 | 768 | * This methods operates in usertime, while $this->config['horizont'] is in servertime! |
769 | 769 | * |
770 | 770 | * @param array $event |
771 | - * @param mixed $start =0 minimum start-time for new recurrences or !$start = since the start of the event |
|
771 | + * @param integer $start =0 minimum start-time for new recurrences or !$start = since the start of the event |
|
772 | 772 | */ |
773 | 773 | function set_recurrences($event,$start=0) |
774 | 774 | { |
@@ -989,10 +989,9 @@ discard block |
||
989 | 989 | * Recurrences get calculated by rrule iterator implemented in calendar_rrule class. |
990 | 990 | * |
991 | 991 | * @param array $event repeating event whos repetions should be inserted |
992 | - * @param mixed $start start-date |
|
992 | + * @param mixed $_start start-date |
|
993 | 993 | * @param mixed $end end-date |
994 | 994 | * @param array $events where the repetions get inserted |
995 | - * @param array $recur_exceptions with date (in Ymd) as key (and True as values), seems not to be used anymore |
|
996 | 995 | */ |
997 | 996 | function insert_all_recurrences($event,$_start,$end,&$events) |
998 | 997 | { |
@@ -1146,7 +1145,7 @@ discard block |
||
1146 | 1145 | * even if you have no general read-grant from that user. |
1147 | 1146 | * |
1148 | 1147 | * @param int $needed necessary ACL right: EGW_ACL_{READ|EDIT|DELETE} |
1149 | - * @param mixed $event event as array or the event-id or 0 for a general check |
|
1148 | + * @param integer $event event as array or the event-id or 0 for a general check |
|
1150 | 1149 | * @param int $other uid to check (if event==0) or 0 to check against $this->user |
1151 | 1150 | * @param string $date_format ='ts' date-format used for reading: 'ts'=timestamp, 'array'=array, 'string'=iso8601 string for xmlrpc |
1152 | 1151 | * @param mixed $date_to_read =null date used for reading, internal param for the caching |
@@ -1319,8 +1318,6 @@ discard block |
||
1319 | 1318 | * @param string $msg message with parameters/variables like lang(), eg. '%1' |
1320 | 1319 | * @param boolean $backtrace =True include a function-backtrace, default True=On |
1321 | 1320 | * should only be set to False=Off, if your code ensures a call with backtrace=On was made before !!! |
1322 | - * @param mixed $param a variable number of parameters, to be inserted in $msg |
|
1323 | - * arrays get serialized with print_r() ! |
|
1324 | 1321 | */ |
1325 | 1322 | static function debug_message($msg,$backtrace=True) |
1326 | 1323 | { |
@@ -1384,7 +1381,7 @@ discard block |
||
1384 | 1381 | * Formats one or two dates (range) as long date (full monthname), optionaly with a time |
1385 | 1382 | * |
1386 | 1383 | * @param mixed $_first first date |
1387 | - * @param mixed $last =0 last date if != 0 (default) |
|
1384 | + * @param integer $last =0 last date if != 0 (default) |
|
1388 | 1385 | * @param boolean $display_time =false should a time be displayed too |
1389 | 1386 | * @param boolean $display_day =false should a day-name prefix the date, eg. monday June 20, 2006 |
1390 | 1387 | * @return string with formated date |
@@ -1859,7 +1856,6 @@ discard block |
||
1859 | 1856 | * |
1860 | 1857 | * Is called as hook to participate in the linking |
1861 | 1858 | * |
1862 | - * @param int|array $entry int cal_id or array with event |
|
1863 | 1859 | * @param string|boolean string with title, null if not found or false if not read perms |
1864 | 1860 | */ |
1865 | 1861 | function link_title($event) |
@@ -2053,7 +2049,7 @@ discard block |
||
2053 | 2049 | * |
2054 | 2050 | * @param array|int|string $entry array with event or cal_id, or cal_id:recur_date for virtual exceptions |
2055 | 2051 | * @param string &$schedule_tag=null on return schedule-tag (egw_cal.cal_id:egw_cal.cal_etag, no participant modifications!) |
2056 | - * @return string|boolean string with etag or false |
|
2052 | + * @return string string with etag or false |
|
2057 | 2053 | */ |
2058 | 2054 | function get_etag($entry, &$schedule_tag=null) |
2059 | 2055 | { |
@@ -2093,7 +2089,6 @@ discard block |
||
2093 | 2089 | * Hook for infolog to set some extra data and links |
2094 | 2090 | * |
2095 | 2091 | * @param array $data event-array preset by infolog plus |
2096 | - * @param int $data[id] cal_id |
|
2097 | 2092 | * @return array with key => value pairs to set in new event and link_app/link_id arrays |
2098 | 2093 | */ |
2099 | 2094 | function infolog_set($data) |
@@ -2145,7 +2140,6 @@ discard block |
||
2145 | 2140 | * Hook for timesheet to set some extra data and links |
2146 | 2141 | * |
2147 | 2142 | * @param array $data |
2148 | - * @param int $data[id] cal_id:recurrence |
|
2149 | 2143 | * @return array with key => value pairs to set in new timesheet and link_app/link_id arrays |
2150 | 2144 | */ |
2151 | 2145 | function timesheet_set($data) |