@@ -45,6 +45,7 @@ discard block |
||
45 | 45 | * This method is called when the stream is closed, using fclose(). |
46 | 46 | * |
47 | 47 | * You must release any resources that were locked or allocated by the stream. |
48 | + * @return boolean |
|
48 | 49 | */ |
49 | 50 | function stream_close ( ); |
50 | 51 | |
@@ -57,7 +58,7 @@ discard block |
||
57 | 58 | * You must also update the read/write position of the stream by the number of bytes that were successfully read. |
58 | 59 | * |
59 | 60 | * @param int $count |
60 | - * @return string/false up to count bytes read or false on EOF |
|
61 | + * @return string|false up to count bytes read or false on EOF |
|
61 | 62 | */ |
62 | 63 | function stream_read ( $count ); |
63 | 64 | |
@@ -114,7 +115,7 @@ discard block |
||
114 | 115 | * |
115 | 116 | * If you have cached data in your stream but not yet stored it into the underlying storage, you should do so now. |
116 | 117 | * |
117 | - * @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. |
|
118 | + * @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. |
|
118 | 119 | */ |
119 | 120 | function stream_flush ( ); |
120 | 121 | |
@@ -188,7 +189,7 @@ discard block |
||
188 | 189 | * This method is called immediately when your stream object is created for examining directory contents with opendir(). |
189 | 190 | * |
190 | 191 | * @param string $path URL that was passed to opendir() and that this object is expected to explore. |
191 | - * @return booelan |
|
192 | + * @return boolean |
|
192 | 193 | */ |
193 | 194 | function dir_opendir ( $path, $options ); |
194 | 195 |
@@ -94,7 +94,6 @@ |
||
94 | 94 | /** |
95 | 95 | * imports entries according to given definition object. |
96 | 96 | * @param resource $_stream |
97 | - * @param string $_charset |
|
98 | 97 | * @param definition $_definition |
99 | 98 | */ |
100 | 99 | public function import( $_stream, definition $_definition ) { |
@@ -519,6 +519,7 @@ discard block |
||
519 | 519 | * @param array $new_event Event after the change |
520 | 520 | * @param string $role we treat CHAIR like event owners |
521 | 521 | * @param string $status of current user |
522 | + * @param integer $msg_type |
|
522 | 523 | * @return boolean true = update requested, false otherwise |
523 | 524 | */ |
524 | 525 | public static function update_requested($userid, $part_prefs, &$msg_type, $old_event ,$new_event, $role, $status=null) |
@@ -594,7 +595,7 @@ discard block |
||
594 | 595 | /** |
595 | 596 | * Check calendar prefs, if a given user (integer account_id) or email (user or externals) should get notified |
596 | 597 | * |
597 | - * @param int|string $user_or_email |
|
598 | + * @param string $user_or_email |
|
598 | 599 | * @param string $ical_method ='REQUEST' |
599 | 600 | * @param string $role ='REQ-PARTICIPANT' |
600 | 601 | * @return boolean true if user requested to be notified, false if not |
@@ -645,8 +646,7 @@ discard block |
||
645 | 646 | * Get iCal/iMip method from internal nummeric msg-type plus optional notification message and verbose name |
646 | 647 | * |
647 | 648 | * @param int $msg_type see MSG_* defines |
648 | - * @param string& $action=null on return verbose name |
|
649 | - * @param string& $msg=null on return notification message |
|
649 | + * @param string& $action on return verbose name |
|
650 | 650 | */ |
651 | 651 | function msg_type2ical_method($msg_type, &$action=null, &$msg=null) |
652 | 652 | { |
@@ -1011,6 +1011,9 @@ discard block |
||
1011 | 1011 | return true; |
1012 | 1012 | } |
1013 | 1013 | |
1014 | + /** |
|
1015 | + * @param integer $added |
|
1016 | + */ |
|
1014 | 1017 | function get_update_message($event,$added) |
1015 | 1018 | { |
1016 | 1019 | $nul = null; |
@@ -1300,8 +1303,8 @@ discard block |
||
1300 | 1303 | * |
1301 | 1304 | * @param int $right self::CAT_ACL_{ADD|STATUS} |
1302 | 1305 | * @param int|array $event |
1303 | - * @return boolean true if use has the right, false if not |
|
1304 | - * @return boolean false=access denied because of cat acl, true access granted because of cat acl, |
|
1306 | + * @return null|boolean true if use has the right, false if not |
|
1307 | + * @return null|boolean false=access denied because of cat acl, true access granted because of cat acl, |
|
1305 | 1308 | * null = cat has no acl |
1306 | 1309 | */ |
1307 | 1310 | function check_cat_acl($right,$event) |
@@ -1386,6 +1389,8 @@ discard block |
||
1386 | 1389 | * Check if current user has a given right on a category (if it's restricted!) |
1387 | 1390 | * |
1388 | 1391 | * @param int $cat_id |
1392 | + * @param integer $right |
|
1393 | + * @param integer $user |
|
1389 | 1394 | * @return boolean false=access denied because of cat acl, true access granted because of cat acl, |
1390 | 1395 | * null = cat has no acl |
1391 | 1396 | */ |
@@ -1647,7 +1652,7 @@ discard block |
||
1647 | 1652 | * @param string $action |
1648 | 1653 | * @param array $event_arr |
1649 | 1654 | * @param array $disinvited |
1650 | - * @return array |
|
1655 | + * @return string |
|
1651 | 1656 | */ |
1652 | 1657 | function _get_event_details($event,$action,&$event_arr,$disinvited=array()) |
1653 | 1658 | { |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | * |
316 | 316 | * @param string $path |
317 | 317 | * @param array $filter |
318 | - * @param array|boolean $start =false false=return all or array(start,num) |
|
318 | + * @param integer[] $start =false false=return all or array(start,num) |
|
319 | 319 | * @return array with "files" array with values for keys path and props |
320 | 320 | */ |
321 | 321 | function propfind_callback($path,array $filter,$start=false) |
@@ -620,7 +620,7 @@ discard block |
||
620 | 620 | * @param array &$options |
621 | 621 | * @param int $id |
622 | 622 | * @param int $user =null account_id |
623 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
623 | + * @return string|boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
624 | 624 | */ |
625 | 625 | function get(&$options,$id,$user=null) |
626 | 626 | { |
@@ -793,7 +793,7 @@ discard block |
||
793 | 793 | * Check if $user is a participant of given $event incl. group-invitations |
794 | 794 | * |
795 | 795 | * @param array $event |
796 | - * @param int|string $user |
|
796 | + * @param integer $user |
|
797 | 797 | * @return boolean |
798 | 798 | */ |
799 | 799 | public static function isParticipant(array $event, $user) |
@@ -810,7 +810,7 @@ discard block |
||
810 | 810 | * @param int $id |
811 | 811 | * @param int $user =null account_id of owner, default null |
812 | 812 | * @param string $prefix =null user prefix from path (eg. /ralf from /ralf/addressbook) |
813 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
813 | + * @return string|boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
814 | 814 | */ |
815 | 815 | function put(&$options,$id,$user=null,$prefix=null) |
816 | 816 | { |
@@ -1038,7 +1038,7 @@ discard block |
||
1038 | 1038 | * @param array &$options |
1039 | 1039 | * @param int $id |
1040 | 1040 | * @param int $user =null account_id of owner, default null |
1041 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1041 | + * @return string|boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1042 | 1042 | */ |
1043 | 1043 | function post(&$options,$id,$user=null) |
1044 | 1044 | { |
@@ -1112,7 +1112,7 @@ discard block |
||
1112 | 1112 | * @param string $charset of ical |
1113 | 1113 | * @param int $user account_id of owner |
1114 | 1114 | * @param array &$options |
1115 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1115 | + * @return string|boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1116 | 1116 | */ |
1117 | 1117 | protected function outbox_freebusy_request($ical, $charset, $user, array &$options) |
1118 | 1118 | { |
@@ -1187,7 +1187,7 @@ discard block |
||
1187 | 1187 | * @param string $path |
1188 | 1188 | * @param array $options |
1189 | 1189 | * @param int $user account_id |
1190 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1190 | + * @return string|null boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1191 | 1191 | */ |
1192 | 1192 | function free_busy_report($path,$options,$user) |
1193 | 1193 | { |
@@ -1416,7 +1416,7 @@ discard block |
||
1416 | 1416 | /** |
1417 | 1417 | * Query ctag for calendar |
1418 | 1418 | * |
1419 | - * @return string |
|
1419 | + * @return integer |
|
1420 | 1420 | */ |
1421 | 1421 | public function getctag($path,$user) |
1422 | 1422 | { |
@@ -1432,7 +1432,7 @@ discard block |
||
1432 | 1432 | * |
1433 | 1433 | * @param array|int $entry array with event or cal_id |
1434 | 1434 | * @param string $schedule_tag =null on return schedule-tag |
1435 | - * @return string|boolean string with etag or false |
|
1435 | + * @return string string with etag or false |
|
1436 | 1436 | */ |
1437 | 1437 | function get_etag($entry, &$schedule_tag=null) |
1438 | 1438 | { |
@@ -1449,7 +1449,7 @@ discard block |
||
1449 | 1449 | * |
1450 | 1450 | * @param int|array $entry id or array of new created entry |
1451 | 1451 | * @param string $path |
1452 | - * @param int|string $retval |
|
1452 | + * @param string|boolean $retval |
|
1453 | 1453 | * @param boolean $path_attr_is_name =true true: path_attr is ca(l|rd)dav_name, false: id (GroupDAV needs Location header) |
1454 | 1454 | */ |
1455 | 1455 | function put_response_headers($entry, $path, $retval, $path_attr_is_name=true) |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * @param importepport_iface_egw_record record The egw_record object being imported |
75 | 75 | * @param importexport_iface_import_record import_csv Import object contains current state |
76 | 76 | * |
77 | - * @return boolean success |
|
77 | + * @return null|boolean success |
|
78 | 78 | */ |
79 | 79 | public function import_record(\importexport_iface_egw_record &$record, &$import_csv) |
80 | 80 | { |
@@ -254,7 +254,6 @@ discard block |
||
254 | 254 | * perform the required action |
255 | 255 | * |
256 | 256 | * @param int $_action one of $this->actions |
257 | - * @param array $_data record data for the action |
|
258 | 257 | * @return bool success or not |
259 | 258 | */ |
260 | 259 | protected function action ( $_action, importexport_iface_egw_record &$record, $record_num = 0 ) |
@@ -343,7 +342,7 @@ discard block |
||
343 | 342 | /** |
344 | 343 | * Alter a row for preview to show multiple participants instead of Array |
345 | 344 | * |
346 | - * @param egw_record $row_entry |
|
345 | + * @param importexport_iface_egw_record $row_entry |
|
347 | 346 | */ |
348 | 347 | protected function row_preview(importexport_iface_egw_record &$row_entry) |
349 | 348 | { |
@@ -113,8 +113,6 @@ discard block |
||
113 | 113 | * @param array $ids array with contact id(s) |
114 | 114 | * @param string &$err error-message on error |
115 | 115 | * @param string $mimetype mimetype of complete document, eg. text/*, application/vnd.oasis.opendocument.text, application/rtf |
116 | - * @param array $fix=null regular expression => replacement pairs eg. to fix garbled placeholders |
|
117 | - * @param string $charset=null charset to override default set by mimetype or export charset |
|
118 | 116 | * @return string|boolean merged document or false on error |
119 | 117 | */ |
120 | 118 | function merge_string($content,$ids,$err,$mimetype,$fix) |
@@ -234,7 +232,6 @@ discard block |
||
234 | 232 | * Return replacements for the calendar |
235 | 233 | * |
236 | 234 | * @param int|array $id event-id or array with id/recur_date, or array with event info |
237 | - * @param boolean $last_event_too=false also include information about the last event |
|
238 | 235 | * @return array |
239 | 236 | */ |
240 | 237 | public function calendar_replacements($id,$prefix = '', &$content = '') |
@@ -204,6 +204,7 @@ |
||
204 | 204 | * |
205 | 205 | * @param boolean &$updated=null on return true if update was neccessary, false if tz's were already up to date |
206 | 206 | * @param string $file ='calendar/setup/timezones.sqlite' filename relative to EGW_SERVER_ROOT |
207 | + * @param boolean $updated |
|
207 | 208 | * @return string message about update |
208 | 209 | * @throws Api\Exception\WrongParameter if $file is not readable or wrong format/version |
209 | 210 | * @throws Api\Exception\WrongUserinput if no PDO sqlite support |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * Fix depricated stuff in a given file |
24 | 24 | * |
25 | 25 | * @param string $file filename |
26 | - * @param boolean $replace_file=false replace existing file if modifications are necessary, otherwise .php53 file is created |
|
26 | + * @param boolean $replace_file replace existing file if modifications are necessary, otherwise .php53 file is created |
|
27 | 27 | * @return boolean false on error |
28 | 28 | */ |
29 | 29 | function fix_depricated($file,$replace_file=false) |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * Loop recursive through directory and call fix_depricated for each php file |
147 | 147 | * |
148 | 148 | * @param string $dir |
149 | - * @param boolean $replace_file=false replace existing file if modifications are necessary, otherwise .php53 file is created |
|
149 | + * @param boolean $replace_file replace existing file if modifications are necessary, otherwise .php53 file is created |
|
150 | 150 | * @return boolean false on error |
151 | 151 | */ |
152 | 152 | function fix_depricated_recursive($dir,$replace_file=false) |
@@ -174,7 +174,6 @@ discard block |
||
174 | 174 | /** |
175 | 175 | * Give usage |
176 | 176 | * |
177 | - * @param string $error=null |
|
178 | 177 | */ |
179 | 178 | function usage($error=null) |
180 | 179 | { |
@@ -464,6 +464,7 @@ discard block |
||
464 | 464 | * |
465 | 465 | * @param string $name |
466 | 466 | * @param string $value =null value to use, default $config[$name] |
467 | + * @return string |
|
467 | 468 | */ |
468 | 469 | function config_translate($name, $value=null) |
469 | 470 | { |
@@ -1194,7 +1195,7 @@ discard block |
||
1194 | 1195 | * Runs given shell command, exists with error-code after echoing the output of the failed command (if not already running verbose) |
1195 | 1196 | * |
1196 | 1197 | * @param string $cmd |
1197 | - * @param array& $output=null $output of command, only if !$verbose !!! |
|
1198 | + * @param array& $output $output of command, only if !$verbose !!! |
|
1198 | 1199 | * @param int|array $no_bailout =null exit code(s) to NOT bail out |
1199 | 1200 | * @return int exit code of $cmd |
1200 | 1201 | */ |