@@ -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 = '') |
@@ -211,23 +211,11 @@ discard block |
||
211 | 211 | * @param int $start startdate of the search/list (servertime) |
212 | 212 | * @param int $end enddate of the search/list (servertime) |
213 | 213 | * @param int|array $users user-id or array of user-id's, !$users means all entries regardless of users |
214 | - * @param int|array $cat_id =0 mixed category-id or array of cat-id's (incl. all sub-categories), default 0 = all |
|
214 | + * @param integer $cat_id =0 mixed category-id or array of cat-id's (incl. all sub-categories), default 0 = all |
|
215 | 215 | * @param string $filter ='default' string filter-name: all (not rejected), accepted, unknown, tentative, rejected or everything (incl. rejected, deleted) |
216 | 216 | * @param int|boolean $offset =False offset for a limited query or False (default) |
217 | 217 | * @param int $num_rows =0 number of rows to return if offset set, default 0 = use default in user prefs |
218 | 218 | * @param array $params =array() |
219 | - * @param string|array $params['query'] string: pattern so search for, if unset or empty all matching entries are returned (no search) |
|
220 | - * Please Note: a search never returns repeating events more then once AND does not honor start+end date !!! |
|
221 | - * array: everything is directly used as $where |
|
222 | - * @param string $params['order'] ='cal_start' column-names plus optional DESC|ASC separted by comma |
|
223 | - * @param string $params['sql_filter'] sql to be and'ed into query (fully quoted) |
|
224 | - * @param string|array $params['cols'] what to select, default "$this->repeats_table.*,$this->cal_table.*,cal_start,cal_end,cal_recur_date", |
|
225 | - * if specified and not false an iterator for the rows is returned |
|
226 | - * @param string $params['append'] SQL to append to the query before $order, eg. for a GROUP BY clause |
|
227 | - * @param array $params['cfs'] custom fields to query, null = none, array() = all, or array with cfs names |
|
228 | - * @param array $params['users'] raw parameter as passed to calendar_bo::search() no memberships resolved! |
|
229 | - * @param boolean $params['master_only'] =false, true only take into account participants/status from master (for AS) |
|
230 | - * @param boolean $params['enum_recuring'] =true enumerate recuring events |
|
231 | 219 | * @param int $remove_rejected_by_user =null add join to remove entry, if given user has rejected it |
232 | 220 | * @return array of events |
233 | 221 | */ |
@@ -594,7 +582,7 @@ discard block |
||
594 | 582 | /** |
595 | 583 | * generate SQL to filter after a given category (incl. subcategories) |
596 | 584 | * |
597 | - * @param array|int $cat_id cat-id or array of cat-ids, or !$cat_id for none |
|
585 | + * @param integer $cat_id cat-id or array of cat-ids, or !$cat_id for none |
|
598 | 586 | * @return string SQL to include in the query |
599 | 587 | */ |
600 | 588 | function cat_filter($cat_id) |
@@ -682,24 +670,11 @@ discard block |
||
682 | 670 | * @param int $start startdate of the search/list (servertime) |
683 | 671 | * @param int $end enddate of the search/list (servertime) |
684 | 672 | * @param int|array $users user-id or array of user-id's, !$users means all entries regardless of users |
685 | - * @param int|array $cat_id =0 mixed category-id or array of cat-id's (incl. all sub-categories), default 0 = all |
|
673 | + * @param integer $cat_id =0 mixed category-id or array of cat-id's (incl. all sub-categories), default 0 = all |
|
686 | 674 | * @param string $filter ='all' string filter-name: all (not rejected), accepted, unknown, tentative, rejected or everything (incl. rejected, deleted) |
687 | 675 | * @param int|boolean $offset =False offset for a limited query or False (default) |
688 | 676 | * @param int $num_rows =0 number of rows to return if offset set, default 0 = use default in user prefs |
689 | 677 | * @param array $params =array() |
690 | - * @param string|array $params['query'] string: pattern so search for, if unset or empty all matching entries are returned (no search) |
|
691 | - * Please Note: a search never returns repeating events more then once AND does not honor start+end date !!! |
|
692 | - * array: everything is directly used as $where |
|
693 | - * @param string $params['order'] ='cal_start' column-names plus optional DESC|ASC separted by comma |
|
694 | - * @param string|array $params['sql_filter'] sql to be and'ed into query (fully quoted), or usual filter array |
|
695 | - * @param string|array $params['cols'] what to select, default "$this->repeats_table.*,$this->cal_table.*,cal_start,cal_end,cal_recur_date", |
|
696 | - * if specified and not false an iterator for the rows is returned |
|
697 | - * @param string $params['append'] SQL to append to the query before $order, eg. for a GROUP BY clause |
|
698 | - * @param array $params['cfs'] custom fields to query, null = none, array() = all, or array with cfs names |
|
699 | - * @param array $params['users'] raw parameter as passed to calendar_bo::search() no memberships resolved! |
|
700 | - * @param boolean $params['master_only'] =false, true only take into account participants/status from master (for AS) |
|
701 | - * @param boolean $params['enum_recuring'] =true enumerate recuring events |
|
702 | - * @param boolean $params['use_so_events'] =false, true return result of new $this->events() |
|
703 | 678 | * @param int $remove_rejected_by_user =null add join to remove entry, if given user has rejected it |
704 | 679 | * @return Iterator|array of events |
705 | 680 | */ |
@@ -1140,11 +1115,11 @@ discard block |
||
1140 | 1115 | * Ask other apps if they want to participate in calendar search / display |
1141 | 1116 | * |
1142 | 1117 | * @param &$selects parts of union query |
1143 | - * @param $start see search() |
|
1144 | - * @param $end |
|
1118 | + * @param integer $start see search() |
|
1119 | + * @param integer $end |
|
1145 | 1120 | * @param $users as used in calendar_so ($users_raw plus all members and memberships added by calendar_bo) |
1146 | - * @param $cat_id |
|
1147 | - * @param $filter |
|
1121 | + * @param integer $cat_id |
|
1122 | + * @param string $filter |
|
1148 | 1123 | * @param $query |
1149 | 1124 | * @param $users_raw as passed to calendar_bo::search (no members and memberships added) |
1150 | 1125 | */ |
@@ -1312,6 +1287,7 @@ discard block |
||
1312 | 1287 | * @param int &$set_recurrences_start=0 on return: time from which on the recurrences should be rebuilt, default 0=all |
1313 | 1288 | * @param int $change_since =0 time from which on the repetitions should be changed, default 0=all |
1314 | 1289 | * @param int &$etag etag=null etag to check or null, on return new etag |
1290 | + * @param boolean $set_recurrences |
|
1315 | 1291 | * @return boolean|int false on error, 0 if etag does not match, cal_id otherwise |
1316 | 1292 | */ |
1317 | 1293 | function save($event,&$set_recurrences,&$set_recurrences_start=0,$change_since=0,&$etag=null) |
@@ -1722,7 +1698,7 @@ discard block |
||
1722 | 1698 | * @param int $cal_id |
1723 | 1699 | * @param int $start new starttime |
1724 | 1700 | * @param int $end new endtime |
1725 | - * @param int|boolean $change_since =0 false=new entry, > 0 time from which on the repetitions should be changed, default 0=all |
|
1701 | + * @param integer $change_since =0 false=new entry, > 0 time from which on the repetitions should be changed, default 0=all |
|
1726 | 1702 | * @param int $old_start =0 old starttime or (default) 0, to query it from the db |
1727 | 1703 | * @param int $old_end =0 old starttime or (default) 0 |
1728 | 1704 | * @todo Recalculate recurrences, if timezone changes |
@@ -1899,12 +1875,12 @@ discard block |
||
1899 | 1875 | * |
1900 | 1876 | * @param int $cal_id |
1901 | 1877 | * @param array $participants uid => status pairs |
1902 | - * @param int|boolean $change_since =0, false=new event, |
|
1878 | + * @param integer $change_since =0, false=new event, |
|
1903 | 1879 | * 0=all, > 0 time from which on the repetitions should be changed |
1904 | 1880 | * @param boolean $add_only =false |
1905 | 1881 | * false = add AND delete participants if needed (full list of participants required in $participants) |
1906 | 1882 | * true = only add participants if needed, no participant will be deleted (participants to check/add required in $participants) |
1907 | - * @return int|boolean number of updated recurrences or false on error |
|
1883 | + * @return boolean number of updated recurrences or false on error |
|
1908 | 1884 | */ |
1909 | 1885 | function participants($cal_id,$participants,$change_since=0,$add_only=false) |
1910 | 1886 | { |
@@ -2045,7 +2021,7 @@ discard block |
||
2045 | 2021 | * set the status of one participant for a given recurrence or for all recurrences since now (includes recur_date=0) |
2046 | 2022 | * |
2047 | 2023 | * @param int $cal_id |
2048 | - * @param char $user_type 'u' regular user, 'r' resource, 'c' contact |
|
2024 | + * @param string $user_type 'u' regular user, 'r' resource, 'c' contact |
|
2049 | 2025 | * @param int|string $user_id |
2050 | 2026 | * @param int|char $status numeric status (defines) or 1-char code: 'R', 'U', 'T' or 'A' |
2051 | 2027 | * @param int $recur_date =0 date to change, or 0 = all since now |
@@ -2962,7 +2938,7 @@ discard block |
||
2962 | 2938 | * Updates the modification timestamp to force an etag, ctag and sync-token change |
2963 | 2939 | * |
2964 | 2940 | * @param int $id event id |
2965 | - * @param int|boolean $update_master =false id of series master or true, to update series master too |
|
2941 | + * @param boolean $update_master =false id of series master or true, to update series master too |
|
2966 | 2942 | * @param int $time =null new timestamp, default current (server-)time |
2967 | 2943 | * @param int $modifier =null uid of the modifier, default current user |
2968 | 2944 | */ |
@@ -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 |
@@ -1077,7 +1077,7 @@ discard block |
||
1077 | 1077 | * date instead of today |
1078 | 1078 | * @param boolean $no_notifications Toggle notifications to participants |
1079 | 1079 | * |
1080 | - * @return false or error message |
|
1080 | + * @return string|false or error message |
|
1081 | 1081 | */ |
1082 | 1082 | function _break_recurring(&$event, $old_event, $as_of_date = null, $no_notifications = true) |
1083 | 1083 | { |
@@ -2173,7 +2173,7 @@ discard block |
||
2173 | 2173 | * Freetime search |
2174 | 2174 | * |
2175 | 2175 | * As the function is called in a popup via javascript, parametes get initialy transfered via the url |
2176 | - * @param array $content=null array with parameters or false (default) to use the get-params |
|
2176 | + * @param array $content array with parameters or false (default) to use the get-params |
|
2177 | 2177 | * @param string start[str] start-date |
2178 | 2178 | * @param string start[hour] start-hour |
2179 | 2179 | * @param string start[min] start-minutes |
@@ -2417,7 +2417,7 @@ discard block |
||
2417 | 2417 | /** |
2418 | 2418 | * Export events as vCalendar version 2.0 files (iCal) |
2419 | 2419 | * |
2420 | - * @param int|array $content numeric cal_id or submitted content from etempalte::exec |
|
2420 | + * @param integer $content numeric cal_id or submitted content from etempalte::exec |
|
2421 | 2421 | * @param boolean $return_error should an error-msg be returned or a regular page with it generated (default) |
2422 | 2422 | * @return string error-msg if $return_error |
2423 | 2423 | */ |
@@ -539,8 +539,9 @@ |
||
539 | 539 | * @param int &$success number of succeded actions |
540 | 540 | * @param int &$failed number of failed actions (not enought permissions) |
541 | 541 | * @param string &$action_msg translated verb for the actions, to be used in a message like %1 events 'deleted' |
542 | - * @param string/array $session_name 'calendar_list' |
|
543 | - * @return boolean true if all actions succeded, false otherwise |
|
542 | + * @param string $session_name 'calendar_list' |
|
543 | + * @param null|string $msg |
|
544 | + * @return null|boolean true if all actions succeded, false otherwise |
|
544 | 545 | */ |
545 | 546 | function action($action,$checked,$use_all,&$success,&$failed,&$action_msg,$session_name,&$msg,$skip_notification=false) |
546 | 547 | { |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | /** |
413 | 413 | * Displays the planner view |
414 | 414 | * |
415 | - * @param boolean|Etemplate $home = false if etemplate return content suitable for home-page |
|
415 | + * @param null|Etemplate $home = false if etemplate return content suitable for home-page |
|
416 | 416 | */ |
417 | 417 | function &planner($content = array(), $home=false) |
418 | 418 | { |
@@ -497,7 +497,7 @@ discard block |
||
497 | 497 | * Used for home app |
498 | 498 | * |
499 | 499 | * @param int $weeks = 0 number of weeks to show, if 0 (default) all weeks of one month are shown |
500 | - * @param boolean|etemplate2 $home = false if not false return content suitable for home-page |
|
500 | + * @param null|Etemplate $home = false if not false return content suitable for home-page |
|
501 | 501 | */ |
502 | 502 | function &month($weeks=0,$home=false) |
503 | 503 | { |
@@ -580,6 +580,8 @@ discard block |
||
580 | 580 | * @param int &$first timestamp 0h of first day of week containing the first of the current month |
581 | 581 | * @param int &$last timestamp 23:59:59 of last day of week containg the last day of the current month |
582 | 582 | * @param int $day = 1 should the alignment be based on the 1. of the month or an other date, eg. the 15. |
583 | + * @param integer $first |
|
584 | + * @param integer $last |
|
583 | 585 | */ |
584 | 586 | function _week_align_month(&$first,&$last,$day=1) |
585 | 587 | { |
@@ -604,7 +606,7 @@ discard block |
||
604 | 606 | * Displays the weekview, with 5 or 7 days |
605 | 607 | * |
606 | 608 | * @param int $days = 0 number of days to show, if 0 (default) the value from the URL or the prefs is used |
607 | - * @param boolean|etemplate2 $home = false if not false return content suitable for home-page |
|
609 | + * @param null|Etemplate $home = false if not false return content suitable for home-page |
|
608 | 610 | */ |
609 | 611 | function week($days=0,$home=false) |
610 | 612 | { |
@@ -740,7 +742,7 @@ discard block |
||
740 | 742 | /** |
741 | 743 | * Query the open ToDo's via a hook from InfoLog or any other 'calendar_include_todos' provider |
742 | 744 | * |
743 | - * @param array/string $todo_label label for the todo-box or array with 2 values: the label and a boolean show_all |
|
745 | + * @param string $todo_label label for the todo-box or array with 2 values: the label and a boolean show_all |
|
744 | 746 | * On return $todo_label contains the label for the todo-box |
745 | 747 | * @return string/boolean Api\Html with a table of open todo's or false if no hook availible |
746 | 748 | */ |
@@ -824,7 +826,7 @@ discard block |
||
824 | 826 | * - 'edit_popup' => '400x300' (optional) |
825 | 827 | * |
826 | 828 | * @param string $app |
827 | - * @param int|string $id |
|
829 | + * @param string $id |
|
828 | 830 | * @return string |
829 | 831 | */ |
830 | 832 | public static function integration_get_popup($app,$id) |
@@ -864,7 +866,7 @@ discard block |
||
864 | 866 | * Icons specified in $events['icons'] are always displayed! |
865 | 867 | * |
866 | 868 | * @param string $app |
867 | - * @param int|string $id |
|
869 | + * @param string $id |
|
868 | 870 | * @param array $event |
869 | 871 | * @return array |
870 | 872 | */ |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | * @param int $truncsize |
273 | 273 | * @param int $bodypreference |
274 | 274 | * @param $optionbodypreference |
275 | - * @param bool $mimesupport |
|
275 | + * @param integer $mimesupport |
|
276 | 276 | * @return SyncMail |
277 | 277 | */ |
278 | 278 | function GetMeetingRequest($id, $truncsize, $bodypreference=false, $optionbodypreference=false, $mimesupport = 0) |
@@ -875,7 +875,7 @@ discard block |
||
875 | 875 | * @param string $displayname => new folder name (to be created, or to be renamed to) |
876 | 876 | * @param string $type folder type, ignored in IMAP |
877 | 877 | * |
878 | - * @return array|boolean stat array or false on error |
|
878 | + * @return boolean stat array or false on error |
|
879 | 879 | */ |
880 | 880 | public function ChangeFolder($id, $oldid, $displayname, $type) |
881 | 881 | { |
@@ -890,7 +890,7 @@ discard block |
||
890 | 890 | * @param string $id of the folder to delete |
891 | 891 | * |
892 | 892 | * @return |
893 | - * @TODO check what is to be returned |
|
893 | + boolean @TODO check what is to be returned |
|
894 | 894 | */ |
895 | 895 | public function DeleteFolder($parentid, $id) |
896 | 896 | { |
@@ -1578,6 +1578,7 @@ discard block |
||
1578 | 1578 | * Unpack timezone info from Sync |
1579 | 1579 | * |
1580 | 1580 | * copied from backend/ics.php |
1581 | + * @param string $data |
|
1581 | 1582 | */ |
1582 | 1583 | static public function _getTZFromSyncBlob($data) |
1583 | 1584 | { |
@@ -11,6 +11,10 @@ discard block |
||
11 | 11 | |
12 | 12 | use EGroupware\Api; |
13 | 13 | |
14 | +/** |
|
15 | + * @param string $table |
|
16 | + * @param string $field |
|
17 | + */ |
|
14 | 18 | function calendar_v0_9_2to0_9_3update_owner($table, $field) |
15 | 19 | { |
16 | 20 | $GLOBALS['egw_setup']->oProc->query("select distinct($field) from $table"); |
@@ -2306,7 +2310,7 @@ discard block |
||
2306 | 2310 | * |
2307 | 2311 | * Also fix recurring events containing a reference to an other master, created when an exception is made a recurring event. |
2308 | 2312 | * |
2309 | - * @return type |
|
2313 | + * @return string |
|
2310 | 2314 | */ |
2311 | 2315 | function calendar_upgrade14_1() |
2312 | 2316 | { |
@@ -187,7 +187,7 @@ |
||
187 | 187 | * |
188 | 188 | * @param string $file filename |
189 | 189 | * @param boolean $dry_run =false true: only echo fixed file, not fix it |
190 | - * @return boolean false on error |
|
190 | + * @return boolean|null false on error |
|
191 | 191 | */ |
192 | 192 | function fix_api($file, $dry_run=false) |
193 | 193 | { |