@@ -31,7 +31,7 @@ |
||
31 | 31 | * Create a session or if the user has no account return authenticate header and 401 Unauthorized |
32 | 32 | * |
33 | 33 | * @param array &$account |
34 | - * @return int session-id |
|
34 | + * @return string session-id |
|
35 | 35 | */ |
36 | 36 | function check_access(&$account) |
37 | 37 | { |
@@ -1053,7 +1053,7 @@ |
||
1053 | 1053 | * @param int &$success number of succeded actions |
1054 | 1054 | * @param int &$failed number of failed actions (not enought permissions) |
1055 | 1055 | * @param string &$action_msg translated verb for the actions, to be used in a message like %1 timesheets 'deleted' |
1056 | - * @param string/array $session_name 'index' or 'email', or array with session-data depending if we are in the main list or the popup |
|
1056 | + * @param string $session_name 'index' or 'email', or array with session-data depending if we are in the main list or the popup |
|
1057 | 1057 | * @return boolean true if all actions succeded, false otherwise |
1058 | 1058 | */ |
1059 | 1059 | function action($action,$checked,$use_all,&$success,&$failed,&$action_msg,$session_name,&$msg) |
@@ -114,10 +114,10 @@ discard block |
||
114 | 114 | * |
115 | 115 | * Takes addessbook-abs and addressbook-all-in-one preference into account. |
116 | 116 | * |
117 | - * @param int $account=null account_id of addressbook or null to get array of all addressbooks |
|
118 | - * @param boolean $return_all_in_one=true if false and all-in-one pref is set, return all selected abs |
|
117 | + * @param int $account account_id of addressbook or null to get array of all addressbooks |
|
118 | + * @param boolean $return_all_in_one if false and all-in-one pref is set, return all selected abs |
|
119 | 119 | * if true only the all-in-one ab is returned (with id of personal ab) |
120 | - * @param booelan $ab_prefix=false prefix personal, private and accounts addressbook with lang('Addressbook').' ' |
|
120 | + * @param booelan $ab_prefix prefix personal, private and accounts addressbook with lang('Addressbook').' ' |
|
121 | 121 | * @return string|array addressbook name of array with int account_id => label pairs |
122 | 122 | */ |
123 | 123 | private function get_addressbooks($account=null,$return_all_in_one=true, $ab_prefix=false) |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | * |
271 | 271 | * @todo if AB supports an extra private addressbook and AS prefs want an all-in-one AB, the private AB is always included, even if not selected in the prefs |
272 | 272 | * @param string $id folder id |
273 | - * @param int $cutoffdate=null |
|
273 | + * @param int $cutoffdate |
|
274 | 274 | * @return array |
275 | 275 | */ |
276 | 276 | function GetMessageList($id, $cutoffdate=NULL) |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | * @param string $id |
320 | 320 | * @param int $truncsize |
321 | 321 | * @param int $bodypreference |
322 | - * @param bool $mimesupport |
|
322 | + * @param integer $mimesupport |
|
323 | 323 | * @return $messageobject|boolean false on error |
324 | 324 | */ |
325 | 325 | public function GetMessage($folderid, $id, $truncsize, $bodypreference=false, $optionbodypreference=false, $mimesupport = 0) |
@@ -74,8 +74,7 @@ discard block |
||
74 | 74 | /** |
75 | 75 | * constructor of the class |
76 | 76 | * |
77 | - * @param array $ldap_config=null default use from $GLOBALS['egw_info']['server'] |
|
78 | - * @param resource $ds=null ldap connection to use |
|
77 | + * @param array $ldap_config default use from $GLOBALS['egw_info']['server'] |
|
79 | 78 | */ |
80 | 79 | function __construct(array $ldap_config=null, $ds=null) |
81 | 80 | { |
@@ -130,7 +129,6 @@ discard block |
||
130 | 129 | /** |
131 | 130 | * connect to LDAP server |
132 | 131 | * |
133 | - * @param boolean $admin=false true (re-)connect with admin not user credentials, eg. to modify accounts |
|
134 | 132 | */ |
135 | 133 | function connect($admin=false) |
136 | 134 | { |
@@ -204,7 +202,6 @@ discard block |
||
204 | 202 | /** |
205 | 203 | * Remove attributes we are not allowed to update |
206 | 204 | * |
207 | - * @param array $attributes |
|
208 | 205 | */ |
209 | 206 | function sanitize_update(array &$ldapContact) |
210 | 207 | { |
@@ -158,8 +158,6 @@ discard block |
||
158 | 158 | /** |
159 | 159 | * Constructor |
160 | 160 | * |
161 | - * @param string $contact_app='addressbook' used for acl->get_grants() |
|
162 | - * @param egw_db $db=null |
|
163 | 161 | */ |
164 | 162 | function __construct($contact_app='addressbook',egw_db $db=null) |
165 | 163 | { |
@@ -329,10 +327,8 @@ discard block |
||
329 | 327 | /** |
330 | 328 | * Get the availible addressbooks of the user |
331 | 329 | * |
332 | - * @param int $required=EGW_ACL_READ required rights on the addressbook or multiple rights or'ed together, |
|
333 | - * to return only addressbooks fullfilling all the given rights |
|
334 | 330 | * @param string $extra_label first label if given (already translated) |
335 | - * @param int $user=null account_id or null for current user |
|
331 | + * @param integer $required |
|
336 | 332 | * @return array with owner => label pairs |
337 | 333 | */ |
338 | 334 | function get_addressbooks($required=EGW_ACL_READ,$extra_label=null,$user=null) |
@@ -402,8 +398,6 @@ discard block |
||
402 | 398 | * calculate the file_as string from the contact and the file_as type |
403 | 399 | * |
404 | 400 | * @param array $contact |
405 | - * @param string $type=null file_as type, default null to read it from the contact, unknown/not set type default to the first one |
|
406 | - * @param boolean $update=false If true, reads the old record for any not set fields |
|
407 | 401 | * @return string |
408 | 402 | */ |
409 | 403 | function fileas($contact,$type=null, $isUpdate=false) |
@@ -459,7 +453,6 @@ discard block |
||
459 | 453 | * determine the file_as type from the file_as string and the contact |
460 | 454 | * |
461 | 455 | * @param array $contact |
462 | - * @param string $type=null file_as type, default null to read it from the contact, unknown/not set type default to the first one |
|
463 | 456 | * @return string |
464 | 457 | */ |
465 | 458 | function fileas_type($contact,$file_as=null) |
@@ -482,7 +475,6 @@ discard block |
||
482 | 475 | /** |
483 | 476 | * get selectbox options for the customfields |
484 | 477 | * |
485 | - * @param array $field=null |
|
486 | 478 | * @return array with options: |
487 | 479 | */ |
488 | 480 | public static function cf_options() |
@@ -498,7 +490,7 @@ discard block |
||
498 | 490 | /** |
499 | 491 | * get selectbox options for the fileas types with translated labels, or real content |
500 | 492 | * |
501 | - * @param array $contact=null real content to use, default none |
|
493 | + * @param array $contact real content to use, default none |
|
502 | 494 | * @return array with options: fileas type => label pairs |
503 | 495 | */ |
504 | 496 | function fileas_options($contact=null) |
@@ -532,7 +524,6 @@ discard block |
||
532 | 524 | * If $all all fileas fields will be set, if !$all only empty ones |
533 | 525 | * |
534 | 526 | * @param string $fileas_type '' or type of $this->fileas_types |
535 | - * @param int $all=false update all contacts or only ones with empty values |
|
536 | 527 | * @param int &$errors=null on return number of errors |
537 | 528 | * @return int|boolean number of contacts updated, false for wrong fileas type |
538 | 529 | */ |
@@ -596,7 +587,7 @@ discard block |
||
596 | 587 | * remove unneeded carriage returns or set empty fields to NULL |
597 | 588 | * |
598 | 589 | * @param int &$errors=null on return number of errors |
599 | - * @return int|boolean number of contacts updated |
|
590 | + * @return integer number of contacts updated |
|
600 | 591 | */ |
601 | 592 | function set_all_cleanup(&$errors=null,$ignore_acl=false) |
602 | 593 | { |
@@ -744,9 +735,7 @@ discard block |
||
744 | 735 | /** |
745 | 736 | * src for photo: returns array with linkparams if jpeg exists or the $default image-name if not |
746 | 737 | * @param int $id contact_id |
747 | - * @param boolean $jpeg=false jpeg exists or not |
|
748 | 738 | * @param string $default='' image-name to use if !$jpeg, eg. 'template' |
749 | - * @param string $etag=null etag to set in url to allow caching with Expires header |
|
750 | 739 | * @return string/array |
751 | 740 | */ |
752 | 741 | function photo_src($id,$jpeg,$default='',$etag=null) |
@@ -788,8 +777,8 @@ discard block |
||
788 | 777 | * deletes contact in db |
789 | 778 | * |
790 | 779 | * @param mixed &$contact contact array with key id or (array of) id(s) |
791 | - * @param boolean $deny_account_delete=true if true never allow to delete accounts |
|
792 | - * @param int $check_etag=null |
|
780 | + * @param boolean $deny_account_delete if true never allow to delete accounts |
|
781 | + * @param int $check_etag |
|
793 | 782 | * @return boolean|int true on success or false on failiure, 0 if etag does not match |
794 | 783 | */ |
795 | 784 | function delete($contact,$deny_account_delete=true,$check_etag=null) |
@@ -847,7 +836,7 @@ discard block |
||
847 | 836 | * saves contact to db |
848 | 837 | * |
849 | 838 | * @param array &$contact contact array from etemplate::exec |
850 | - * @param boolean $ignore_acl=false should the acl be checked or not |
|
839 | + * @param boolean $ignore_acl should the acl be checked or not |
|
851 | 840 | * @return int/string/boolean id on success, false on failure, the error-message is in $this->error |
852 | 841 | */ |
853 | 842 | function save(&$contact,$ignore_acl=false) |
@@ -1028,7 +1017,7 @@ discard block |
||
1028 | 1017 | * Resizes photo to 60*80 pixel and returns it |
1029 | 1018 | * |
1030 | 1019 | * @param string|FILE $photo string with image or open filedescribtor |
1031 | - * @param int $dst_w=240 max width to resize to |
|
1020 | + * @param int $dst_w max width to resize to |
|
1032 | 1021 | * @return string with resized jpeg photo, null on error |
1033 | 1022 | */ |
1034 | 1023 | public static function resize_photo($photo,$dst_w=240) |
@@ -1121,9 +1110,8 @@ discard block |
||
1121 | 1110 | * |
1122 | 1111 | * @param int $needed necessary ACL right: EGW_ACL_{READ|EDIT|DELETE} |
1123 | 1112 | * @param mixed $contact contact as array or the contact-id |
1124 | - * @param boolean $deny_account_delete=false if true never allow to delete accounts |
|
1125 | - * @param int $user=null for which user to check, default current user |
|
1126 | - * @return boolean true permission granted, false for permission denied, null for contact does not exist |
|
1113 | + * @param boolean $deny_account_delete if true never allow to delete accounts |
|
1114 | + * @return null|boolean true permission granted, false for permission denied, null for contact does not exist |
|
1127 | 1115 | */ |
1128 | 1116 | function check_perms($needed,$contact,$deny_account_delete=false,$user=null) |
1129 | 1117 | { |
@@ -1177,9 +1165,8 @@ discard block |
||
1177 | 1165 | * |
1178 | 1166 | * @param int|array $id id of entry or entry array |
1179 | 1167 | * @param int $check EGW_ACL_READ for read and EGW_ACL_EDIT for write or delete access |
1180 | - * @param string $rel_path=null currently not used in InfoLog |
|
1181 | - * @param int $user=null for which user to check, default current user |
|
1182 | - * @return boolean true if access is granted or false otherwise |
|
1168 | + * @param string $rel_path currently not used in InfoLog |
|
1169 | + * @return null|boolean true if access is granted or false otherwise |
|
1183 | 1170 | */ |
1184 | 1171 | function file_access($id,$check,$rel_path=null,$user=null) |
1185 | 1172 | { |
@@ -1333,7 +1320,7 @@ discard block |
||
1333 | 1320 | * |
1334 | 1321 | * @param array $from original/old version of the contact |
1335 | 1322 | * @param array $to changed/new version of the contact |
1336 | - * @param boolean $onld_org_fields=true check and return only org_fields, default true |
|
1323 | + * @param boolean $only_org_fields check and return only org_fields, default true |
|
1337 | 1324 | * @return array with field-name => value from $from |
1338 | 1325 | */ |
1339 | 1326 | function changed_fields($from,$to,$only_org_fields=true) |
@@ -1368,7 +1355,7 @@ discard block |
||
1368 | 1355 | * @param string $org_name |
1369 | 1356 | * @param array $from original/old version of the contact |
1370 | 1357 | * @param array $to changed/new version of the contact |
1371 | - * @param array $members=null org-members to change, default null --> function queries them itself |
|
1358 | + * @param array $members org-members to change, default null --> function queries them itself |
|
1372 | 1359 | * @return array/boolean (changed-members,changed-fields,failed-members) or false if no org_fields changed or no (other) members matching that fields |
1373 | 1360 | */ |
1374 | 1361 | function change_org($org_name,$from,$to,$members=null) |
@@ -1599,7 +1586,7 @@ discard block |
||
1599 | 1586 | * Read the next and last event of given contacts |
1600 | 1587 | * |
1601 | 1588 | * @param array $ids contact_id's |
1602 | - * @param boolean $extra_title=true if true, use a short date only title and put the full title as extra_title (tooltip) |
|
1589 | + * @param boolean $extra_title if true, use a short date only title and put the full title as extra_title (tooltip) |
|
1603 | 1590 | * @return array |
1604 | 1591 | */ |
1605 | 1592 | function read_calendar($ids,$extra_title=true) |
@@ -1867,7 +1854,6 @@ discard block |
||
1867 | 1854 | * |
1868 | 1855 | * @param int $list |
1869 | 1856 | * @param int $required |
1870 | - * @param int $owner=null |
|
1871 | 1857 | * @return boolean |
1872 | 1858 | */ |
1873 | 1859 | function check_list($list,$required,$owner=null) |
@@ -1885,7 +1871,6 @@ discard block |
||
1885 | 1871 | * |
1886 | 1872 | * @param string|array $keys list-name or array with column-name => value pairs to specify the list |
1887 | 1873 | * @param int $owner user- or group-id |
1888 | - * @param array $contacts=array() contacts to add (only for not yet existing lists!) |
|
1889 | 1874 | * @param array &$data=array() values for keys 'list_uid', 'list_carddav_name', 'list_name' |
1890 | 1875 | * @return int|boolean integer list_id or false on error |
1891 | 1876 | */ |
@@ -1909,7 +1894,7 @@ discard block |
||
1909 | 1894 | * |
1910 | 1895 | * @param int|array $contact contact_id(s) |
1911 | 1896 | * @param int $list list-id |
1912 | - * @param array $existing=null array of existing contact-id(s) of list, to not reread it, eg. array() |
|
1897 | + * @param array $existing array of existing contact-id(s) of list, to not reread it, eg. array() |
|
1913 | 1898 | * @return false on error |
1914 | 1899 | */ |
1915 | 1900 | function add2list($contact,$list,array $existing=null) |
@@ -2051,7 +2036,7 @@ discard block |
||
2051 | 2036 | * currently used for vcard import |
2052 | 2037 | * |
2053 | 2038 | * @param array $catname_list names of the categories which should be found or added |
2054 | - * @param int $contact_id=null match against existing contact and expand the returned category ids |
|
2039 | + * @param int $contact_id match against existing contact and expand the returned category ids |
|
2055 | 2040 | * by the ones the user normally does not see due to category permissions - used to preserve categories |
2056 | 2041 | * @return array category ids (found, added and preserved categories) |
2057 | 2042 | */ |
@@ -2151,7 +2136,6 @@ discard block |
||
2151 | 2136 | * Try to find a matching db entry |
2152 | 2137 | * |
2153 | 2138 | * @param array $contact the contact data we try to find |
2154 | - * @param boolean $relax=false if asked to relax, we only match against some key fields |
|
2155 | 2139 | * @return array od matching contact_ids |
2156 | 2140 | */ |
2157 | 2141 | function find_contact($contact, $relax=false) |
@@ -2386,7 +2370,6 @@ discard block |
||
2386 | 2370 | * We have to include deleted entries, as otherwise the ctag will not change if an entry gets deleted! |
2387 | 2371 | * (Only works if tracking of deleted entries / history is switched on!) |
2388 | 2372 | * |
2389 | - * @param int|array $owner=null 0=accounts, null=all addressbooks or integer account_id of user or group |
|
2390 | 2373 | * @return string |
2391 | 2374 | */ |
2392 | 2375 | public function get_ctag($owner=null) |
@@ -104,8 +104,7 @@ discard block |
||
104 | 104 | * @param array &$options |
105 | 105 | * @param array &$files |
106 | 106 | * @param int $user account_id |
107 | - * @param string $id='' |
|
108 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
107 | + * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
109 | 108 | */ |
110 | 109 | function propfind($path,&$options,&$files,$user,$id='') |
111 | 110 | { |
@@ -186,7 +185,6 @@ discard block |
||
186 | 185 | * |
187 | 186 | * @param string $path |
188 | 187 | * @param array& $filter |
189 | - * @param array|boolean $start=false false=return all or array(start,num) |
|
190 | 188 | * @return array with "files" array with values for keys path and props |
191 | 189 | */ |
192 | 190 | function &propfind_callback($path,array &$filter,$start=false,$report_not_found_multiget_ids=true) |
@@ -535,8 +533,7 @@ discard block |
||
535 | 533 | * |
536 | 534 | * @param array &$options |
537 | 535 | * @param int $id |
538 | - * @param int $user=null account_id |
|
539 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
536 | + * @return string|boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
540 | 537 | */ |
541 | 538 | function get(&$options,$id,$user=null) |
542 | 539 | { |
@@ -559,9 +556,8 @@ discard block |
||
559 | 556 | * |
560 | 557 | * @param array &$options |
561 | 558 | * @param int $id |
562 | - * @param int $user=null account_id of owner, default null |
|
563 | - * @param string $prefix=null user prefix from path (eg. /ralf from /ralf/addressbook) |
|
564 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
559 | + * @param string $prefix user prefix from path (eg. /ralf from /ralf/addressbook) |
|
560 | + * @return string|boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
565 | 561 | */ |
566 | 562 | function put(&$options,$id,$user=null,$prefix=null) |
567 | 563 | { |
@@ -828,10 +824,8 @@ discard block |
||
828 | 824 | * </D:supported-report-set> |
829 | 825 | * @link http://www.mail-archive.com/[email protected]/msg01156.html |
830 | 826 | * |
831 | - * @param array $props=array() regular props by the groupdav handler |
|
832 | 827 | * @param string $displayname |
833 | - * @param string $base_uri=null base url of handler |
|
834 | - * @param int $user=null account_id of owner of collection |
|
828 | + * @param string $base_uri base url of handler |
|
835 | 829 | * @return array |
836 | 830 | */ |
837 | 831 | public function extra_properties(array $props=array(), $displayname, $base_uri=null, $user=null) |
@@ -944,7 +938,6 @@ discard block |
||
944 | 938 | * the same UID and/or carddav_name as not deleted contacts and would block access to valid entries |
945 | 939 | * |
946 | 940 | * @param string|int $id |
947 | - * @param string $path=null |
|
948 | 941 | * @return array|boolean array with entry, false if no read rights, null if $id does not exist |
949 | 942 | */ |
950 | 943 | function read($id, $path=null) |
@@ -1013,7 +1006,7 @@ discard block |
||
1013 | 1006 | * |
1014 | 1007 | * @param int $acl EGW_ACL_READ, EGW_ACL_EDIT or EGW_ACL_DELETE |
1015 | 1008 | * @param array|int $contact contact-array or id |
1016 | - * @return boolean null if entry does not exist, false if no access, true if access permitted |
|
1009 | + * @return null|boolean null if entry does not exist, false if no access, true if access permitted |
|
1017 | 1010 | */ |
1018 | 1011 | function check_access($acl,$contact) |
1019 | 1012 | { |
@@ -1042,7 +1035,7 @@ discard block |
||
1042 | 1035 | /** |
1043 | 1036 | * Return calendars/addressbooks shared from other users with the current one |
1044 | 1037 | * |
1045 | - * @param boolean $ignore_all_in_one=false if true, return selected addressbooks and not array() for all-in-one |
|
1038 | + * @param boolean $ignore_all_in_one if true, return selected addressbooks and not array() for all-in-one |
|
1046 | 1039 | * @return array account_id => account_lid pairs |
1047 | 1040 | */ |
1048 | 1041 | function get_shared($ignore_all_in_one=false) |
@@ -82,8 +82,7 @@ discard block |
||
82 | 82 | /** |
83 | 83 | * imports entries according to given definition object. |
84 | 84 | * @param resource $_stream |
85 | - * @param string $_charset |
|
86 | - * @param definition $_definition |
|
85 | + * @param importexport_definition $_definition |
|
87 | 86 | */ |
88 | 87 | public function import( $_stream, importexport_definition $_definition ) { |
89 | 88 | $this->definition = $_definition; |
@@ -190,7 +189,7 @@ discard block |
||
190 | 189 | * perform the required action |
191 | 190 | * |
192 | 191 | * @param int $_action one of $this->actions |
193 | - * @param array $_data contact data for the action |
|
192 | + * @param Horde_iCalendar $_data contact data for the action |
|
194 | 193 | * @return bool success or not |
195 | 194 | */ |
196 | 195 | private function action ( $_action, $_data, $record_num = 0 ) { |
@@ -425,7 +425,6 @@ discard block |
||
425 | 425 | /** |
426 | 426 | * Remove attributes we are not allowed to update |
427 | 427 | * |
428 | - * @param array $attributes |
|
429 | 428 | */ |
430 | 429 | function sanitize_update(array &$ldapContact) |
431 | 430 | { |
@@ -703,14 +702,14 @@ discard block |
||
703 | 702 | * |
704 | 703 | * '*' and '?' are replaced with sql-wildcards '%' and '_' |
705 | 704 | * |
706 | - * @param array|string $criteria array of key and data cols, OR a SQL query (content for WHERE), fully quoted (!) |
|
705 | + * @param boolean $criteria array of key and data cols, OR a SQL query (content for WHERE), fully quoted (!) |
|
707 | 706 | * @param boolean|string $only_keys =true True returns only keys, False returns all cols. comma seperated list of keys to return |
708 | 707 | * @param string $order_by ='' fieldnames + {ASC|DESC} separated by colons ',', can also contain a GROUP BY (if it contains ORDER BY) |
709 | - * @param string|array $extra_cols ='' string or array of strings to be added to the SELECT, eg. "count(*) as num" |
|
708 | + * @param string $extra_cols ='' string or array of strings to be added to the SELECT, eg. "count(*) as num" |
|
710 | 709 | * @param string $wildcard ='' appended befor and after each criteria |
711 | 710 | * @param boolean $empty =false False=empty criteria are ignored in query, True=empty have to be empty in row |
712 | 711 | * @param string $op ='AND' defaults to 'AND', can be set to 'OR' too, then criteria's are OR'ed together |
713 | - * @param mixed $start =false if != false, return only maxmatch rows begining with start, or array($start,$num) |
|
712 | + * @param boolean $start =false if != false, return only maxmatch rows begining with start, or array($start,$num) |
|
714 | 713 | * @param array $filter =null if set (!=null) col-data pairs, to be and-ed (!) into the query without wildcards |
715 | 714 | * @param string $join ='' sql to do a join, added as is after the table-name, eg. ", table2 WHERE x=y" or |
716 | 715 | * "LEFT JOIN table2 ON (x=y)", Note: there's no quoting done on $join! |
@@ -196,9 +196,6 @@ |
||
196 | 196 | * import a vard into addressbook |
197 | 197 | * |
198 | 198 | * @return int contact id |
199 | - * @param string $_vcard the vcard |
|
200 | - * @param int/string $_abID=null the internal addressbook id or !$_abID for a new enty |
|
201 | - * @param boolean $merge=false merge data with existing entry |
|
202 | 199 | */ |
203 | 200 | function addSIF($_sifdata, $_abID=null, $merge=false) |
204 | 201 | { |