@@ -180,7 +180,6 @@ discard block |
||
| 180 | 180 | /** |
| 181 | 181 | * Init responseArray |
| 182 | 182 | * |
| 183 | - * @param array $arr |
|
| 184 | 183 | * @return array previous content |
| 185 | 184 | */ |
| 186 | 185 | public function initResponseArray() |
@@ -264,7 +263,7 @@ discard block |
||
| 264 | 263 | * |
| 265 | 264 | * @param midex $var |
| 266 | 265 | * @param string $prefix ='' |
| 267 | - * @return mixed |
|
| 266 | + * @return midex|null |
|
| 268 | 267 | */ |
| 269 | 268 | public static function fix_content($var, $prefix='') |
| 270 | 269 | { |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | /** |
| 100 | 100 | * Returns information about connected ldap server |
| 101 | 101 | * |
| 102 | - * @return Ldap\ServerInfo|null |
|
| 102 | + * @return Ldap\ServerInfo |
|
| 103 | 103 | */ |
| 104 | 104 | function getLDAPServerInfo() |
| 105 | 105 | { |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | * @param string $host ldap host |
| 218 | 218 | * @param string $dn ldap dn |
| 219 | 219 | * @param string $passwd ldap pw |
| 220 | - * @return resource|boolean resource from ldap_connect() or false on error |
|
| 220 | + * @return boolean resource from ldap_connect() or false on error |
|
| 221 | 221 | */ |
| 222 | 222 | private function _connect($host, $dn, $passwd) |
| 223 | 223 | { |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | /** |
| 82 | 82 | * gets the version |
| 83 | 83 | * |
| 84 | - * @return integer the supported ldap version |
|
| 84 | + * @return string the supported ldap version |
|
| 85 | 85 | */ |
| 86 | 86 | function getVersion() |
| 87 | 87 | { |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | * @param resource $ds |
| 160 | 160 | * @param string $host |
| 161 | 161 | * @param int $version 2 or 3 |
| 162 | - * @return ldapserverinfo |
|
| 162 | + * @return ServerInfo |
|
| 163 | 163 | */ |
| 164 | 164 | public static function get($ds, $host, $version=3) |
| 165 | 165 | { |
@@ -433,7 +433,7 @@ discard block |
||
| 433 | 433 | * generate temporary link_id used as array-key |
| 434 | 434 | * |
| 435 | 435 | * @param string $app app-name |
| 436 | - * @param mixed $id |
|
| 436 | + * @param string $id |
|
| 437 | 437 | * @return string |
| 438 | 438 | */ |
| 439 | 439 | static function temp_link_id($app,$id) |
@@ -579,7 +579,7 @@ discard block |
||
| 579 | 579 | * @param string|array $id ='' id if $app_link_id is an appname or array with links, if 1. entry not yet created |
| 580 | 580 | * @param string $app2 ='' second app |
| 581 | 581 | * @param string $id2 ='' id in $app2 |
| 582 | - * @return array with link-data or False |
|
| 582 | + * @return string with link-data or False |
|
| 583 | 583 | */ |
| 584 | 584 | static function get_link($app_link_id,$id='',$app2='',$id2='') |
| 585 | 585 | { |
@@ -734,7 +734,6 @@ discard block |
||
| 734 | 734 | * |
| 735 | 735 | * @param string $app app to search |
| 736 | 736 | * @param string $pattern pattern to search |
| 737 | - * @param string $type Search only a certain sub-type of records (optional) |
|
| 738 | 737 | * @return array with $id => $title pairs of matching entries of app |
| 739 | 738 | */ |
| 740 | 739 | static function query($app,$pattern, &$options = array()) |
@@ -1232,7 +1231,6 @@ discard block |
||
| 1232 | 1231 | * @param string $app appname to link the file to |
| 1233 | 1232 | * @param string $id id in $app |
| 1234 | 1233 | * @param string $file VFS path to link to |
| 1235 | - * @param string $comment ='' comment to add to the link |
|
| 1236 | 1234 | */ |
| 1237 | 1235 | static function link_file($app,$id,$file)//,$comment='') |
| 1238 | 1236 | { |
@@ -1259,7 +1257,7 @@ discard block |
||
| 1259 | 1257 | * @param int|string $app > 0: file_id of an attchemnt or $app/$id entry which linked to |
| 1260 | 1258 | * @param string $id ='' id in app |
| 1261 | 1259 | * @param string $fname ='' filename |
| 1262 | - * @return boolean|array false on error ($app or $id not found), array with path as key and boolean result of delete |
|
| 1260 | + * @return boolean false on error ($app or $id not found), array with path as key and boolean result of delete |
|
| 1263 | 1261 | */ |
| 1264 | 1262 | static function delete_attached($app,$id='',$fname='') |
| 1265 | 1263 | { |
@@ -176,6 +176,11 @@ discard block |
||
| 176 | 176 | return is_array($id) ? $links : ($links[$id] ? $links[$id] : array()); |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | + /** |
|
| 180 | + * @param boolean $left |
|
| 181 | + * @param string $only_app |
|
| 182 | + * @param boolean $not_only |
|
| 183 | + */ |
|
| 179 | 184 | private static function _add2links($row,$left,$only_app,$not_only,array &$links) |
| 180 | 185 | { |
| 181 | 186 | $linked_app = $left ? $row['link_app2'] : $row['link_app1']; |
@@ -206,7 +211,7 @@ discard block |
||
| 206 | 211 | * @param string $id ='' id in $app, if no integer link_id given in $app_link_id |
| 207 | 212 | * @param string $app2 ='' appname of 2. endpoint of the link, if no integer link_id given in $app_link_id |
| 208 | 213 | * @param string $id2 ='' id in $app2, if no integer link_id given in $app_link_id |
| 209 | - * @return array with link-data or False |
|
| 214 | + * @return string with link-data or False |
|
| 210 | 215 | */ |
| 211 | 216 | static function get_link($app_link_id,$id='',$app2='',$id2='') |
| 212 | 217 | { |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | * forceEAProfileLoad |
| 430 | 430 | * used to force the load of a specific emailadmin profile; we assume administrative use only (as of now) |
| 431 | 431 | * @param int $_profile_id |
| 432 | - * @return object instance of Mail (by reference) |
|
| 432 | + * @return Mail instance of Mail (by reference) |
|
| 433 | 433 | */ |
| 434 | 434 | public static function &forceEAProfileLoad($_profile_id) |
| 435 | 435 | { |
@@ -704,7 +704,7 @@ discard block |
||
| 704 | 704 | /** |
| 705 | 705 | * Get all identities of given mailaccount |
| 706 | 706 | * |
| 707 | - * @param int|Mail\Account $account account-object or acc_id |
|
| 707 | + * @param integer $account account-object or acc_id |
|
| 708 | 708 | * @return array - array(email=>realname) |
| 709 | 709 | */ |
| 710 | 710 | function getAccountIdentities($account) |
@@ -1289,7 +1289,7 @@ discard block |
||
| 1289 | 1289 | * @param array $_filter filter to apply to getSortedList |
| 1290 | 1290 | * @param mixed $_thisUIDOnly = null, if given fetch the headers of this uid only (either one, or array of uids) |
| 1291 | 1291 | * @param boolean $_cacheResult = true try touse the cache of getSortedList |
| 1292 | - * @param mixed $_fetchPreviews = false (boolean/int) fetch part of the body of the messages requested (if integer the number is assumed to be the number of chars to be returned for preview; if set to true 300 chars are returned (when available)) |
|
| 1292 | + * @param boolean $_fetchPreviews = false (boolean/int) fetch part of the body of the messages requested (if integer the number is assumed to be the number of chars to be returned for preview; if set to true 300 chars are returned (when available)) |
|
| 1293 | 1293 | * @return array result as array(header=>array,total=>int,first=>int,last=>int) |
| 1294 | 1294 | */ |
| 1295 | 1295 | function getHeaders($_folderName, $_startMessage, $_numberOfMessages, $_sort, $_reverse, $_filter, $_thisUIDOnly=null, $_cacheResult=true, $_fetchPreviews=false) |
@@ -1866,6 +1866,7 @@ discard block |
||
| 1866 | 1866 | * |
| 1867 | 1867 | * @param mixed _sort the integer sort order / or a valid and handeled SORTSTRING (right now: UID/ARRIVAL/INTERNALDATE (->ARRIVAL)) |
| 1868 | 1868 | * @param bool _reverse wether to add REVERSE to the Sort String or not |
| 1869 | + * @param integer $_sort |
|
| 1869 | 1870 | * @return the sort sequence for horde search |
| 1870 | 1871 | */ |
| 1871 | 1872 | function _getSortString($_sort, $_reverse=false) |
@@ -2375,7 +2376,7 @@ discard block |
||
| 2375 | 2376 | * @param string _parent the parent foldername |
| 2376 | 2377 | * @param string _folderName the new foldername |
| 2377 | 2378 | * |
| 2378 | - * @return mixed name of the newly created folder or false on error |
|
| 2379 | + * @return string name of the newly created folder or false on error |
|
| 2379 | 2380 | * @throws Exception |
| 2380 | 2381 | */ |
| 2381 | 2382 | function renameFolder($_oldFolderName, $_parent, $_folderName) |
@@ -3247,7 +3248,7 @@ discard block |
||
| 3247 | 3248 | * @param string $_mailbox |
| 3248 | 3249 | * @param string $delimiter |
| 3249 | 3250 | * @param string $prefix |
| 3250 | - * @param string $reclevel 0, counter to keep track of the current recursionlevel |
|
| 3251 | + * @param integer $reclevel 0, counter to keep track of the current recursionlevel |
|
| 3251 | 3252 | * @return array of mailboxes |
| 3252 | 3253 | */ |
| 3253 | 3254 | function getMailBoxesRecursive($_mailbox, $delimiter, $prefix, $reclevel=0) |
@@ -3297,7 +3298,7 @@ discard block |
||
| 3297 | 3298 | * abstraction layer for getDraftFolder, getTemplateFolder, getTrashFolder and getSentFolder |
| 3298 | 3299 | * @param string $_type the type to fetch (Drafts|Template|Trash|Sent) |
| 3299 | 3300 | * @param boolean $_checkexistance trigger check for existance |
| 3300 | - * @param boolean& $created =null on return true: if folder was just created, false if not |
|
| 3301 | + * @param boolean $created =null on return true: if folder was just created, false if not |
|
| 3301 | 3302 | * @return mixed string or false |
| 3302 | 3303 | */ |
| 3303 | 3304 | function _getSpecialUseFolder($_type, $_checkexistance=TRUE, &$created=null) |
@@ -3429,7 +3430,7 @@ discard block |
||
| 3429 | 3430 | /** |
| 3430 | 3431 | * getTemplateFolder wrapper for _getSpecialUseFolder Type Template |
| 3431 | 3432 | * @param boolean $_checkexistance trigger check for existance |
| 3432 | - * @return mixed string or false |
|
| 3433 | + * @return string string or false |
|
| 3433 | 3434 | */ |
| 3434 | 3435 | function getTemplateFolder($_checkexistance=TRUE) |
| 3435 | 3436 | { |
@@ -3459,7 +3460,7 @@ discard block |
||
| 3459 | 3460 | /** |
| 3460 | 3461 | * getOutboxFolder wrapper for _getSpecialUseFolder Type Outbox |
| 3461 | 3462 | * @param boolean $_checkexistance trigger check for existance |
| 3462 | - * @return mixed string or false |
|
| 3463 | + * @return string string or false |
|
| 3463 | 3464 | */ |
| 3464 | 3465 | function getOutboxFolder($_checkexistance=TRUE) |
| 3465 | 3466 | { |
@@ -4298,7 +4299,7 @@ discard block |
||
| 4298 | 4299 | /** |
| 4299 | 4300 | * get part of the message, if its stucture is indicating its of multipart alternative style |
| 4300 | 4301 | * a wrapper for multipartmixed |
| 4301 | - * @param string/int $_uid the messageuid, |
|
| 4302 | + * @param integer $_uid the messageuid, |
|
| 4302 | 4303 | * @param Horde_Mime_Part $_structure structure for parsing |
| 4303 | 4304 | * @param string $_htmlMode how to display a message, html, plain text, ... |
| 4304 | 4305 | * @param boolean $_preserveSeen flag to preserve the seenflag by using body.peek |
@@ -4948,6 +4949,9 @@ discard block |
||
| 4948 | 4949 | return $message; |
| 4949 | 4950 | } |
| 4950 | 4951 | |
| 4952 | + /** |
|
| 4953 | + * @param integer $cols |
|
| 4954 | + */ |
|
| 4951 | 4955 | static function wordwrap($str, $cols, $cut, $dontbreaklinesstartingwith=false) |
| 4952 | 4956 | { |
| 4953 | 4957 | $lines = explode("\n", $str); |
@@ -5396,7 +5400,6 @@ discard block |
||
| 5396 | 5400 | * @param string $_partID = null |
| 5397 | 5401 | * @param string $_folder = null |
| 5398 | 5402 | * @param boolean $_preserveSeen = false flag to preserve the seenflag by using body.peek |
| 5399 | - * @param Horde_Imap_Client_Fetch_Query $fquery=null default query just structure |
|
| 5400 | 5403 | * @return Horde_Mime_Part |
| 5401 | 5404 | */ |
| 5402 | 5405 | function getStructure($_uid, $_partID=null, $_folder=null, $_preserveSeen=false) |
@@ -5987,6 +5990,7 @@ discard block |
||
| 5987 | 5990 | * @param preserveHTML flag to pass through to getdisplayableBody |
| 5988 | 5991 | * @param addHeaderSection flag to be able to supress headersection |
| 5989 | 5992 | * @param includeAttachments flag to be able to supress possible attachments |
| 5993 | + * @param Mail $mailClass |
|
| 5990 | 5994 | * @return array/bool with 'mailaddress'=>$mailaddress, |
| 5991 | 5995 | * 'subject'=>$subject, |
| 5992 | 5996 | * 'message'=>$message, |
@@ -6440,7 +6444,7 @@ discard block |
||
| 6440 | 6444 | * |
| 6441 | 6445 | * @param Mailer $_mailObject instance of the Mailer Object to be used |
| 6442 | 6446 | * @param string $_html2parse the html to parse and to be altered, if conditions meet |
| 6443 | - * @param $mail_bo mail bo object |
|
| 6447 | + * @param Mail $mail_bo mail bo object |
|
| 6444 | 6448 | * @return void |
| 6445 | 6449 | */ |
| 6446 | 6450 | static function processURL2InlineImages(Mailer $_mailObject, &$_html2parse, $mail_bo) |
@@ -6556,7 +6560,7 @@ discard block |
||
| 6556 | 6560 | * @param Storage\Merge Storage\Merge bo_merge object |
| 6557 | 6561 | * @param string $document the full filename |
| 6558 | 6562 | * @param array $SendAndMergeTocontacts array of contact ids |
| 6559 | - * @param string& $_folder (passed by reference) will set the folder used. must be set with a folder, but will hold modifications if |
|
| 6563 | + * @param string|null $_folder (passed by reference) will set the folder used. must be set with a folder, but will hold modifications if |
|
| 6560 | 6564 | * folder is modified |
| 6561 | 6565 | * @param string& $importID ID for the imported message, used by attachments to identify them unambiguously |
| 6562 | 6566 | * @return mixed array of messages with success and failed messages or exception |
@@ -6800,7 +6804,7 @@ discard block |
||
| 6800 | 6804 | /** |
| 6801 | 6805 | * Parses a message/rfc mail from file to the mailobject |
| 6802 | 6806 | * |
| 6803 | - * @param object $mailer instance of the SMTP Mailer Object |
|
| 6807 | + * @param Mailer $mailer instance of the SMTP Mailer Object |
|
| 6804 | 6808 | * @param string $tmpFileName string that points/leads to the file to be imported |
| 6805 | 6809 | * @throws Exception\NotFound if $fle is not found |
| 6806 | 6810 | */ |
@@ -486,7 +486,7 @@ discard block |
||
| 486 | 486 | * @param boolean $replace_placeholders =false should placeholders like {{n_fn}} be replaced |
| 487 | 487 | * @param string $field ='name' what to return as value: "ident_(realname|org|email|signature)" or default "name"=result from identity_name |
| 488 | 488 | * @param int $user =null account_id to use if not current user |
| 489 | - * @return Iterator ident_id => identity_name of identity |
|
| 489 | + * @return Api\Db\CallbackIterator ident_id => identity_name of identity |
|
| 490 | 490 | */ |
| 491 | 491 | public static function identities($account, $replace_placeholders=true, $field='name', $user=null) |
| 492 | 492 | { |
@@ -795,7 +795,7 @@ discard block |
||
| 795 | 795 | * |
| 796 | 796 | * To get $this->params you need to call getUserData before! It is never automatically loaded. |
| 797 | 797 | * |
| 798 | - * @param type $name |
|
| 798 | + * @param string $name |
|
| 799 | 799 | * @return mixed |
| 800 | 800 | */ |
| 801 | 801 | public function __get($name) |
@@ -819,8 +819,8 @@ discard block |
||
| 819 | 819 | /** |
| 820 | 820 | * Give read access to protected parameters in $this->params |
| 821 | 821 | * |
| 822 | - * @param type $name |
|
| 823 | - * @return mixed |
|
| 822 | + * @param string $name |
|
| 823 | + * @return boolean |
|
| 824 | 824 | */ |
| 825 | 825 | public function __isset($name) |
| 826 | 826 | { |
@@ -1340,10 +1340,10 @@ discard block |
||
| 1340 | 1340 | * @param boolean|string $just_name =true true: return self::identity_name, false: return Account objects, |
| 1341 | 1341 | * string with attribute-name: return that attribute, eg. acc_imap_host or 'params' to return all attributes as array |
| 1342 | 1342 | * @param string $order_by ='acc_name ASC' |
| 1343 | - * @param int|boolean $offset =false offset or false to return all |
|
| 1343 | + * @param boolean $offset =false offset or false to return all |
|
| 1344 | 1344 | * @param int $num_rows =0 number of rows to return, 0=default from prefs (if $offset !== false) |
| 1345 | 1345 | * @param boolean $replace_placeholders =true should placeholders like {{n_fn}} be replaced |
| 1346 | - * @return Iterator with acc_id => acc_name or Account objects |
|
| 1346 | + * @return Api\Db\CallbackIterator with acc_id => acc_name or Account objects |
|
| 1347 | 1347 | */ |
| 1348 | 1348 | public static function search($only_current_user=true, $just_name=true, $order_by=null, $offset=false, $num_rows=0, $replace_placeholders=true) |
| 1349 | 1349 | { |
@@ -322,6 +322,7 @@ |
||
| 322 | 322 | * @param int $account_id user-account password is for |
| 323 | 323 | * @param int &$pw_enc on return encryption used |
| 324 | 324 | * @param ressource $mcrypt =null mcrypt ressource for user, default calling self::init_crypt(true) |
| 325 | + * @param integer $pw_enc |
|
| 325 | 326 | * @return string encrypted password |
| 326 | 327 | */ |
| 327 | 328 | protected static function encrypt($password, $account_id, &$pw_enc, $mcrypt=null) |
@@ -36,9 +36,6 @@ discard block |
||
| 36 | 36 | * Hook called before an account get deleted |
| 37 | 37 | * |
| 38 | 38 | * @param array $data |
| 39 | - * @param int $data['account_id'] numerical id |
|
| 40 | - * @param string $data['account_lid'] account-name |
|
| 41 | - * @param int $data['new_owner'] account-id of new owner, or false if data should get deleted |
|
| 42 | 39 | */ |
| 43 | 40 | static function deleteaccount(array $data) |
| 44 | 41 | { |
@@ -52,8 +49,6 @@ discard block |
||
| 52 | 49 | * Hook called before a group get deleted |
| 53 | 50 | * |
| 54 | 51 | * @param array $data |
| 55 | - * @param int $data['account_id'] numerical id |
|
| 56 | - * @param string $data['account_name'] account-name |
|
| 57 | 52 | */ |
| 58 | 53 | static function deletegroup(array $data) |
| 59 | 54 | { |
@@ -64,9 +59,6 @@ discard block |
||
| 64 | 59 | * Hook called when an account get added or edited |
| 65 | 60 | * |
| 66 | 61 | * @param array $data |
| 67 | - * @param int $data['account_id'] numerical id |
|
| 68 | - * @param string $data['account_lid'] account-name |
|
| 69 | - * @param string $data['account_email'] email |
|
| 70 | 62 | */ |
| 71 | 63 | static function addaccount(array $data) |
| 72 | 64 | { |