@@ -517,11 +517,9 @@ discard block |
||
517 | 517 | * |
518 | 518 | * Standard identity is always first (as it has account_id=0 and we order account_id ASC). |
519 | 519 | * |
520 | - * @param int|array|emailadmin_account $account=null default this account, empty array() to get all identities of current user |
|
521 | - * @param boolean $replace_placeholders=false should placeholders like {{n_fn}} be replaced |
|
522 | - * @param string $field='name' what to return as value: "ident_(realname|org|email|signature)" or default "name"=result from identity_name |
|
523 | - * @param int $user=null account_id to use if not current user |
|
524 | - * @return Iterator ident_id => identity_name of identity |
|
520 | + * @param int|array|emailadmin_account $account default this account, empty array() to get all identities of current user |
|
521 | + * @param boolean $replace_placeholders should placeholders like {{n_fn}} be replaced |
|
522 | + * @return Traversable ident_id => identity_name of identity |
|
525 | 523 | */ |
526 | 524 | public /*static*/ function identities($account=null, $replace_placeholders=true, $field='name', $user=null) |
527 | 525 | { |
@@ -645,7 +643,7 @@ discard block |
||
645 | 643 | /** |
646 | 644 | * Return list of identities/signatures for given account ordered by give email on top and then by identity name |
647 | 645 | * |
648 | - * @param int|array|emailadmin_account $account=null default this account, empty array() to get all identities of current user |
|
646 | + * @param int|array|emailadmin_account $account default this account, empty array() to get all identities of current user |
|
649 | 647 | * @param string $order_email_top email address to order top |
650 | 648 | * @return array ident_id => ident_name pairs |
651 | 649 | */ |
@@ -674,8 +672,8 @@ discard block |
||
674 | 672 | * |
675 | 673 | * For full list of placeholders see addressbook_merge. |
676 | 674 | * |
677 | - * @param array|emailadmin_account $identity=null |
|
678 | - * @param int $account_id=null account_id of user, or current user |
|
675 | + * @param array|emailadmin_account $identity |
|
676 | + * @param int $account_id account_id of user, or current user |
|
679 | 677 | * @return array with modified fields |
680 | 678 | */ |
681 | 679 | public /*static*/ function replace_placeholders($identity=null, $account_id=null) |
@@ -772,7 +770,7 @@ discard block |
||
772 | 770 | * |
773 | 771 | * Can be called static, if identity is given as parameter |
774 | 772 | * |
775 | - * @param array|emailadmin_account $identity=null default standard identity of current account |
|
773 | + * @param array|emailadmin_account $identity default standard identity of current account |
|
776 | 774 | * @return int ident_id of new/updated identity |
777 | 775 | */ |
778 | 776 | public /*static*/ function save_identity($identity=null) |
@@ -833,7 +831,7 @@ discard block |
||
833 | 831 | * |
834 | 832 | * To get $this->params you need to call getUserData before! It is never automatically loaded. |
835 | 833 | * |
836 | - * @param type $name |
|
834 | + * @param string $name |
|
837 | 835 | * @return mixed |
838 | 836 | */ |
839 | 837 | public function __get($name) |
@@ -857,8 +855,8 @@ discard block |
||
857 | 855 | /** |
858 | 856 | * Give read access to protected parameters in $this->params |
859 | 857 | * |
860 | - * @param type $name |
|
861 | - * @return mixed |
|
858 | + * @param string $name |
|
859 | + * @return boolean |
|
862 | 860 | */ |
863 | 861 | public function __isset($name) |
864 | 862 | { |
@@ -931,7 +929,7 @@ discard block |
||
931 | 929 | * Check which rights current user has on mail-account |
932 | 930 | * |
933 | 931 | * @param int $rights EGW_ACL_(READ|EDIT|DELETE) |
934 | - * @param array|emailadmin_account $account=null default use this |
|
932 | + * @param array|emailadmin_account $account default use this |
|
935 | 933 | * @return boolean |
936 | 934 | */ |
937 | 935 | public /*static*/ function check_access($rights, $account=null) |
@@ -1289,10 +1287,10 @@ discard block |
||
1289 | 1287 | * @param boolean|string $just_name =true true: return self::identity_name, false: return emailadmin_account objects, |
1290 | 1288 | * string with attribute-name: return that attribute, eg. acc_imap_host or 'params' to return all attributes as array |
1291 | 1289 | * @param string $order_by ='acc_name ASC' |
1292 | - * @param int|boolean $offset =false offset or false to return all |
|
1290 | + * @param boolean $offset =false offset or false to return all |
|
1293 | 1291 | * @param int $num_rows =0 number of rows to return, 0=default from prefs (if $offset !== false) |
1294 | 1292 | * @param boolean $replace_placeholders =true should placeholders like {{n_fn}} be replaced |
1295 | - * @return Iterator with acc_id => acc_name or emailadmin_account objects |
|
1293 | + * @return Traversable with acc_id => acc_name or emailadmin_account objects |
|
1296 | 1294 | */ |
1297 | 1295 | public static function search($only_current_user=true, $just_name=true, $order_by=null, $offset=false, $num_rows=0, $replace_placeholders=true) |
1298 | 1296 | { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * |
47 | 47 | * Calls hook "imap_server_types" to allow applications to supply own server-types |
48 | 48 | * |
49 | - * @param boolean $extended=true |
|
49 | + * @param boolean $extended |
|
50 | 50 | * @return array classname => label pairs |
51 | 51 | */ |
52 | 52 | static public function getIMAPServerTypes($extended=true) |
@@ -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) |
@@ -20,7 +20,6 @@ discard block |
||
20 | 20 | * Hook called to add action to user |
21 | 21 | * |
22 | 22 | * @param array $data |
23 | - * @param int $data['account_id'] numerical id |
|
24 | 23 | */ |
25 | 24 | static function edit_user($data) |
26 | 25 | { |
@@ -81,9 +80,6 @@ discard block |
||
81 | 80 | * Hook called before an account get deleted |
82 | 81 | * |
83 | 82 | * @param array $data |
84 | - * @param int $data['account_id'] numerical id |
|
85 | - * @param string $data['account_lid'] account-name |
|
86 | - * @param int $data['new_owner'] account-id of new owner, or false if data should get deleted |
|
87 | 83 | */ |
88 | 84 | static function deleteaccount(array $data) |
89 | 85 | { |
@@ -97,8 +93,6 @@ discard block |
||
97 | 93 | * Hook called before a group get deleted |
98 | 94 | * |
99 | 95 | * @param array $data |
100 | - * @param int $data['account_id'] numerical id |
|
101 | - * @param string $data['account_name'] account-name |
|
102 | 96 | */ |
103 | 97 | static function deletegroup(array $data) |
104 | 98 | { |
@@ -109,9 +103,6 @@ discard block |
||
109 | 103 | * Hook called when an account get added or edited |
110 | 104 | * |
111 | 105 | * @param array $data |
112 | - * @param int $data['account_id'] numerical id |
|
113 | - * @param string $data['account_lid'] account-name |
|
114 | - * @param string $data['account_email'] email |
|
115 | 106 | */ |
116 | 107 | static function addaccount(array $data) |
117 | 108 | { |
@@ -81,7 +81,7 @@ |
||
81 | 81 | * |
82 | 82 | * @param string $key Cache key to expire. |
83 | 83 | * |
84 | - * @return boolean Success or failure. |
|
84 | + * @return boolean|null Success or failure. |
|
85 | 85 | */ |
86 | 86 | public function expire($key) |
87 | 87 | { |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * Construtor |
133 | 133 | * |
134 | 134 | * @param array |
135 | - * @param bool|int|string $_adminConnection create admin connection if true or account_id or imap username |
|
135 | + * @param boolean|string $_adminConnection create admin connection if true or account_id or imap username |
|
136 | 136 | * @param int $_timeout =null timeout in secs, if none given fmail pref or default of 20 is used |
137 | 137 | * @return void |
138 | 138 | */ |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | /** |
451 | 451 | * getSpecialUseFolders |
452 | 452 | * |
453 | - * @return current mailbox, or if none check on INBOX, and return upon existance |
|
453 | + * @return string mailbox, or if none check on INBOX, and return upon existance |
|
454 | 454 | */ |
455 | 455 | function getCurrentMailbox() |
456 | 456 | { |
@@ -568,7 +568,7 @@ discard block |
||
568 | 568 | * Returns an array containing the names of the selected mailboxes |
569 | 569 | * |
570 | 570 | * @param string $reference base mailbox to start the search (default is current mailbox) |
571 | - * @param string $restriction_search false or 0 means return all mailboxes |
|
571 | + * @param integer $restriction_search false or 0 means return all mailboxes |
|
572 | 572 | * true or 1 return only the mailbox that contains that exact name |
573 | 573 | * 2 return all mailboxes in that hierarchy level |
574 | 574 | * @param string $returnAttributes true means return an assoc array containing mailbox names and mailbox attributes |
@@ -652,7 +652,7 @@ discard block |
||
652 | 652 | * Returns an array containing the names of the subscribed selected mailboxes |
653 | 653 | * |
654 | 654 | * @param string $reference base mailbox to start the search |
655 | - * @param string $restriction_search false or 0 means return all mailboxes |
|
655 | + * @param integer $restriction_search false or 0 means return all mailboxes |
|
656 | 656 | * true or 1 return only the mailbox that contains that exact name |
657 | 657 | * 2 return all mailboxes in that hierarchy level |
658 | 658 | * @param string $returnAttributes true means return an assoc array containing mailbox names and mailbox attributes |
@@ -720,7 +720,7 @@ discard block |
||
720 | 720 | * Returns an array containing the names of the selected unsubscribed mailboxes |
721 | 721 | * |
722 | 722 | * @param string $reference base mailbox to start the search |
723 | - * @param string $restriction_search false or 0 means return all mailboxes |
|
723 | + * @param integer $restriction_search false or 0 means return all mailboxes |
|
724 | 724 | * true or 1 return only the mailbox that contains that exact name |
725 | 725 | * 2 return all mailboxes in that hierarchy level |
726 | 726 | * |
@@ -898,6 +898,7 @@ discard block |
||
898 | 898 | * |
899 | 899 | * @var array $_nameSpace |
900 | 900 | * @var string $_folderName |
901 | + * @param string $_folderName |
|
901 | 902 | * @return string the prefix (may be an empty string) |
902 | 903 | */ |
903 | 904 | static function getFolderPrefixFromNamespace($_nameSpace, $_folderName) |
@@ -916,7 +917,7 @@ discard block |
||
916 | 917 | * @param string $_mailbox |
917 | 918 | * @param string $delimiter |
918 | 919 | * @param string $prefix |
919 | - * @param string $reclevel = 0, counter to keep track of the current recursionlevel |
|
920 | + * @param integer $reclevel = 0, counter to keep track of the current recursionlevel |
|
920 | 921 | * @return array of mailboxes |
921 | 922 | */ |
922 | 923 | function getMailBoxesRecursive($_mailbox, $delimiter, $prefix, $reclevel=0) |
@@ -1355,7 +1356,7 @@ discard block |
||
1355 | 1356 | /** |
1356 | 1357 | * Get vacation message for given user |
1357 | 1358 | * |
1358 | - * @param int|string $_euser nummeric account_id or imap username |
|
1359 | + * @param string|null $_euser nummeric account_id or imap username |
|
1359 | 1360 | * @param string $_scriptName =null |
1360 | 1361 | * @throws Exception on connection error or authentication failure |
1361 | 1362 | * @return array |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | * forceEAProfileLoad |
411 | 411 | * used to force the load of a specific emailadmin profile; we assume administrative use only (as of now) |
412 | 412 | * @param int $_profile_id |
413 | - * @return object instance of emailadmin_imapbase (by reference) |
|
413 | + * @return emailadmin_imapbase instance of emailadmin_imapbase (by reference) |
|
414 | 414 | */ |
415 | 415 | public static function &forceEAProfileLoad($_profile_id) |
416 | 416 | { |
@@ -684,7 +684,7 @@ discard block |
||
684 | 684 | /** |
685 | 685 | * Get all identities of given mailaccount |
686 | 686 | * |
687 | - * @param int|emailadmin_account $account account-object or acc_id |
|
687 | + * @param integer $account account-object or acc_id |
|
688 | 688 | * @return array - array(email=>realname) |
689 | 689 | */ |
690 | 690 | function getAccountIdentities($account) { |
@@ -1794,6 +1794,7 @@ discard block |
||
1794 | 1794 | * |
1795 | 1795 | * @param mixed _sort the integer sort order / or a valid and handeled SORTSTRING (right now: UID/ARRIVAL/INTERNALDATE (->ARRIVAL)) |
1796 | 1796 | * @param bool _reverse wether to add REVERSE to the Sort String or not |
1797 | + * @param integer $_sort |
|
1797 | 1798 | * @return the sort sequence for horde search |
1798 | 1799 | */ |
1799 | 1800 | function _getSortString($_sort, $_reverse=false) |
@@ -2229,7 +2230,7 @@ discard block |
||
2229 | 2230 | * @param string _parent the parent foldername |
2230 | 2231 | * @param string _folderName the new foldername |
2231 | 2232 | * |
2232 | - * @return mixed name of the newly created folder or false on error |
|
2233 | + * @return string name of the newly created folder or false on error |
|
2233 | 2234 | * @throws egw_exception |
2234 | 2235 | */ |
2235 | 2236 | function renameFolder($_oldFolderName, $_parent, $_folderName) |
@@ -3073,7 +3074,7 @@ discard block |
||
3073 | 3074 | * @param string $_mailbox |
3074 | 3075 | * @param string $delimiter |
3075 | 3076 | * @param string $prefix |
3076 | - * @param string $reclevel 0, counter to keep track of the current recursionlevel |
|
3077 | + * @param integer $reclevel 0, counter to keep track of the current recursionlevel |
|
3077 | 3078 | * @return array of mailboxes |
3078 | 3079 | */ |
3079 | 3080 | function getMailBoxesRecursive($_mailbox, $delimiter, $prefix, $reclevel=0) |
@@ -3123,7 +3124,7 @@ discard block |
||
3123 | 3124 | * abstraction layer for getDraftFolder, getTemplateFolder, getTrashFolder and getSentFolder |
3124 | 3125 | * @param string $_type the type to fetch (Drafts|Template|Trash|Sent) |
3125 | 3126 | * @param boolean $_checkexistance trigger check for existance |
3126 | - * @param boolean& $created =null on return true: if folder was just created, false if not |
|
3127 | + * @param boolean $created =null on return true: if folder was just created, false if not |
|
3127 | 3128 | * @return mixed string or false |
3128 | 3129 | */ |
3129 | 3130 | function _getSpecialUseFolder($_type, $_checkexistance=TRUE, &$created=null) |
@@ -3245,7 +3246,7 @@ discard block |
||
3245 | 3246 | /** |
3246 | 3247 | * getTemplateFolder wrapper for _getSpecialUseFolder Type Template |
3247 | 3248 | * @param boolean $_checkexistance trigger check for existance |
3248 | - * @return mixed string or false |
|
3249 | + * @return string string or false |
|
3249 | 3250 | */ |
3250 | 3251 | function getTemplateFolder($_checkexistance=TRUE) |
3251 | 3252 | { |
@@ -3275,7 +3276,7 @@ discard block |
||
3275 | 3276 | /** |
3276 | 3277 | * getOutboxFolder wrapper for _getSpecialUseFolder Type Outbox |
3277 | 3278 | * @param boolean $_checkexistance trigger check for existance |
3278 | - * @return mixed string or false |
|
3279 | + * @return string string or false |
|
3279 | 3280 | */ |
3280 | 3281 | function getOutboxFolder($_checkexistance=TRUE) |
3281 | 3282 | { |
@@ -4104,7 +4105,7 @@ discard block |
||
4104 | 4105 | /** |
4105 | 4106 | * get part of the message, if its stucture is indicating its of multipart alternative style |
4106 | 4107 | * a wrapper for multipartmixed |
4107 | - * @param string/int $_uid the messageuid, |
|
4108 | + * @param integer $_uid the messageuid, |
|
4108 | 4109 | * @param Horde_Mime_Part $_structure structure for parsing |
4109 | 4110 | * @param string $_htmlMode how to display a message, html, plain text, ... |
4110 | 4111 | * @param boolean $_preserveSeen flag to preserve the seenflag by using body.peek |
@@ -4754,6 +4755,9 @@ discard block |
||
4754 | 4755 | return $message; |
4755 | 4756 | } |
4756 | 4757 | |
4758 | + /** |
|
4759 | + * @param integer $cols |
|
4760 | + */ |
|
4757 | 4761 | static function wordwrap($str, $cols, $cut, $dontbreaklinesstartingwith=false) |
4758 | 4762 | { |
4759 | 4763 | $lines = explode("\n", $str); |
@@ -5194,7 +5198,6 @@ discard block |
||
5194 | 5198 | * @param string $_partID = null |
5195 | 5199 | * @param string $_folder = null |
5196 | 5200 | * @param boolean $_preserveSeen = false flag to preserve the seenflag by using body.peek |
5197 | - * @param Horde_Imap_Client_Fetch_Query $fquery=null default query just structure |
|
5198 | 5201 | * @return Horde_Mime_Part |
5199 | 5202 | */ |
5200 | 5203 | function getStructure($_uid, $_partID=null, $_folder=null, $_preserveSeen=false) |
@@ -5773,6 +5776,7 @@ discard block |
||
5773 | 5776 | * @param preserveHTML flag to pass through to getdisplayableBody |
5774 | 5777 | * @param addHeaderSection flag to be able to supress headersection |
5775 | 5778 | * @param includeAttachments flag to be able to supress possible attachments |
5779 | + * @param emailadmin_imapbase $mailClass |
|
5776 | 5780 | * @return array/bool with 'mailaddress'=>$mailaddress, |
5777 | 5781 | * 'subject'=>$subject, |
5778 | 5782 | * 'message'=>$message, |
@@ -6226,7 +6230,7 @@ discard block |
||
6226 | 6230 | * |
6227 | 6231 | * @param egw_mailer $_mailObject instance of the egw_mailer/phpmailer Object to be used |
6228 | 6232 | * @param string $_html2parse the html to parse and to be altered, if conditions meet |
6229 | - * @param $mail_bo mail bo object |
|
6233 | + * @param mail_bo $mail_bo mail bo object |
|
6230 | 6234 | * @return void |
6231 | 6235 | */ |
6232 | 6236 | static function processURL2InlineImages($_mailObject, &$_html2parse, $mail_bo) |
@@ -6585,7 +6589,7 @@ discard block |
||
6585 | 6589 | /** |
6586 | 6590 | * Parses a message/rfc mail from file to the mailobject |
6587 | 6591 | * |
6588 | - * @param object $mailer instance of the SMTP Mailer Object |
|
6592 | + * @param egw_mailer $mailer instance of the SMTP Mailer Object |
|
6589 | 6593 | * @param string $tmpFileName string that points/leads to the file to be imported |
6590 | 6594 | * @throws egw_exception_not_found if $fle is not found |
6591 | 6595 | */ |
@@ -52,6 +52,10 @@ discard block |
||
52 | 52 | var $debug=false; |
53 | 53 | |
54 | 54 | // class constructor |
55 | + |
|
56 | + /** |
|
57 | + * @param string $scriptname |
|
58 | + */ |
|
55 | 59 | function __construct ($scriptname) { |
56 | 60 | $this->name = $scriptname; |
57 | 61 | $this->script = ''; |
@@ -69,7 +73,7 @@ discard block |
||
69 | 73 | /** |
70 | 74 | * Retrieve the rules |
71 | 75 | * |
72 | - * @param bosieve $connection |
|
76 | + * @param emailadmin_sieve $connection |
|
73 | 77 | * @return boolean true, if script written successfull |
74 | 78 | */ |
75 | 79 | function retrieveRules ($connection) { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * |
117 | 117 | * @param emailadmin_imap $_icServer |
118 | 118 | * @param string $euser effictive user, if given the Cyrus admin account is used to login on behalf of $euser |
119 | - * @return mixed 'die' = sieve not enabled, false=connect or login failure, true=success |
|
119 | + * @return string|boolean 'die' = sieve not enabled, false=connect or login failure, true=success |
|
120 | 120 | */ |
121 | 121 | function _connect(emailadmin_imap $_icServer, $euser='') |
122 | 122 | { |
@@ -314,6 +314,7 @@ discard block |
||
314 | 314 | * |
315 | 315 | * @param string if !=null,check this one first if reported as serverMethod. |
316 | 316 | * if so, return as bestauthmethod |
317 | + * @param string $userMethod |
|
317 | 318 | * @return mixed Returns a string containing the name of the best |
318 | 319 | * supported authentication method or a PEAR_Error object |
319 | 320 | * if a failure condition is encountered. |
@@ -606,7 +607,7 @@ discard block |
||
606 | 607 | * |
607 | 608 | * @param array $_emailNotification |
608 | 609 | * @param string $_scriptName |
609 | - * @return emailadmin_script |
|
610 | + * @return boolean |
|
610 | 611 | */ |
611 | 612 | function setEmailNotification(array $_emailNotification, $_scriptName=null) |
612 | 613 | { |