Changeset 5c461ba in github
- Timestamp:
- Sep 29, 2010 12:47:05 PM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 33da0b4
- Parents:
- c609784
- Location:
- program/include
- Files:
-
- 14 edited
-
html.php (modified) (25 diffs)
-
main.inc (modified) (22 diffs)
-
rcmail.php (modified) (7 diffs)
-
rcube_addressbook.php (modified) (5 diffs)
-
rcube_config.php (modified) (7 diffs)
-
rcube_contacts.php (modified) (6 diffs)
-
rcube_html_page.php (modified) (6 diffs)
-
rcube_imap.php (modified) (95 diffs)
-
rcube_json_output.php (modified) (8 diffs)
-
rcube_mdb2.php (modified) (24 diffs)
-
rcube_message.php (modified) (11 diffs)
-
rcube_plugin.php (modified) (15 diffs)
-
rcube_plugin_api.php (modified) (14 diffs)
-
rcube_user.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/html.php
re019f2d r5c461ba 40 40 * Constructor 41 41 * 42 * @param array Hash array with tag attributes42 * @param array $attrib Hash array with tag attributes 43 43 */ 44 44 public function __construct($attrib = array()) … … 64 64 * Generic method to create a HTML tag 65 65 * 66 * @param string Tag name67 * @param array Tag attributes as key/value pairs68 * @param string Optinal Tag content (creates a container tag)69 * @param array List with allowed attributes, omit to allow all66 * @param string $tagname Tag name 67 * @param array $attrib Tag attributes as key/value pairs 68 * @param string $content Optinal Tag content (creates a container tag) 69 * @param array $allowed_attrib List with allowed attributes, omit to allow all 70 70 * @return string The XHTML tag 71 71 */ … … 89 89 * Derrived method for <div> containers 90 90 * 91 * @param mixed Hash array with tag attributes or string with class name92 * @param string Div content91 * @param mixed $attr Hash array with tag attributes or string with class name 92 * @param string $cont Div content 93 93 * @return string HTML code 94 94 * @see html::tag() … … 105 105 * Derrived method for <p> blocks 106 106 * 107 * @param mixed Hash array with tag attributes or string with class name108 * @param string Paragraph content107 * @param mixed $attr Hash array with tag attributes or string with class name 108 * @param string $cont Paragraph content 109 109 * @return string HTML code 110 110 * @see html::tag() … … 121 121 * Derrived method to create <img /> 122 122 * 123 * @param mixed Hash array with tag attributes or string with image source (src)123 * @param mixed $attr Hash array with tag attributes or string with image source (src) 124 124 * @return string HTML code 125 125 * @see html::tag() … … 137 137 * Derrived method for link tags 138 138 * 139 * @param mixed Hash array with tag attributes or string with link location (href)140 * @param string Link content139 * @param mixed $attr Hash array with tag attributes or string with link location (href) 140 * @param string $cont Link content 141 141 * @return string HTML code 142 142 * @see html::tag() … … 154 154 * Derrived method for inline span tags 155 155 * 156 * @param mixed Hash array with tag attributes or string with class name157 * @param string Tag content156 * @param mixed $attr Hash array with tag attributes or string with class name 157 * @param string $cont Tag content 158 158 * @return string HTML code 159 159 * @see html::tag() … … 170 170 * Derrived method for form element labels 171 171 * 172 * @param mixed Hash array with tag attributes or string with 'for' attrib173 * @param string Tag content172 * @param mixed $attr Hash array with tag attributes or string with 'for' attrib 173 * @param string $cont Tag content 174 174 * @return string HTML code 175 175 * @see html::tag() … … 186 186 * Derrived method to create <iframe></iframe> 187 187 * 188 * @param mixed Hash array with tag attributes or string with frame source (src)188 * @param mixed $attr Hash array with tag attributes or string with frame source (src) 189 189 * @return string HTML code 190 190 * @see html::tag() … … 213 213 * Create string with attributes 214 214 * 215 * @param array Associative arry with tag attributes216 * @param array List of allowed attributes215 * @param array $attrib Associative arry with tag attributes 216 * @param array $allowed List of allowed attributes 217 217 * @return string Valid attribute string 218 218 */ … … 271 271 'spellcheck','results','maxlength','src'); 272 272 273 /** 274 * Object constructor 275 * 276 * @param array $attrib Associative array with tag attributes 277 */ 273 278 public function __construct($attrib = array()) 274 279 { … … 289 294 * Compose input tag 290 295 * 291 * @param string Field value292 * @param array Additional attributes to override296 * @param string $value Field value 297 * @param array $attrib Additional attributes to override 293 298 * @return string HTML output 294 299 */ … … 335 340 * Constructor 336 341 * 337 * @param array Named tag attributes342 * @param array $attrib Named tag attributes 338 343 */ 339 344 public function __construct($attrib = null) … … 347 352 * Add a hidden field to this instance 348 353 * 349 * @param array Named tag attributes354 * @param array $attrib Named tag attributes 350 355 */ 351 356 public function add($attrib) … … 381 386 * Get HTML code for this object 382 387 * 383 * @param string Value of the checked field384 * @param array Additional attributes to override388 * @param string $value Value of the checked field 389 * @param array $attrib Additional attributes to override 385 390 * @return string HTML output 386 391 */ … … 411 416 * Get HTML code for this object 412 417 * 413 * @param string Value of the checked field414 * @param array Additional attributes to override418 * @param string $value Value of the checked field 419 * @param array $attrib Additional attributes to override 415 420 * @return string HTML output 416 421 */ … … 443 448 * Get HTML code for this object 444 449 * 445 * @param string Textbox value446 * @param array Additional attributes to override450 * @param string $value Textbox value 451 * @param array $attrib Additional attributes to override 447 452 * @return string HTML output 448 453 */ … … 502 507 * Add a new option to this drop-down 503 508 * 504 * @param mixed Option name or array with option names505 * @param mixed Option value or array with option values509 * @param mixed $names Option name or array with option names 510 * @param mixed $values Option value or array with option values 506 511 */ 507 512 public function add($names, $values = null) … … 521 526 * Get HTML code for this object 522 527 * 523 * @param string Value of the selection option524 * @param array Additional attributes to override528 * @param string $select Value of the selection option 529 * @param array $attrib Additional attributes to override 525 530 * @return string HTML output 526 531 */ … … 563 568 private $colindex = 0; 564 569 565 570 /** 571 * Constructor 572 * 573 * @param array $attrib Named tag attributes 574 */ 566 575 public function __construct($attrib = array()) 567 576 { … … 572 581 * Add a table cell 573 582 * 574 * @param array Cell attributes575 * @param string Cell content583 * @param array $attr Cell attributes 584 * @param string $cont Cell content 576 585 */ 577 586 public function add($attr, $cont) … … 596 605 * Add a table header cell 597 606 * 598 * @param array Cell attributes599 * @param string Cell content607 * @param array $attr Cell attributes 608 * @param string $cont Cell content 600 609 */ 601 610 public function add_header($attr, $cont) … … 641 650 * Jump to next row 642 651 * 643 * @param array Row attributes652 * @param array $attr Row attributes 644 653 */ 645 654 public function add_row($attr = array()) … … 655 664 * Set current row attrib 656 665 * 657 * @param array Row attributes666 * @param array $attr Row attributes 658 667 */ 659 668 public function set_row_attribs($attr = array()) … … 668 677 * Build HTML output of the table data 669 678 * 670 * @param array Table attributes679 * @param array $attrib Table attributes 671 680 * @return string The final table HTML code 672 681 */ -
program/include/main.inc
re999919 r5c461ba 152 152 * Garbage collector for cache entries. 153 153 * Remove all expired message cache records 154 * @return void 154 155 */ 155 156 function rcmail_cache_gc() … … 188 189 * @param string Suspected charset of the input string 189 190 * @param string Target charset to convert to; defaults to RCMAIL_CHARSET 190 * @return Converted string191 * @return string Converted string 191 192 */ 192 193 function rcube_charset_convert($str, $from, $to=NULL) … … 323 324 * but we need strict names for charset conversion (specially utf8 class) 324 325 * 325 * @param string Input charset name326 * @return The validated charset name326 * @param string Input charset name 327 * @return string The validated charset name 327 328 */ 328 329 function rcube_parse_charset($input) … … 428 429 * 429 430 * @param string Input string 430 * @return The converted string431 * @return string The converted string 431 432 */ 432 433 function rcube_utf7_to_utf8($str) … … 487 488 * 488 489 * @param string Input string 489 * @return The converted string490 * @return string The converted string 490 491 */ 491 492 function rcube_utf16_to_utf8($str) … … 518 519 * @param string Replace mode for tags: show|replace|remove 519 520 * @param boolean Convert newlines 520 * @return The quoted string521 * @return string The quoted string 521 522 */ 522 523 function rep_specialchars_output($str, $enctype='', $mode='', $newlines=TRUE) … … 1088 1089 * 1089 1090 * @param mixed Debug message or data 1091 * @return void 1090 1092 */ 1091 1093 function console() … … 1122 1124 * @param $name name of log file 1123 1125 * @param line Line to append 1126 * @return void 1124 1127 */ 1125 1128 function write_log($name, $line) … … 1174 1177 /** 1175 1178 * Write login data (name, ID, IP address) to the 'userlogins' log file. 1179 * 1180 * @return void 1176 1181 */ 1177 1182 function rcmail_log_login() … … 1202 1207 /** 1203 1208 * @access private 1209 * @return mixed 1204 1210 */ 1205 1211 function rcube_timer() … … 1211 1217 /** 1212 1218 * @access private 1219 * @return void 1213 1220 */ 1214 1221 function rcube_print_time($timer, $label='Timer', $dest='console') … … 1293 1300 * 1294 1301 * @param array Named parameters 1295 * @return objecthtml_select HTML drop-down object1302 * @return html_select HTML drop-down object 1296 1303 */ 1297 1304 function rcmail_mailbox_select($p = array()) … … 1320 1327 * Create a hierarchical array of the mailbox list 1321 1328 * @access private 1329 * @return void 1322 1330 */ 1323 1331 function rcmail_build_folder_tree(&$arrFolders, $folder, $delm='/', $path='') … … 1355 1363 * Return html for a structured list <ul> for the mailbox tree 1356 1364 * @access private 1365 * @return string 1357 1366 */ 1358 1367 function rcmail_render_folder_tree_html(&$arrFolders, &$mbox_name, &$jslist, $attrib, $nestLevel=0) … … 1453 1462 * Return html for a flat list <select> for the mailbox tree 1454 1463 * @access private 1464 * @return string 1455 1465 */ 1456 1466 function rcmail_render_folder_tree_select(&$arrFolders, &$mbox_name, $maxlength, &$select, $realnames=false, $nestLevel=0) … … 1486 1496 * Return internal name for the given folder if it matches the configured special folders 1487 1497 * @access private 1498 * @return string 1488 1499 */ 1489 1500 function rcmail_folder_classname($folder_id) … … 1523 1534 * 1524 1535 * @param string Editor mode 1536 * @return void 1525 1537 */ 1526 1538 function rcube_html_editor($mode='') … … 1553 1565 * @param integer HTTPS port number 1554 1566 * @param boolean Enables 'use_https' option checking 1567 * @return boolean 1555 1568 */ 1556 1569 function rcube_https_check($port=null, $use_https=true) … … 1571 1584 1572 1585 1573 // for backward compatibility 1586 /** 1587 * For backward compatibility. 1588 * 1589 * @global rcmail $RCMAIL 1590 * @param string $var_name Variable name. 1591 * @return void 1592 */ 1574 1593 function rcube_sess_unset($var_name=null) 1575 1594 { … … 1580 1599 1581 1600 1582 // Replaces hostname variables 1601 1602 /** 1603 * Replaces hostname variables 1604 * 1605 * @param string $name Hostname 1606 * @return string 1607 */ 1583 1608 function rcube_parse_host($name) 1584 1609 { … … 1599 1624 /** 1600 1625 * E-mail address validation 1626 * 1627 * @param string $email Email address 1628 * @param boolean $dns_check True to check dns 1629 * @return boolean 1601 1630 */ 1602 1631 function check_email($email, $dns_check=true) … … 1724 1753 * 1725 1754 * @param array Named parameters 1755 * @return void 1726 1756 * @see raise_error() 1727 1757 */ -
program/include/rcmail.php
re999919 r5c461ba 29 29 class rcmail 30 30 { 31 /** 32 * Main tasks. 33 * 34 * @var array 35 */ 31 36 static public $main_tasks = array('mail','settings','addressbook','login','logout','utils','dummy'); 32 37 38 /** 39 * Singleton instace of rcmail 40 * 41 * @var rcmail 42 */ 33 43 static private $instance; 34 44 45 /** 46 * Stores instance of rcube_config. 47 * 48 * @var rcube_config 49 */ 35 50 public $config; 51 52 /** 53 * Stores rcube_user instance. 54 * 55 * @var rcube_user 56 */ 36 57 public $user; 58 59 /** 60 * Instace of database class. 61 * 62 * @var rcube_mdb2 63 */ 37 64 public $db; 65 66 /** 67 * Instace of rcube_session class. 68 * 69 * @var rcube_session 70 */ 38 71 public $session; 72 73 /** 74 * Instance of rcube_smtp class. 75 * 76 * @var rcube_smtp 77 */ 39 78 public $smtp; 79 80 /** 81 * Instance of rcube_imap class. 82 * 83 * @var rcube_imap 84 */ 40 85 public $imap; 86 87 /** 88 * Instance of rcube_template class. 89 * 90 * @var rcube_template 91 */ 41 92 public $output; 93 94 /** 95 * Instance of rcube_plugin_api. 96 * 97 * @var rcube_plugin_api 98 */ 42 99 public $plugins; 100 101 /** 102 * Current task. 103 * 104 * @var string 105 */ 43 106 public $task; 107 108 /** 109 * Current action. 110 * 111 * @var string 112 */ 44 113 public $action = ''; 45 114 public $comm_path = './'; … … 52 121 * This implements the 'singleton' design pattern 53 122 * 54 * @return objectrcmail The one and only instance123 * @return rcmail The one and only instance 55 124 */ 56 125 static function get_instance() … … 155 224 * Setter for system user object 156 225 * 157 * @param objectrcube_user Current user instance226 * @param rcube_user Current user instance 158 227 */ 159 228 public function set_user($user) … … 227 296 * Get the current database connection 228 297 * 229 * @return objectrcube_mdb2 Database connection object298 * @return rcube_mdb2 Database connection object 230 299 */ 231 300 public function get_dbh() … … 248 317 * @param string Address book identifier 249 318 * @param boolean True if the address book needs to be writeable 250 * @return objectrcube_contacts Address book object319 * @return rcube_contacts Address book object 251 320 */ 252 321 public function get_address_book($id, $writeable = false) … … 347 416 * 348 417 * @param boolean True if this request is loaded in a (i)frame 349 * @return objectrcube_template Reference to HTML output object418 * @return rcube_template Reference to HTML output object 350 419 */ 351 420 public function load_gui($framed = false) … … 380 449 * Create an output object for JSON responses 381 450 * 382 * @return objectrcube_json_output Reference to JSON output object451 * @return rcube_json_output Reference to JSON output object 383 452 */ 384 453 public function json_init() -
program/include/rcube_addressbook.php
re019f2d r5c461ba 84 84 * Count number of available contacts in database 85 85 * 86 * @return objectrcube_result_set Result set with values for 'count' and 'first'86 * @return rcube_result_set Result set with values for 'count' and 'first' 87 87 */ 88 88 abstract function count(); … … 91 91 * Return the last result set 92 92 * 93 * @return objectrcube_result_set Current result set or NULL if nothing selected yet93 * @return rcube_result_set Current result set or NULL if nothing selected yet 94 94 */ 95 95 abstract function get_result(); … … 143 143 * @param array Assoziative array with save data 144 144 * @param boolean True to check for duplicates first 145 * @return The created record ID on success, False on error145 * @return mixed The created record ID on success, False on error 146 146 */ 147 147 function insert($save_data, $check=false) … … 155 155 * @param mixed Record identifier 156 156 * @param array Assoziative array with save data 157 * @return True on success, False on error157 * @return boolean True on success, False on error 158 158 */ 159 159 function update($id, $save_cols) … … 184 184 * 185 185 * @param string The group name 186 * @return False on error, array with record props in success186 * @return mixed False on error, array with record props in success 187 187 */ 188 188 function create_group($name) -
program/include/rcube_config.php
re999919 r5c461ba 131 131 * and merge with the already stored config values 132 132 * 133 * @param string Full path to the config file to be loaded133 * @param string $fpath Full path to the config file to be loaded 134 134 * @return booelan True on success, false on failure 135 135 */ … … 151 151 * Getter for a specific config parameter 152 152 * 153 * @param string Parameter name154 * @param mixed Default value if not set153 * @param string $name Parameter name 154 * @param mixed $def Default value if not set 155 155 * @return mixed The requested config value 156 156 */ … … 164 164 * Setter for a config parameter 165 165 * 166 * @param string Parameter name167 * @param mixed Parameter value166 * @param string $name Parameter name 167 * @param mixed $value Parameter value 168 168 */ 169 169 public function set($name, $value) … … 176 176 * Override config options with the given values (eg. user prefs) 177 177 * 178 * @param array Hash array with config props to merge over178 * @param array $prefs Hash array with config props to merge over 179 179 */ 180 180 public function merge($prefs) … … 188 188 * and make sure that they survive further merging. 189 189 * 190 * @param array Hash array with user prefs190 * @param array $prefs Hash array with user prefs 191 191 */ 192 192 public function set_user_prefs($prefs) … … 211 211 * Return requested DES crypto key. 212 212 * 213 * @param string Crypto key name213 * @param string $key Crypto key name 214 214 * @return string Crypto key 215 215 */ … … 275 275 * Return the mail domain configured for the given host 276 276 * 277 * @param string IMAP host278 * @param boolean If true, domain name will be converted to IDN ASCII277 * @param string $host IMAP host 278 * @param boolean $encode If true, domain name will be converted to IDN ASCII 279 279 * @return string Resolved SMTP host 280 280 */ -
program/include/rcube_contacts.php
re019f2d r5c461ba 33 33 protected $db_groupmembers = 'contactgroupmembers'; 34 34 35 /** 36 * Store database connection. 37 * 38 * @var rcube_mdb2 39 */ 35 40 private $db = null; 36 41 private $user_id = 0; … … 311 316 * Return the last result set 312 317 * 313 * @return Result array or NULL if nothing selected yet318 * @return mixed Result array or NULL if nothing selected yet 314 319 */ 315 320 function get_result() … … 323 328 * 324 329 * @param mixed record identifier(s) 325 * @return Result object with all record fields or False if not found330 * @return mixed Result object with all record fields or False if not found 326 331 */ 327 332 function get_record($id, $assoc=false) … … 354 359 * 355 360 * @param array Assoziative array with save data 356 * @return The created record ID on success, False on error361 * @return integer|boolean The created record ID on success, False on error 357 362 */ 358 363 function insert($save_data, $check=false) … … 413 418 * @param mixed Record identifier 414 419 * @param array Assoziative array with save data 415 * @return True on success, False on error420 * @return boolean True on success, False on error 416 421 */ 417 422 function update($id, $save_cols) … … 485 490 * 486 491 * @param string The group name 487 * @return False on error, array with record props in success492 * @return mixed False on error, array with record props in success 488 493 */ 489 494 function create_group($name) -
program/include/rcube_html_page.php
re019f2d r5c461ba 85 85 /** 86 86 * Add HTML code to the page header 87 * 88 * @param string $str HTML code 87 89 */ 88 90 public function add_header($str) … … 94 96 * Add HTML code to the page footer 95 97 * To be added right befor </body> 98 * 99 * @param string $str HTML code 96 100 */ 97 101 public function add_footer($str) … … 102 106 /** 103 107 * Setter for page title 108 * 109 * @param string $t Page title 104 110 */ 105 111 public function set_title($t) … … 111 117 * Setter for output charset. 112 118 * To be specified in a meta tag and sent as http-header 119 * 120 * @param string $charset Charset 113 121 */ 114 122 public function set_charset($charset) … … 119 127 /** 120 128 * Getter for output charset 129 * 130 * @return string Output charset 121 131 */ 122 132 public function get_charset() … … 264 274 /** 265 275 * Callback function for preg_replace_callback in write() 276 * 277 * @return string Parsed string 266 278 */ 267 279 private function file_callback($matches) -
program/include/rcube_imap.php
rc609784 r5c461ba 41 41 public $threading = false; 42 42 public $fetch_add_headers = ''; 43 public $conn; // rcube_imap_generic object 44 43 44 /** 45 * Instance of rcube_imap_generic 46 * 47 * @var rcube_imap_generic 48 */ 49 public $conn; 50 51 /** 52 * Instance of rcube_mdb2 53 * 54 * @var rcube_mdb2 55 */ 45 56 private $db; 46 57 private $root_ns = ''; … … 84 95 * Connect to an IMAP server 85 96 * 86 * @param string Host to connect87 * @param string Username for IMAP account88 * @param string Password for IMAP account89 * @param numberPort to connect to90 * @param string SSL schema (either ssl or tls) or null if plain connection97 * @param string $host Host to connect 98 * @param string $user Username for IMAP account 99 * @param string $pass Password for IMAP account 100 * @param integer $port Port to connect to 101 * @param string $use_ssl SSL schema (either ssl or tls) or null if plain connection 91 102 * @return boolean TRUE on success, FALSE on failure 92 103 * @access public … … 181 192 /** 182 193 * Set options to be used in rcube_imap_generic::connect() 194 * 195 * @param array $opt Options array 183 196 */ 184 197 function set_options($opt) … … 193 206 * and all folder paths will be translated using this folder name 194 207 * 195 * @param string Root folder208 * @param string $root Root folder 196 209 * @access public 197 210 */ … … 214 227 * This will be used for message decoding if a charset specification is not available 215 228 * 216 * @param string Charset string229 * @param string $cs Charset string 217 230 * @access public 218 231 */ … … 226 239 * This list of folders will be listed above all other folders 227 240 * 228 * @param array Indexed list of folder names241 * @param array $arr Indexed list of folder names 229 242 * @access public 230 243 */ … … 246 259 * All operations will be perfomed on this mailbox/folder 247 260 * 248 * @param string Mailbox/Folder name261 * @param string $new_mbox Mailbox/Folder name 249 262 * @access public 250 263 */ … … 266 279 * Set internal list page 267 280 * 268 * @param number Page number to list281 * @param number $page Page number to list 269 282 * @access public 270 283 */ … … 278 291 * Set internal page size 279 292 * 280 * @param number Number of messages to display on one page293 * @param number $size Number of messages to display on one page 281 294 * @access public 282 295 */ … … 345 358 * Returns the IMAP server's capability 346 359 * 347 * @param string Capability name360 * @param string $cap Capability name 348 361 * @return mixed Capability value or TRUE if supported, FALSE if not 349 362 * @access public … … 358 371 * Sets threading flag to the best supported THREAD algorithm 359 372 * 360 * @param boolean TRUE to enable and FALSE373 * @param boolean $enable TRUE to enable and FALSE 361 374 * @return string Algorithm or false if THREAD is not supported 362 375 * @access public … … 383 396 * and returns true if the given flag is supported by the IMAP server 384 397 * 385 * @param string Permanentflag name398 * @param string $flag Permanentflag name 386 399 * @return mixed True if this flag is supported 387 400 * @access public … … 416 429 * Get message count for a specific mailbox 417 430 * 418 * @param string Mailbox/folder name419 * @param string Mode for count [ALL|THREADS|UNSEEN|RECENT]420 * @param boolean Force reading from server and update cache421 * @param boolean Enables storing folder status info (max UID/count),422 * required for mailbox_status()431 * @param string $mbox_name Mailbox/folder name 432 * @param string $mode Mode for count [ALL|THREADS|UNSEEN|RECENT] 433 * @param boolean $force Force reading from server and update cache 434 * @param boolean $status Enables storing folder status info (max UID/count), 435 * required for mailbox_status() 423 436 * @return int Number of messages 424 437 * @access public … … 434 447 * Private method for getting nr of messages 435 448 * 449 * @param string $mailbox Mailbox name 450 * @param string $mode Mode for count [ALL|THREADS|UNSEEN|RECENT] 451 * @param boolean $force Force reading from server and update cache 452 * @param boolean $status Enables storing folder status info (max UID/count), 453 * required for mailbox_status() 454 * @return int Number of messages 436 455 * @access private 437 456 * @see rcube_imap::messagecount() … … 514 533 * Private method for getting nr of threads 515 534 * 535 * @param string $mailbox 536 * @param int $msg_count 516 537 * @access private 517 538 * @see rcube_imap::messagecount() … … 535 556 * convert mailbox name with root dir first 536 557 * 537 * @param string Mailbox/folder name538 * @param int Current page to list539 * @param string Header field to sort by540 * @param string Sort order [ASC|DESC]541 * @param booleanNumber of slice items to extract from result array558 * @param string $mbox_name Mailbox/folder name 559 * @param int $page Current page to list 560 * @param string $sort_field Header field to sort by 561 * @param string $sort_order Sort order [ASC|DESC] 562 * @param int $slice Number of slice items to extract from result array 542 563 * @return array Indexed array with message header objects 543 564 * @access public … … 553 574 * Private method for listing message headers 554 575 * 576 * @param string $mailbox Mailbox name 577 * @param int $page Current page to list 578 * @param string $sort_field Header field to sort by 579 * @param string $sort_order Sort order [ASC|DESC] 580 * @param int $slice Number of slice items to extract from result array 581 * @return array Indexed array with message header objects 555 582 * @access private 556 583 * @see rcube_imap::list_headers … … 677 704 * Private method for listing message headers using threads 678 705 * 706 * @param string $mailbox Mailbox/folder name 707 * @param int $page Current page to list 708 * @param string $sort_field Header field to sort by 709 * @param string $sort_order Sort order [ASC|DESC] 710 * @param boolean $recursive 711 * @param int $slice Number of slice items to extract from result array 712 * @return array Indexed array with message header objects 679 713 * @access private 680 714 * @see rcube_imap::list_headers … … 704 738 * Private method for fetching threads data 705 739 * 706 * @param string Mailbox/folder name740 * @param string $mailbox Mailbox/folder name 707 741 * @return array Array with thread data 708 742 * @access private … … 733 767 * Private method for fetching threaded messages headers 734 768 * 769 * @param string $mailbox Mailbox name 770 * @param string $thread_tree 771 * @param int $msg_depth 772 * @param boolean $has_children 773 * @param int $msg_index 774 * @param int $page 775 * @param int $slice 735 776 * @access private 736 777 */ … … 780 821 * depth, has_children and unread_children 781 822 * 782 * @param array Reference to headers array indexed by message ID783 * @param array Array of messages depth indexed by message ID784 * @param array Array of messages children flags indexed by message ID823 * @param array $headers Reference to headers array indexed by message ID 824 * @param array $msg_depth Array of messages depth indexed by message ID 825 * @param array $msg_children Array of messages children flags indexed by message ID 785 826 * @return array Message headers array indexed by message ID 786 827 * @access private … … 811 852 * Private method for listing a set of message headers (search results) 812 853 * 813 * @param string Mailbox/folder name814 * @param int Current page to list815 * @param string Header field to sort by816 * @param string Sort order [ASC|DESC]817 * @param booleanNumber of slice items to extract from result array854 * @param string $mailbox Mailbox/folder name 855 * @param int $page Current page to list 856 * @param string $sort_field Header field to sort by 857 * @param string $sort_order Sort order [ASC|DESC] 858 * @param int $slice Number of slice items to extract from result array 818 859 * @return array Indexed array with message header objects 819 860 * @access private … … 944 985 * Private method for listing a set of threaded message headers (search results) 945 986 * 946 * @param string Mailbox/folder name947 * @param int Current page to list948 * @param string Header field to sort by949 * @param string Sort order [ASC|DESC]950 * @param booleanNumber of slice items to extract from result array987 * @param string $mailbox Mailbox/folder name 988 * @param int $page Current page to list 989 * @param string $sort_field Header field to sort by 990 * @param string $sort_order Sort order [ASC|DESC] 991 * @param int $slice Number of slice items to extract from result array 951 992 * @return array Indexed array with message header objects 952 993 * @access private … … 986 1027 * Helper function to get first and last index of the requested set 987 1028 * 988 * @param int message count989 * @param mixed page number to show, or string 'all'1029 * @param int $max message count 1030 * @param mixed $page page number to show, or string 'all' 990 1031 * @return array array with two values: first index, last index 991 1032 * @access private … … 1085 1126 * new messages because the RECENT flag is not reliable. 1086 1127 * 1087 * @param string Mailbox/folder name1128 * @param string $mbox_name Mailbox/folder name 1088 1129 * @return int Folder status 1089 1130 */ … … 1117 1158 * @TODO: move to separate DB table (cache?) 1118 1159 * 1119 * @param string Mailbox name1120 * @param string Data name1121 * @param mixed Data value1160 * @param string $mbox_name Mailbox name 1161 * @param string $name Data name 1162 * @param mixed $data Data value 1122 1163 */ 1123 1164 private function set_folder_stats($mbox_name, $name, $data) … … 1130 1171 * Gets folder statistic data 1131 1172 * 1132 * @param string Mailbox name1173 * @param string $mbox_name Mailbox name 1133 1174 * @return array Stats data 1134 1175 */ … … 1145 1186 * Return sorted array of message IDs (not UIDs) 1146 1187 * 1147 * @param string Mailbox to get index from1148 * @param string Sort column1149 * @param string Sort order [ASC, DESC]1188 * @param string $mbox_name Mailbox to get index from 1189 * @param string $sort_field Sort column 1190 * @param string $sort_order Sort order [ASC, DESC] 1150 1191 * @return array Indexed array with message ids 1151 1192 */ … … 1258 1299 * Return sorted array of threaded message IDs (not UIDs) 1259 1300 * 1260 * @param string Mailbox to get index from1261 * @param string Sort column1262 * @param string Sort order [ASC, DESC]1301 * @param string $mbox_name Mailbox to get index from 1302 * @param string $sort_field Sort column 1303 * @param string $sort_order Sort order [ASC, DESC] 1263 1304 * @return array Indexed array with message IDs 1264 1305 */ … … 1304 1345 * Return array of threaded messages (all, not only roots) 1305 1346 * 1306 * @param string Mailbox to get index from1307 * @param array Threaded messages array (see _fetch_threads())1308 * @param array Message IDs if we know what we need (e.g. search result)1309 * for better performance1347 * @param string $mailbox Mailbox to get index from 1348 * @param array $thread_tree Threaded messages array (see _fetch_threads()) 1349 * @param array $ids Message IDs if we know what we need (e.g. search result) 1350 * for better performance 1310 1351 * @return array Indexed array with message IDs 1311 1352 * … … 1337 1378 1338 1379 /** 1380 * @param string $mailbox Mailbox name 1339 1381 * @access private 1340 1382 */ … … 1431 1473 * Invoke search request to IMAP server 1432 1474 * 1433 * @param string mailbox name to search in1434 * @param string search string1435 * @param string search string charset1436 * @param string header field to sort by1475 * @param string $mbox_name mailbox name to search in 1476 * @param string $str search string 1477 * @param string $charset search string charset 1478 * @param string $sort_field header field to sort by 1437 1479 * @return array search results as list of message ids 1438 1480 * @access public … … 1457 1499 * Private search method 1458 1500 * 1501 * @param string $mailbox Mailbox name 1502 * @param string $criteria Search criteria 1503 * @param string $charset Charset 1504 * @param string $sort_field Sorting field 1459 1505 * @return array search results as list of message ids 1460 1506 * @access private … … 1533 1579 * without result sorting and caching 1534 1580 * 1535 * @param string Mailbox name to search in1536 * @param string Search string1537 * @param boolean True if UIDs should be returned1581 * @param string $mbox_name Mailbox name to search in 1582 * @param string $str Search string 1583 * @param boolean $ret_uid True if UIDs should be returned 1538 1584 * @return array Search results as list of message IDs or UIDs 1539 1585 * @access public … … 1553 1599 * Converts charset of search criteria string 1554 1600 * 1555 * @param string Search string1556 * @param string Original charset1557 * @param string Destination charset (default US-ASCII)1601 * @param string $str Search string 1602 * @param string $charset Original charset 1603 * @param string $dest_charset Destination charset (default US-ASCII) 1558 1604 * @return string Search string 1559 1605 * @access private … … 1586 1632 * Sort thread 1587 1633 * 1588 * @param string Mailbox name1589 * @param array Unsorted thread tree (rcube_imap_generic::thread() result)1590 * @param array Message IDs if we know what we need (e.g. search result)1634 * @param string $mailbox Mailbox name 1635 * @param array $thread_tree Unsorted thread tree (rcube_imap_generic::thread() result) 1636 * @param array $ids Message IDs if we know what we need (e.g. search result) 1591 1637 * @return array Sorted roots IDs 1592 1638 * @access private … … 1633 1679 * THREAD=REFS sorting implementation 1634 1680 * 1635 * @param array Thread tree array (message identifiers as keys)1636 * @param array Array of sorted message identifiers1681 * @param array $tree Thread tree array (message identifiers as keys) 1682 * @param array $index Array of sorted message identifiers 1637 1683 * @return array Array of sorted roots messages 1638 1684 * @access private … … 1694 1740 * Check if the given message ID is part of the current search set 1695 1741 * 1742 * @param string $msgid Message id 1696 1743 * @return boolean True on match or if no search request is stored 1697 1744 */ … … 1712 1759 * Return message headers object of a specific message 1713 1760 * 1714 * @param int Message ID1715 * @param string Mailbox to read from1716 * @param boolean True if $id is the message UID1717 * @param boolean True if we need also BODYSTRUCTURE in headers1761 * @param int $id Message ID 1762 * @param string $mbox_name Mailbox to read from 1763 * @param boolean $is_uid True if $id is the message UID 1764 * @param boolean $bodystr True if we need also BODYSTRUCTURE in headers 1718 1765 * @return object Message headers representation 1719 1766 */ … … 1746 1793 * an object structure similar to the one generated by PEAR::Mail_mimeDecode 1747 1794 * 1748 * @param int Message UID to fetch1749 * @param string Message BODYSTRUCTURE string (optional)1795 * @param int $uid Message UID to fetch 1796 * @param string $structure_str Message BODYSTRUCTURE string (optional) 1750 1797 * @return object rcube_message_part Message part tree or False on failure 1751 1798 */ … … 1818 1865 * Build message part object 1819 1866 * 1867 * @param array $part 1868 * @param int $count 1869 * @param string $parent 1820 1870 * @access private 1821 1871 */ … … 2005 2055 * 2006 2056 * @access private 2007 * @param object rcube_message_partPart object2008 * @param string Part's raw headers2057 * @param rcube_message_part $part Part object 2058 * @param string $headers Part's raw headers 2009 2059 */ 2010 2060 private function _set_part_filename(&$part, $headers=null) … … 2126 2176 * 2127 2177 * @access private 2128 * @param array Message structure2178 * @param array $structure Message structure 2129 2179 * @return string Charset name 2130 2180 */ … … 2142 2192 * Fetch message body of a specific message from the server 2143 2193 * 2144 * @param int Message UID2145 * @param string Part number2146 * @param object rcube_message_part Part object created by get_structure()2147 * @param mixed True to print part, ressource to write part contents in2148 * @param resource File pointer to save the message part2194 * @param int $uid Message UID 2195 * @param string $part Part number 2196 * @param rcube_message_part $o_part Part object created by get_structure() 2197 * @param mixed $print True to print part, ressource to write part contents in 2198 * @param resource $fp File pointer to save the message part 2149 2199 * @return string Message/part body if not printed 2150 2200 */ … … 2192 2242 * Fetch message body of a specific message from the server 2193 2243 * 2194 * @param int Message UID2195 * @return string Message/part body2244 * @param int $uid Message UID 2245 * @return string $part Message/part body 2196 2246 * @see rcube_imap::get_message_part() 2197 2247 */ … … 2207 2257 * Returns the whole message source as string 2208 2258 * 2209 * @param int Message UID2259 * @param int $uid Message UID 2210 2260 * @return string Message source string 2211 2261 */ … … 2219 2269 * Returns the message headers as string 2220 2270 * 2221 * @param int Message UID2271 * @param int $uid Message UID 2222 2272 * @return string Message headers string 2223 2273 */ … … 2231 2281 * Sends the whole message source to stdout 2232 2282 * 2233 * @param int Message UID2283 * @param int $uid Message UID 2234 2284 */ 2235 2285 function print_raw_body($uid) … … 2242 2292 * Set message flag to one or several messages 2243 2293 * 2244 * @param mixed Message UIDs as array or comma-separated string, or '*'2245 * @param string Flag to set: SEEN, UNDELETED, DELETED, RECENT, ANSWERED, DRAFT, MDNSENT2246 * @param string Folder name2247 * @param boolean True to skip message cache clean up2294 * @param mixed $uids Message UIDs as array or comma-separated string, or '*' 2295 * @param string $flag Flag to set: SEEN, UNDELETED, DELETED, RECENT, ANSWERED, DRAFT, MDNSENT 2296 * @param string $mbox_name Folder name 2297 * @param boolean $skip_cache True to skip message cache clean up 2248 2298 * @return int Number of flagged messages, -1 on failure 2249 2299 */ … … 2285 2335 * Remove message flag for one or several messages 2286 2336 * 2287 * @param mixed Message UIDs as array or comma-separated string, or '*'2288 * @param string Flag to unset: SEEN, DELETED, RECENT, ANSWERED, DRAFT, MDNSENT2289 * @param string Folder name2337 * @param mixed $uids Message UIDs as array or comma-separated string, or '*' 2338 * @param string $flag Flag to unset: SEEN, DELETED, RECENT, ANSWERED, DRAFT, MDNSENT 2339 * @param string $mbox_name Folder name 2290 2340 * @return int Number of flagged messages, -1 on failure 2291 2341 * @see set_flag … … 2300 2350 * Append a mail message (source) to a specific mailbox 2301 2351 * 2302 * @param string Target mailbox2303 * @param string The message source string or filename2304 * @param string Headers string if $message contains only the body2305 * @param boolean True if $message is a filename2352 * @param string $mbox_name Target mailbox 2353 * @param string $message The message source string or filename 2354 * @param string $headers Headers string if $message contains only the body 2355 * @param boolean $is_file True if $message is a filename 2306 2356 * 2307 2357 * @return boolean True on success, False on error … … 2331 2381 * Move a message from one mailbox to another 2332 2382 * 2333 * @param mixed Message UIDs as array or comma-separated string, or '*'2334 * @param string Target mailbox2335 * @param string Source mailbox2383 * @param mixed $uids Message UIDs as array or comma-separated string, or '*' 2384 * @param string $to_mbox Target mailbox 2385 * @param string $from_mbox Source mailbox 2336 2386 * @return boolean True on success, False on error 2337 2387 */ … … 2412 2462 * Copy a message from one mailbox to another 2413 2463 * 2414 * @param mixed Message UIDs as array or comma-separated string, or '*'2415 * @param string Target mailbox2416 * @param string Source mailbox2464 * @param mixed $uids Message UIDs as array or comma-separated string, or '*' 2465 * @param string $to_mbox Target mailbox 2466 * @param string $from_mbox Source mailbox 2417 2467 * @return boolean True on success, False on error 2418 2468 */ … … 2453 2503 * Mark messages as deleted and expunge mailbox 2454 2504 * 2455 * @param mixed Message UIDs as array or comma-separated string, or '*'2456 * @param string Source mailbox2505 * @param mixed $uids Message UIDs as array or comma-separated string, or '*' 2506 * @param string $mbox_name Source mailbox 2457 2507 * @return boolean True on success, False on error 2458 2508 */ … … 2507 2557 * Clear all messages in a specific mailbox 2508 2558 * 2509 * @param string Mailbox name2559 * @param string $mbox_name Mailbox name 2510 2560 * @return int Above 0 on success 2511 2561 */ … … 2536 2586 * Send IMAP expunge command and clear cache 2537 2587 * 2538 * @param string Mailbox name2539 * @param boolean False if cache should not be cleared2588 * @param string $mbox_name Mailbox name 2589 * @param boolean $clear_cache False if cache should not be cleared 2540 2590 * @return boolean True on success 2541 2591 */ … … 2550 2600 * Send IMAP expunge command and clear cache 2551 2601 * 2552 * @param string Mailbox name2553 * @param boolean False if cache should not be cleared2554 * @param mixed Message UIDs as array or comma-separated string, or '*'2602 * @param string $mailbox Mailbox name 2603 * @param boolean $clear_cache False if cache should not be cleared 2604 * @param mixed $uids Message UIDs as array or comma-separated string, or '*' 2555 2605 * @return boolean True on success 2556 2606 * @access private … … 2578 2628 * Parse message UIDs input 2579 2629 * 2580 * @param mixed UIDs array or comma-separated list or '*' or '1:*'2581 * @param string Mailbox name2630 * @param mixed $uids UIDs array or comma-separated list or '*' or '1:*' 2631 * @param string $mailbox Mailbox name 2582 2632 * @return array Two elements array with UIDs converted to list and ALL flag 2583 2633 * @access private … … 2621 2671 * Translate UID to message ID 2622 2672 * 2623 * @param int Message UID2624 * @param string Mailbox name2673 * @param int $uid Message UID 2674 * @param string $mbox_name Mailbox name 2625 2675 * @return int Message ID 2626 2676 */ … … 2635 2685 * Translate message number to UID 2636 2686 * 2637 * @param int Message ID2638 * @param string Mailbox name2687 * @param int $id Message ID 2688 * @param string $mbox_name Mailbox name 2639 2689 * @return int Message UID 2640 2690 */ … … 2656 2706 * Converts mailbox name with root dir first 2657 2707 * 2658 * @param string Optional root folder2659 * @param string Optional filter for mailbox listing2708 * @param string $root Optional root folder 2709 * @param string $filter Optional filter for mailbox listing 2660 2710 * @return array List of mailboxes/folders 2661 2711 * @access public … … 2686 2736 * Private method for mailbox listing 2687 2737 * 2738 * @param string $root Optional root folder 2739 * @param string $filter Optional filter for mailbox listing 2688 2740 * @return array List of mailboxes/folders 2689 2741 * @see rcube_imap::list_mailboxes() … … 2724 2776 * Get a list of all folders available on the IMAP server 2725 2777 * 2726 * @param string IMAP root dir2727 * @param string Optional filter for mailbox listing2778 * @param string $root IMAP root dir 2779 * @param string $filter Optional filter for mailbox listing 2728 2780 * @return array Indexed array with folder names 2729 2781 */ … … 2781 2833 * Subscribe to a specific mailbox(es) 2782 2834 * 2783 * @param array Mailbox name(s)2835 * @param array $a_mboxes Mailbox name(s) 2784 2836 * @return boolean True on success 2785 2837 */ … … 2797 2849 * Unsubscribe mailboxes 2798 2850 * 2799 * @param array Mailbox name(s)2851 * @param array $a_mboxes Mailbox name(s) 2800 2852 * @return boolean True on success 2801 2853 */ … … 2813 2865 * Create a new mailbox on the server and register it in local cache 2814 2866 * 2815 * @param string New mailbox name (as utf-7 string)2816 * @param boolean True if the new mailbox should be subscribed2867 * @param string $name New mailbox name (as utf-7 string) 2868 * @param boolean $subscribe True if the new mailbox should be subscribed 2817 2869 * @param string Name of the created mailbox, false on error 2818 2870 */ … … 2837 2889 * Set a new name to an existing mailbox 2838 2890 * 2839 * @param string Mailbox to rename (as utf-7 string)2840 * @param string New mailbox name (as utf-7 string)2891 * @param string $mbox_name Mailbox to rename (as utf-7 string) 2892 * @param string $new_name New mailbox name (as utf-7 string) 2841 2893 * @return string Name of the renames mailbox, False on error 2842 2894 */ … … 2890 2942 * Remove mailboxes from server 2891 2943 * 2892 * @param string Mailbox name(s) string/array2944 * @param string|array $mbox_name sMailbox name(s) string/array 2893 2945 * @return boolean True on success 2894 2946 */ … … 2957 3009 * Checks if folder exists and is subscribed 2958 3010 * 2959 * @param string Folder name2960 * @param boolean Enable subscription checking3011 * @param string $mbox_name Folder name 3012 * @param boolean $subscription Enable subscription checking 2961 3013 * @return boolean TRUE or FALSE 2962 3014 */ … … 2991 3043 * Modify folder name for input/output according to root dir and namespace 2992 3044 * 2993 * @param string Folder name2994 * @param string Mode3045 * @param string $mbox_name Folder name 3046 * @param string $mode Mode 2995 3047 * @return string Folder name 2996 3048 */ … … 3016 3068 3017 3069 /** 3070 * Enable or disable caching 3071 * 3072 * @param boolean $set Flag 3018 3073 * @access public 3019 3074 */ … … 3027 3082 3028 3083 /** 3084 * Returns cached value 3085 * 3086 * @param string $key Cache key 3087 * @return mixed 3029 3088 * @access public 3030 3089 */ … … 3040 3099 3041 3100 /** 3101 * Update cache 3102 * 3103 * @param string $key Cache key 3104 * @param mixed $data Data 3042 3105 * @access private 3043 3106 */ … … 3050 3113 3051 3114 /** 3115 * Writes the cache 3116 * 3052 3117 * @access private 3053 3118 */ … … 3063 3128 3064 3129 /** 3130 * Clears the cache. 3131 * 3132 * @param string $key Cache key 3065 3133 * @access public 3066 3134 */ … … 3086 3154 3087 3155 /** 3156 * Returns cached entry 3157 * 3158 * @param string $key Cache key 3159 * @return mixed Cached value 3088 3160 * @access private 3089 3161 */ … … 3111 3183 3112 3184 /** 3185 * Writes single cache record 3186 * 3187 * @param string $key Cache key 3188 * @param mxied $data Cache value 3113 3189 * @access private 3114 3190 */ … … 3154 3230 3155 3231 /** 3232 * Clears cache for single record 3233 * 3234 * @param string $ket Cache key 3156 3235 * @access private 3157 3236 */ … … 3177 3256 * Checks if the cache is up-to-date 3178 3257 * 3179 * @param string Mailbox name3180 * @param string Internal cache key3258 * @param string $mailbox Mailbox name 3259 * @param string $cache_key Internal cache key 3181 3260 * @return int Cache status: -3 = off, -2 = incomplete, -1 = dirty, 1 = OK 3182 3261 */ … … 3233 3312 3234 3313 /** 3314 * @param string $key Cache key 3315 * @param string $from 3316 * @param string $to 3317 * @param string $sort_field 3318 * @param string $sort_order 3235 3319 * @access private 3236 3320 */ … … 3272 3356 3273 3357 /** 3358 * @param string $key Cache key 3359 * @param int $uid User id 3360 * @return mixed 3274 3361 * @access private 3275 3362 */ … … 3303 3390 3304 3391 /** 3392 * @param string $key Cache key 3393 * @param boolean $force Force flag 3394 * @param string $sort_field 3395 * @param string $sort_order 3305 3396 * @access private 3306 3397 */ … … 3440 3531 3441 3532 /** 3533 * @param string $key Cache key 3534 * @param int $start_index Start index 3442 3535 * @access private 3443 3536 */ … … 3495 3588 * Split an address list into a structured array list 3496 3589 * 3497 * @param string Input string3498 * @param int List only this number of addresses3499 * @param boolean Decode address strings3590 * @param string $input Input string 3591 * @param int $max List only this number of addresses 3592 * @param boolean $decode Decode address strings 3500 3593 * @return array Indexed list of addresses 3501 3594 */ … … 3545 3638 * Decode a message header value 3546 3639 * 3547 * @param string Header value3548 * @param boolean Remove quotes if necessary3640 * @param string $input Header value 3641 * @param boolean $remove_quotas Remove quotes if necessary 3549 3642 * @return string Decoded string 3550 3643 */ … … 3618 3711 * Decode a part of a mime-encoded string 3619 3712 * 3713 * @param string $str String to decode 3714 * @return string Decoded string 3620 3715 * @access private 3621 3716 */ … … 3648 3743 * Decode a mime part 3649 3744 * 3650 * @param string Input string3651 * @param string Part encoding3745 * @param string $input Input string 3746 * @param string $encoding Part encoding 3652 3747 * @return string Decoded string 3653 3748 */ … … 3674 3769 * Convert body charset to RCMAIL_CHARSET according to the ctype_parameters 3675 3770 * 3676 * @param string Part body to decode3677 * @param string Charset to convert from3771 * @param string $body Part body to decode 3772 * @param string $ctype_param Charset to convert from 3678 3773 * @return string Content converted to internal charset 3679 3774 */ … … 3694 3789 /** 3695 3790 * Validate the given input and save to local properties 3791 * 3792 * @param string $sort_field Sort column 3793 * @param string $sort_order Sort order 3696 3794 * @access private 3697 3795 */ … … 3706 3804 /** 3707 3805 * Sort mailboxes first by default folders and then in alphabethical order 3806 * 3807 * @param array $a_folders Mailboxes list 3708 3808 * @access private 3709 3809 */ … … 3763 3863 3764 3864 /** 3865 * @param int $uid User id 3866 * @param string $mbox_name Mailbox name 3867 * @return int 3765 3868 * @access private 3766 3869 */ … … 3777 3880 3778 3881 /** 3882 * @param int $id Id 3883 * @param string $mbox_name Mailbox name 3884 * @return int 3779 3885 * @access private 3780 3886 */ … … 3981 4087 * Set the predetermined sort order. 3982 4088 * 3983 * @param array Numerically indexed array of IMAP message sequence numbers4089 * @param array $seqnums Numerically indexed array of IMAP message sequence numbers 3984 4090 */ 3985 4091 function set_sequence_numbers($seqnums) … … 3991 4097 * Sort the array of header objects 3992 4098 * 3993 * @param array Array of rcube_mail_header objects indexed by UID4099 * @param array $headers Array of rcube_mail_header objects indexed by UID 3994 4100 */ 3995 4101 function sort_headers(&$headers) … … 4007 4113 /** 4008 4114 * Sort method called by uasort() 4115 * 4116 * @param rcube_mail_header $a 4117 * @param rcube_mail_header $b 4009 4118 */ 4010 4119 function compare_seqnums($a, $b) -
program/include/rcube_json_output.php
re019f2d r5c461ba 29 29 class rcube_json_output 30 30 { 31 /** 32 * Stores configuration object. 33 * 34 * @var rcube_config 35 */ 31 36 private $config; 32 37 private $charset = RCMAIL_CHARSET; … … 55 60 * Set environment variable 56 61 * 57 * @param string Property name58 * @param mixed Property value62 * @param string $name Property name 63 * @param mixed $value Property value 59 64 */ 60 65 public function set_env($name, $value) … … 67 72 * Issue command to set page title 68 73 * 69 * @param string New page title74 * @param string $title New page title 70 75 */ 71 76 public function set_pagetitle($title) … … 99 104 * Register a template object handler 100 105 * 101 * @param string Object name102 * @param string Function name to call106 * @param string $obj Object name 107 * @param string $func Function name to call 103 108 * @return void 104 109 */ … … 112 117 * Register a list of template object handlers 113 118 * 114 * @param array Hash array with object=>handler pairs119 * @param array $arr Hash array with object=>handler pairs 115 120 * @return void 116 121 */ … … 156 161 * Invoke display_message command 157 162 * 158 * @param string Message to display159 * @param string Message type [notice|confirm|error]160 * @param array Key-value pairs to be replaced in localized text161 * @param boolean Override last set message163 * @param string $message Message to display 164 * @param string $type Message type [notice|confirm|error] 165 * @param array $vars Key-value pairs to be replaced in localized text 166 * @param boolean $override Override last set message 162 167 * @uses self::command() 163 168 */ … … 189 194 * Redirect to a certain url 190 195 * 191 * @param mixed Either a string with the action or url parameters as key-value pairs 196 * @param mixed $p Either a string with the action or url parameters as key-value pairs 197 * @param int $delay Delay in seconds 192 198 * @see rcmail::url() 193 199 */ … … 213 219 * Send an AJAX response with executable JS code 214 220 * 215 * @param string Additional JS code221 * @param string $add Additional JS code 216 222 * @param boolean True if output buffer should be flushed 217 223 * @return void -
program/include/rcube_mdb2.php
r8603bbb r5c461ba 53 53 * Object constructor 54 54 * 55 * @param string DSN for read/write operations56 * @param string Optional DSN for read only operations55 * @param string $db_dsnw DSN for read/write operations 56 * @param string $db_dsnr Optional DSN for read only operations 57 57 */ 58 58 function __construct($db_dsnw, $db_dsnr='', $pconn=false) … … 73 73 * Connect to specific database 74 74 * 75 * @param string DSN for DB connections76 * @return objectPEAR database handle75 * @param string $dsn DSN for DB connections 76 * @return MDB2 PEAR database handle 77 77 * @access private 78 78 */ … … 117 117 * Connect to appropiate database depending on the operation 118 118 * 119 * @param string Connection mode (r|w)119 * @param string $mode Connection mode (r|w) 120 120 * @access public 121 121 */ … … 150 150 * Activate/deactivate debug mode 151 151 * 152 * @param boolean True if SQL queries should be logged152 * @param boolean $dbg True if SQL queries should be logged 153 153 * @access public 154 154 */ … … 228 228 * Execute a SQL query with limits 229 229 * 230 * @param string SQL query to execute231 * @param number Offset for LIMIT statement232 * @param number Number of rows for LIMIT statement233 * @param array Values to be inserted in query230 * @param string $query SQL query to execute 231 * @param number $offset Offset for LIMIT statement 232 * @param number $numrows Number of rows for LIMIT statement 233 * @param array $params Values to be inserted in query 234 234 * @return number Query handle identifier 235 235 * @access private … … 280 280 * If no query handle is specified, the last query will be taken as reference 281 281 * 282 * @param number Optional query handle identifier282 * @param number $res_id Optional query handle identifier 283 283 * @return mixed Number of rows or false on failure 284 284 * @access public … … 299 299 * Get number of affected rows for the last query 300 300 * 301 * @param number Optional query handle identifier301 * @param number $res_id Optional query handle identifier 302 302 * @return mixed Number of rows or false on failure 303 303 * @access public … … 316 316 * For Postgres databases, a sequence name is required 317 317 * 318 * @param string Table name (to find the incremented sequence)318 * @param string $table Table name (to find the incremented sequence) 319 319 * @return mixed ID or false on failure 320 320 * @access public … … 344 344 * If no query handle is specified, the last query will be taken as reference 345 345 * 346 * @param number Optional query handle identifier346 * @param number $res_id Optional query handle identifier 347 347 * @return mixed Array with col values or false on failure 348 348 * @access public … … 359 359 * If no query handle is specified, the last query will be taken as reference 360 360 * 361 * @param number Optional query handle identifier361 * @param number $res_id Optional query handle identifier 362 362 * @return mixed Array with col values or false on failure 363 363 * @access public … … 373 373 * Get col values for a result row 374 374 * 375 * @param object Queryresult handle376 * @param number Fetch mode identifier375 * @param MDB2_Result_Common Query $result result handle 376 * @param number $mode Fetch mode identifier 377 377 * @return mixed Array with col values or false on failure 378 378 * @access private … … 412 412 * Formats input so it can be safely used in a query 413 413 * 414 * @param mixed Value to quote415 * @param string Type of data414 * @param mixed $input Value to quote 415 * @param string $type Type of data 416 416 * @return string Quoted/converted string for use in query 417 417 * @access public … … 434 434 * Quotes a string so it can be safely used as a table or column name 435 435 * 436 * @param string Value to quote436 * @param string $str Value to quote 437 437 * @return string Quoted string for use in query 438 438 * @deprecated Replaced by rcube_MDB2::quote_identifier … … 449 449 * Quotes a string so it can be safely used as a table or column name 450 450 * 451 * @param string Value to quote451 * @param string $str Value to quote 452 452 * @return string Quoted string for use in query 453 453 * @access public … … 465 465 * Escapes a string 466 466 * 467 * @param string The string to be escaped467 * @param string $str The string to be escaped 468 468 * @return string The escaped string 469 469 * @access public … … 501 501 * Return list of elements for use with SQL's IN clause 502 502 * 503 * @param array Input array504 * @param string Type of data503 * @param array $arr Input array 504 * @param string $type Type of data 505 505 * @return string Comma-separated list of quoted values for use in query 506 506 * @access public … … 521 521 * Return SQL statement to convert a field value into a unix timestamp 522 522 * 523 * @param string Field name523 * @param string $field Field name 524 524 * @return string SQL statement to use in query 525 525 * @access public … … 544 544 * Return SQL statement to convert from a unix timestamp 545 545 * 546 * @param string Field name546 * @param string $timestamp Field name 547 547 * @return string SQL statement to use in query 548 548 * @access public … … 565 565 * Return SQL statement for case insensitive LIKE 566 566 * 567 * @param string Field name568 * @param string Search value567 * @param string $column Field name 568 * @param string $value Search value 569 569 * @return string SQL statement to use in query 570 570 * @access public … … 585 585 * Encodes non-UTF-8 characters in string/array/object (recursive) 586 586 * 587 * @param mixed Data to fix587 * @param mixed $input Data to fix 588 588 * @return mixed Properly UTF-8 encoded data 589 589 * @access public … … 609 609 * Decodes encoded UTF-8 string/object/array (recursive) 610 610 * 611 * @param mixed Input data611 * @param mixed $input Input data 612 612 * @return mixed Decoded data 613 613 * @access public … … 633 633 * Adds a query result and returns a handle ID 634 634 * 635 * @param object Query handle635 * @param object $res Query handle 636 636 * @return mixed Handle ID 637 637 * @access private … … 661 661 * If no ID is specified, the last resource handle will be returned 662 662 * 663 * @param number Handle ID663 * @param number $res_id Handle ID 664 664 * @return mixed Resource handle or false on failure 665 665 * @access private … … 681 681 * Create a sqlite database from a file 682 682 * 683 * @param objectSQLite database handle684 * @param string File path to use for DB creation683 * @param MDB2 $dbh SQLite database handle 684 * @param string $file_name File path to use for DB creation 685 685 * @access private 686 686 */ -
program/include/rcube_message.php
r6d1ae07 r5c461ba 30 30 class rcube_message 31 31 { 32 /** 33 * Instace of rcmail. 34 * 35 * @var rcmail 36 */ 32 37 private $app; 38 39 /** 40 * Instance of imap class 41 * 42 * @var rcube_imap 43 */ 33 44 private $imap; 34 45 private $opt = array(); … … 99 110 * Return a (decoded) message header 100 111 * 101 * @param string Header name102 * @param bool Don't mime-decode the value112 * @param string $name Header name 113 * @param bool $row Don't mime-decode the value 103 114 * @return string Header value 104 115 */ … … 113 124 * Set is_safe var and session data 114 125 * 115 * @param bool enable/disable126 * @param bool $safe enable/disable 116 127 */ 117 128 public function set_safe($safe = true) … … 125 136 * Compose a valid URL for getting a message part 126 137 * 127 * @param string Part MIME-ID138 * @param string $mime_id Part MIME-ID 128 139 * @return string URL or false if part does not exist 129 140 */ … … 140 151 * Get content of a specific part of this message 141 152 * 142 * @param string Part MIME-ID143 * @param resource File pointer to save the message part153 * @param string $mime_id Part MIME-ID 154 * @param resource $fp File pointer to save the message part 144 155 * @return string Part content 145 156 */ … … 242 253 * and build flat lists of content parts and attachments 243 254 * 244 * @param object rcube_message_partMessage structure node245 * @param bool True when called recursively255 * @param rcube_message_part $structure Message structure node 256 * @param bool $recursive True when called recursively 246 257 */ 247 258 private function parse_structure($structure, $recursive = false) … … 502 513 * Fill aflat array with references to all parts, indexed by part numbers 503 514 * 504 * @param object rcube_message_part Message body structure515 * @param rcube_message_part $part Message body structure 505 516 */ 506 517 private function get_mime_numbers(&$part) … … 518 529 * Decode a Microsoft Outlook TNEF part (winmail.dat) 519 530 * 520 * @param object rcube_message_part Message part to decode 531 * @param rcube_message_part $part Message part to decode 532 * @return array 521 533 */ 522 534 function tnef_decode(&$part) … … 553 565 * Parse message body for UUencoded attachments bodies 554 566 * 555 * @param object rcube_message_part Message part to decode 567 * @param rcube_message_part $part Message part to decode 568 * @return array 556 569 */ 557 570 function uu_decode(&$part) … … 599 612 * Interpret a format=flowed message body according to RFC 2646 600 613 * 601 * @param string Raw body formatted as flowed text614 * @param string $text Raw body formatted as flowed text 602 615 * @return string Interpreted text with unwrapped lines and stuffed space removed 603 616 */ … … 655 668 /** 656 669 * Wrap the given text to comply with RFC 2646 670 * 671 * @param string $text Text to wrap 672 * @param int $length Length 673 * @return string Wrapped text 657 674 */ 658 675 public static function format_flowed($text, $length = 72) -
program/include/rcube_plugin.php
re019f2d r5c461ba 28 28 { 29 29 public $ID; 30 31 /** 32 * Holds an istance of Plugin API 33 * 34 * @var rcube_plugin_api 35 */ 30 36 public $api; 31 37 public $task; … … 36 42 /** 37 43 * Default constructor. 44 * 45 * @param rcube_plugin_api $api Plugin API 38 46 */ 39 47 public function __construct($api) … … 54 62 * The loaded values are patched over the global configuration. 55 63 * 56 * @param string Config file name relative to the plugin's folder64 * @param string $fname Config file name relative to the plugin's folder 57 65 * @return boolean True on success, false on failure 58 66 */ … … 74 82 * Register a callback function for a specific (server-side) hook 75 83 * 76 * @param string Hook name77 * @param mixed Callback function as string or array with object reference and method name84 * @param string $hook Hook name 85 * @param mixed $callback Callback function as string or array with object reference and method name 78 86 */ 79 87 public function add_hook($hook, $callback) … … 85 93 * Load localized texts from the plugins dir 86 94 * 87 * @param string Directory to search in88 * @param mixed Make texts also available on the client (array with list or true for all)95 * @param string $dir Directory to search in 96 * @param mixed $add2client Make texts also available on the client (array with list or true for all) 89 97 */ 90 98 public function add_texts($dir, $add2client = false) … … 121 129 * Wrapper for rcmail::gettext() adding the plugin ID as domain 122 130 * 131 * @param string $p Message identifier 123 132 * @return string Localized text 124 133 * @see rcmail::gettext() … … 132 141 * Register this plugin to be responsible for a specific task 133 142 * 134 * @param string Task name (only characters [a-z0-9_.-] are allowed)143 * @param string $task Task name (only characters [a-z0-9_.-] are allowed) 135 144 */ 136 145 public function register_task($task) … … 145 154 * The callback will be executed upon a request like /?_task=mail&_action=plugin.myaction 146 155 * 147 * @param string Action name (should be unique)148 * @param mixed Callback function as string or array with object reference and method name156 * @param string $action Action name (should be unique) 157 * @param mixed $callback Callback function as string or array with object reference and method name 149 158 */ 150 159 public function register_action($action, $callback) … … 159 168 * will be replaced by the return value if the registered callback function. 160 169 * 161 * @param string Object name (should be unique and start with 'plugin.')162 * @param mixed Callback function as string or array with object reference and method name170 * @param string $name Object name (should be unique and start with 'plugin.') 171 * @param mixed $callback Callback function as string or array with object reference and method name 163 172 */ 164 173 public function register_handler($name, $callback) … … 170 179 * Make this javascipt file available on the client 171 180 * 172 * @param string File path; absolute or relative to the plugin directory181 * @param string $fn File path; absolute or relative to the plugin directory 173 182 */ 174 183 public function include_script($fn) … … 180 189 * Make this stylesheet available on the client 181 190 * 182 * @param string File path; absolute or relative to the plugin directory191 * @param string $fn File path; absolute or relative to the plugin directory 183 192 */ 184 193 public function include_stylesheet($fn) … … 190 199 * Append a button to a certain container 191 200 * 192 * @param array Hash array with named parameters (as used in skin templates)193 * @param string Container name where the buttons should be added to201 * @param array $p Hash array with named parameters (as used in skin templates) 202 * @param string $container Container name where the buttons should be added to 194 203 * @see rcube_remplate::button() 195 204 */ … … 210 219 * plugin directory 211 220 * 212 * @param string The file name221 * @param string $fn The file name 213 222 * @return string Absolute URL to the given resource 214 223 */ … … 220 229 /** 221 230 * Make the given file name link into the plugin directory 231 * 232 * @param string $fn Filename 222 233 */ 223 234 private function resource_url($fn) … … 245 256 /** 246 257 * Callback function for array_map 258 * 259 * @param string $key Array key. 260 * @return string 247 261 */ 248 262 private function label_map_callback($key) -
program/include/rcube_plugin_api.php
re019f2d r5c461ba 77 77 * This implements the 'singleton' design pattern 78 78 * 79 * @return objectrcube_plugin_api The one and only instance if this class79 * @return rcube_plugin_api The one and only instance if this class 80 80 */ 81 81 static function get_instance() … … 190 190 * Allows a plugin object to register a callback for a certain hook 191 191 * 192 * @param string Hook name193 * @param mixed String with global function name or array($obj, 'methodname')192 * @param string $hook Hook name 193 * @param mixed $callback String with global function name or array($obj, 'methodname') 194 194 */ 195 195 public function register_hook($hook, $callback) … … 215 215 * This is called from the application and executes all registered handlers 216 216 * 217 * @param string Hook name218 * @param array Named arguments (key->value pairs)217 * @param string $hook Hook name 218 * @param array $args Named arguments (key->value pairs) 219 219 * @return array The (probably) altered hook arguments 220 220 */ … … 244 244 * Let a plugin register a handler for a specific request 245 245 * 246 * @param string Action name (_task=mail&_action=plugin.foo)247 * @param string Plugin name that registers this action248 * @param mixed Callback: string with global function name or array($obj, 'methodname')249 * @param string Task name registered by this plugin246 * @param string $action Action name (_task=mail&_action=plugin.foo) 247 * @param string $owner Plugin name that registers this action 248 * @param mixed $callback Callback: string with global function name or array($obj, 'methodname') 249 * @param string $task Task name registered by this plugin 250 250 */ 251 251 public function register_action($action, $owner, $callback, $task = null) … … 274 274 * It executes the callback function that was registered with the given action. 275 275 * 276 * @param string Action name276 * @param string $action Action name 277 277 */ 278 278 public function exec_action($action) … … 292 292 * Register a handler function for template objects 293 293 * 294 * @param string Object name295 * @param string Plugin name that registers this action296 * @param mixed Callback: string with global function name or array($obj, 'methodname')294 * @param string $name Object name 295 * @param string $owner Plugin name that registers this action 296 * @param mixed $callback Callback: string with global function name or array($obj, 'methodname') 297 297 */ 298 298 public function register_handler($name, $owner, $callback) … … 318 318 * Register this plugin to be responsible for a specific task 319 319 * 320 * @param string Task name (only characters [a-z0-9_.-] are allowed)321 * @param string Plugin name that registers this action320 * @param string $task Task name (only characters [a-z0-9_.-] are allowed) 321 * @param string $owner Plugin name that registers this action 322 322 */ 323 323 public function register_task($task, $owner) … … 346 346 * Checks whether the given task is registered by a plugin 347 347 * 348 * @param string $task Task name 348 349 * @return boolean True if registered, otherwise false 349 350 */ … … 358 359 * Mainly used to prevent loops and recursion. 359 360 * 360 * @param string Hook to check (optional)361 * @param string $hook Hook to check (optional) 361 362 * @return boolean True if any/the given hook is currently processed, otherwise false 362 363 */ … … 368 369 /** 369 370 * Include a plugin script file in the current HTML page 371 * 372 * @param string $fn Path to script 370 373 */ 371 374 public function include_script($fn) … … 379 382 /** 380 383 * Include a plugin stylesheet in the current HTML page 384 * 385 * @param string $fn Path to stylesheet 381 386 */ 382 387 public function include_stylesheet($fn) … … 390 395 /** 391 396 * Save the given HTML content to be added to a template container 397 * 398 * @param string $html HTML content 399 * @param string $container Template container identifier 392 400 */ 393 401 public function add_content($html, $container) … … 398 406 /** 399 407 * Callback for template_container hooks 408 * 409 * @param array $attrib 410 * @return array 400 411 */ 401 412 private function template_container_hook($attrib) … … 407 418 /** 408 419 * Make the given file name link into the plugins directory 420 * 421 * @param string $fn Filename 422 * @return string 409 423 */ 410 424 private function resource_url($fn) -
program/include/rcube_user.php
re999919 r5c461ba 34 34 public $language = null; 35 35 36 /** 37 * Holds database connection. 38 * 39 * @var rcube_mdb2 40 */ 36 41 private $db = null; 37 42 … … 40 45 * Object constructor 41 46 * 42 * @param object DB Database connection 47 * @param int $id User id 48 * @param array $sql_arr SQL result set 43 49 */ 44 50 function __construct($id = null, $sql_arr = null) … … 63 69 * Build a user name string (as e-mail address) 64 70 * 65 * @param stringUsername part (empty or 'local' or 'domain')71 * @param string $part Username part (empty or 'local' or 'domain') 66 72 * @return string Full user name or its part 67 73 */ … … 115 121 * Write the given user prefs to the user's record 116 122 * 117 * @param array User prefs to save123 * @param array $a_user_prefs User prefs to save 118 124 * @return boolean True on success, False on failure 119 125 */ … … 162 168 * Get default identity of this user 163 169 * 164 * @param intIdentity ID. If empty, the default identity is returned170 * @param int $id Identity ID. If empty, the default identity is returned 165 171 * @return array Hash array with all cols of the identity record 166 172 */ … … 175 181 * Return a list of all identities linked with this user 176 182 * 183 * @param string $sql_add Optional WHERE clauses 177 184 * @return array List of identities 178 185 */ … … 199 206 * Update a specific identity record 200 207 * 201 * @param int Identity ID202 * @param array Hash array with col->value pairs to save208 * @param int $iid Identity ID 209 * @param array $data Hash array with col->value pairs to save 203 210 * @return boolean True if saved successfully, false if nothing changed 204 211 */ … … 233 240 * Create a new identity record linked with this user 234 241 * 235 * @param array Hash array with col->value pairs to save242 * @param array $data Hash array with col->value pairs to save 236 243 * @return int The inserted identity ID or false on error 237 244 */ … … 265 272 * Mark the given identity as deleted 266 273 * 267 * @param intIdentity ID274 * @param int $iid Identity ID 268 275 * @return boolean True if deleted successfully, false if nothing changed 269 276 */ … … 299 306 * Make this identity the default one for this user 300 307 * 301 * @param int The identity ID308 * @param int $iid The identity ID 302 309 */ 303 310 function set_default($iid) … … 344 351 * Find a user record matching the given name and host 345 352 * 346 * @param string IMAP user name347 * @param string IMAP host name348 * @return objectrcube_user New user instance353 * @param string $user IMAP user name 354 * @param string $host IMAP host name 355 * @return rcube_user New user instance 349 356 */ 350 357 static function query($user, $host) … … 373 380 * Create a new user record and return a rcube_user instance 374 381 * 375 * @param string IMAP user name376 * @param string IMAP host377 * @return objectrcube_user New user instance382 * @param string $user IMAP user name 383 * @param string $host IMAP host 384 * @return rcube_user New user instance 378 385 */ 379 386 static function create($user, $host) … … 472 479 * Resolve username using a virtuser plugins 473 480 * 474 * @param string E-mail address to resolve481 * @param string $email E-mail address to resolve 475 482 * @return string Resolved IMAP username 476 483 */ … … 488 495 * Resolve e-mail address from virtuser plugins 489 496 * 490 * @param string User name491 * @param boolean If true returns first found entry492 * @param boolean If true returns email as array (email and name for identity)497 * @param string $user User name 498 * @param boolean $first If true returns first found entry 499 * @param boolean $extended If true returns email as array (email and name for identity) 493 500 * @return mixed Resolved e-mail address string or array of strings 494 501 */
Note: See TracChangeset
for help on using the changeset viewer.
