@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | /** |
| 83 | 83 | * Constructor |
| 84 | 84 | * |
| 85 | - * @param array|Imap $params =array() |
|
| 85 | + * @param Imap $params =array() |
|
| 86 | 86 | */ |
| 87 | 87 | function __construct($params=array()) |
| 88 | 88 | { |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | * |
| 166 | 166 | * @param array $_emailNotification |
| 167 | 167 | * @param string $_scriptName |
| 168 | - * @return Script |
|
| 168 | + * @return boolean |
|
| 169 | 169 | */ |
| 170 | 170 | function setEmailNotification(array $_emailNotification, $_scriptName=null) |
| 171 | 171 | { |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | /** |
| 157 | 157 | * Get the data of a given user |
| 158 | 158 | * |
| 159 | - * @param int|string $user numerical account-id, account-name or email address |
|
| 159 | + * @param integer $user numerical account-id, account-name or email address |
|
| 160 | 160 | * @param boolean $match_uid_at_domain =true true: uid@domain matches, false only an email or alias address matches |
| 161 | 161 | * @return array with values for keys 'mailLocalAddress', 'mailAlternateAddress' (array), 'mailForwardingAddress' (array), |
| 162 | 162 | * 'accountStatus' ("active"), 'quotaLimit' and 'deliveryMode' ("forwardOnly") |
@@ -628,7 +628,7 @@ |
||
| 628 | 628 | * @param int $_accountID |
| 629 | 629 | * @param string $_forwardingAddress |
| 630 | 630 | * @param string $_keepLocalCopy 'yes' |
| 631 | - * @return boolean true on success, false on error writing to ldap |
|
| 631 | + * @return boolean|null true on success, false on error writing to ldap |
|
| 632 | 632 | */ |
| 633 | 633 | function saveSMTPForwarding($_accountID, $_forwardingAddress, $_keepLocalCopy) |
| 634 | 634 | { |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | /** |
| 252 | 252 | * Add one or multiple addresses to Cc |
| 253 | 253 | * |
| 254 | - * @param string|array|Horde_Mail_Rfc822_List $address |
|
| 254 | + * @param string $address |
|
| 255 | 255 | * @param string $personal ='' only used if $address is a string |
| 256 | 256 | */ |
| 257 | 257 | function addCc($address, $personal=null) |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | /** |
| 271 | 271 | * Add one or multiple addresses to Bcc |
| 272 | 272 | * |
| 273 | - * @param string|array|Horde_Mail_Rfc822_List $address |
|
| 273 | + * @param string $address |
|
| 274 | 274 | * @param string $personal ='' only used if $address is a string |
| 275 | 275 | */ |
| 276 | 276 | function addBcc($address, $personal=null) |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | /** |
| 382 | 382 | * Adds an embedded image or other inline attachment |
| 383 | 383 | * |
| 384 | - * @param string|resource $data Path to the attachment or open file-descriptor |
|
| 384 | + * @param string $data Path to the attachment or open file-descriptor |
|
| 385 | 385 | * @param string $cid Content ID of the attachment. Use this to identify |
| 386 | 386 | * the Id for accessing the image in an HTML form. |
| 387 | 387 | * @param string $name Overrides the attachment name. |
@@ -968,7 +968,7 @@ |
||
| 968 | 968 | * |
| 969 | 969 | * This method uses the language and nationalty set in the users common prefs. |
| 970 | 970 | * |
| 971 | - * @param $category =LC_ALL category to set, see setlocal function |
|
| 971 | + * @param integer $category =LC_ALL category to set, see setlocal function |
|
| 972 | 972 | * @param $charset =null default system charset |
| 973 | 973 | * @return string the local (or best estimate) set |
| 974 | 974 | */ |
@@ -311,6 +311,7 @@ discard block |
||
| 311 | 311 | * Encrypt the variables in the session |
| 312 | 312 | * |
| 313 | 313 | * Is called by self::__destruct(). |
| 314 | + * @param string $kp3 |
|
| 314 | 315 | */ |
| 315 | 316 | static function encrypt($kp3) |
| 316 | 317 | { |
@@ -439,7 +440,7 @@ discard block |
||
| 439 | 440 | * @param boolean $no_session =false dont create a real session, eg. for GroupDAV clients using only basic auth, no cookie support |
| 440 | 441 | * @param boolean $auth_check =true if false, the user is loged in without checking his password (eg. for single sign on), default = true |
| 441 | 442 | * @param boolean $fail_on_forced_password_change =false true: do NOT create session, if password change requested |
| 442 | - * @return string|boolean session id or false if session was not created, $this->(cd_)reason contains cause |
|
| 443 | + * @return false|string session id or false if session was not created, $this->(cd_)reason contains cause |
|
| 443 | 444 | */ |
| 444 | 445 | function create($login,$passwd = '',$passwd_type = '',$no_session=false,$auth_check=true,$fail_on_forced_password_change=false) |
| 445 | 446 | { |
@@ -1021,7 +1022,7 @@ discard block |
||
| 1021 | 1022 | /** |
| 1022 | 1023 | * Terminate a session |
| 1023 | 1024 | * |
| 1024 | - * @param int|string $sessionid nummeric or php session id of session to be terminated |
|
| 1025 | + * @param string $sessionid nummeric or php session id of session to be terminated |
|
| 1025 | 1026 | * @param string $kp3 |
| 1026 | 1027 | * @return boolean true on success, false on error |
| 1027 | 1028 | */ |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | * @param string $join ='' sql to do a join, added as is after the table-name, eg. ", table2 WHERE x=y" or |
| 367 | 367 | * "LEFT JOIN table2 ON (x=y)", Note: there's no quoting done on $join! |
| 368 | 368 | * @param boolean $need_full_no_count =false If true an unlimited query is run to determine the total number of rows, default false |
| 369 | - * @param mixed $only_keys =false, see search |
|
| 369 | + * @param boolean $only_keys =false, see search |
|
| 370 | 370 | * @param string|array $extra_cols =array() |
| 371 | 371 | * @return int total number of rows |
| 372 | 372 | */ |
@@ -734,7 +734,7 @@ discard block |
||
| 734 | 734 | * Check if cf is stored as 1:N relation in DB and array in memory |
| 735 | 735 | * |
| 736 | 736 | * @param string $name |
| 737 | - * @return string |
|
| 737 | + * @return boolean |
|
| 738 | 738 | */ |
| 739 | 739 | function is_multiple($name) |
| 740 | 740 | { |
@@ -704,7 +704,7 @@ discard block |
||
| 704 | 704 | * |
| 705 | 705 | * @param array $_fields |
| 706 | 706 | * @param boolean $merge =true if true $fields will be merged with $this->data (after update!), otherwise $this->data will be just $fields |
| 707 | - * @return int|boolean 0 on success, or errno != 0 on error, or true if $extra_where is given and no rows affected |
|
| 707 | + * @return integer 0 on success, or errno != 0 on error, or true if $extra_where is given and no rows affected |
|
| 708 | 708 | */ |
| 709 | 709 | function update($_fields,$merge=true) |
| 710 | 710 | { |
@@ -1194,7 +1194,7 @@ discard block |
||
| 1194 | 1194 | * @param string &$wildcard ='' on return wildcard char to use, if pattern does not already contain wildcards! |
| 1195 | 1195 | * @param string &$op ='AND' on return boolean operation to use, if pattern does not start with ! we use OR else AND |
| 1196 | 1196 | * @param string $extra_col =null extra column to search |
| 1197 | - * @param array $search_cols =array() List of columns to search. If not provided, all columns in $this->db_cols will be considered |
|
| 1197 | + * @param string[] $search_cols =array() List of columns to search. If not provided, all columns in $this->db_cols will be considered |
|
| 1198 | 1198 | * @return array or column => value pairs |
| 1199 | 1199 | */ |
| 1200 | 1200 | public function search2criteria($_pattern,&$wildcard='',&$op='AND',$extra_col=null, $search_cols = array()) |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | * @param string $app |
| 160 | 160 | * @param boolean $all_private_too =false should all the private fields be returned too, default no |
| 161 | 161 | * @param string $only_type2 =null if given only return fields of type2 == $only_type2 |
| 162 | - * @return boolen true: if there is a custom field useing html, false if not |
|
| 162 | + * @return boolean true: if there is a custom field useing html, false if not |
|
| 163 | 163 | */ |
| 164 | 164 | public static function use_html($app, $all_private_too=false, $only_type2=null) |
| 165 | 165 | { |