Returns supported font-family specifications
void
font_defs
([string $font = null], string|array 1)
-
string
$font: Font name
-
string|array
1: Font-family specification array or string (if $font is used)
This implements the 'singleton' design pattern
Redefinition of:
- rcube::get_instance()
- This implements the 'singleton' design pattern
void
quota_display
( $attrib)
Replaces TinyMCE's emoticon images with plain-text representation
string
replace_emoticons
(string $html)
-
string
$html: HTML content
**********************************************************************
******** Deprecated methods (to be removed) ********* *********************************************************************
void
setcookie
( $name, $value, [ $exp = 0])
Initializes client-side autocompletion.
void
autocomplete_init
()
Auto-select IMAP host based on the posted login information
string
autoselect_host
()
Create a hierarchical array of the mailbox list
void
build_folder_tree
( &$arrFolders, $folder, [ $delm = '/'], [ $path = ''])
-
&$arrFolders
-
$folder
-
$delm
-
$path
Check if the current request contains a valid token
boolean
check_request
([int $mode = rcube_utils::INPUT_POST])
-
int
$mode: Request method
Send the given message using the configured method.
boolean
deliver_message
( &$message, string $from, array $mailto, &$error, [ &$body_file = null], [array $options = null], object $message, array $error, string $body_file)
-
object
$message: Reference to Mail_MIME object
-
string
$from: Sender address string
-
array
$mailto: Array of recipient address strings
-
array
$error: SMTP error array (reference)
-
string
$body_file: Location of file with saved message body (reference), used when delay_file_io is enabled
-
array
$options: SMTP options (e.g. DSN request)
-
&$message
-
&$error
-
&$body_file
Outputs error message according to server error/response codes
void
display_server_error
([string $fallback = null], [array $fallback_args = null], [string $suffix = ''])
-
string
$fallback: Fallback message label
-
array
$fallback_args: Fallback message label arguments
-
string
$suffix: Message label suffix
Return internal name for the given folder if it matches the configured special folders
void
folder_classname
( $folder_id)
Return folders list in HTML
string
folder_list
(array $attrib)
-
array
$attrib: Named parameters
Return folders list as html_select object
-
array
$p: Named parameters
Convert the given date to a human readable form This uses the date formatting properties from config
string
format_date
(mixed $date, [string $format = null], [bool $convert = true])
-
mixed
$date: Date representation (string, timestamp or DateTime object)
-
string
$format: Date format to use
-
bool
$convert: Enables date convertion according to user timezone
Unique Message-ID generator.
string
gen_message_id
()
Returns current action filename
void
get_action_file
(array $map)
-
array
$map: Alias-to-filename hash array
Return instance of the internal address book class
rcube_contacts
get_address_book
(
string $id, [
boolean $writeable =
false])
-
string
$id: Address book identifier (-1 for default addressbook)
-
boolean
$writeable: True if the address book needs to be writeable
Return address books list
array
get_address_sources
([boolean $writeable = false], [boolean $skip_hidden = false])
-
boolean
$writeable: True if the address book needs to be writeable
-
boolean
$skip_hidden: True if the address book needs to be not hidden
Generate a unique token to be used in a form request
string
get_request_token
()
Output HTML editor scripts
void
html_editor
([string $mode = ''])
-
string
$mode: Editor mode
Create an output object for JSON responses
Destroy session data and remove cookie
void
kill_session
()
Init output object for GUI and add common scripts.
This will instantiate a rcmail_output_html object and set environment vars according to the current session and configuration
-
boolean
$framed: True if this request is loaded in a (i)frame
Try to localize the given IMAP folder name.
UTF-7 decode it in case no localized text was found
string
localize_foldername
(string $name, [bool $with_path = true])
-
string
$name: Folder name
-
bool
$with_path: Enable path localization
void
localize_folderpath
( $path)
Perfom login to the mail server and to the webmail service.
This will also create a new user entry if auto_create_user is configured.
boolean
login
(string $username, string $pass, [string $host = null], [bool $cookiecheck = false])
-
string
$username: Mail storage (IMAP) user name
-
string
$pass: Mail storage (IMAP) password
-
string
$host: Mail storage (IMAP) host
-
bool
$cookiecheck: Enables cookie check
Returns error code of last login operation
int
login_error
()
Do server side actions on logout
void
logout_actions
()
Write login data (name, ID, IP address) to the 'userlogins' log file.
void
log_login
()
Returns real size (calculated) of the message part
Overwrite action variable
void
overwrite_action
(string $action)
-
string
$action: New action value
void
quota_content
([ $attrib = null])
Registers action aliases for current task
void
register_action_map
(array $map)
-
array
$map: Alias-to-filename hash array
Return html for a structured list <ul> for the mailbox tree
void
render_folder_tree_html
( &$arrFolders, &$mbox_name, &$jslist, $attrib, [ $nestLevel = 0])
-
&$arrFolders
-
&$mbox_name
-
&$jslist
-
$attrib
-
$nestLevel
Return html for a flat list <select> for the mailbox tree
void
render_folder_tree_select
( &$arrFolders, &$mbox_name, $maxlength, &$select, [ $realnames = false], [ $nestLevel = 0], [ $opts = array()])
-
&$arrFolders
-
&$mbox_name
-
$maxlength
-
&$select
-
$realnames
-
$nestLevel
-
$opts
Create session object and start the session.
void
session_init
()
Redefinition of:
- rcube::session_init()
- Create session object and start the session.
Setter for application task
void
set_task
(string $task)
-
string
$task: Task to set
Setter for system user object
Create a human readable string for a number of bytes
string
show_bytes
(int $bytes)
-
int
$bytes: Number of bytes
Function to be executed in script shutdown
void
shutdown
()
Redefinition of:
- rcube::shutdown()
- Function to be executed in script shutdown
Initial startup function
to register session, create database and imap connections
void
startup
()
Connect to the mail storage server with stored session data
bool
storage_connect
()
Create a HTML table based on the given data
string
table_output
(array $attrib, mixed $table_data, array $a_show_cols, string $id_col)
-
array
$attrib: Named table attributes
-
mixed
$table_data: Table row data. Either a two-dimensional array or a valid SQL result set
-
array
$a_show_cols: List of cols to show
-
string
$id_col: Name of the identifier col
Initializes file uploading interface.
void
upload_init
()
File upload progress handler.
void
upload_progress
()
Build a valid URL to this instance of Roundcube
string
url
(mixed $p)
-
mixed
$p: Either a string with the action or url parameters as key-value pairs
Redefinition of:
- rcube::url()
- Build a valid URL to this instance of Roundcube
Returns RFC2822 formatted current date in user's timezone
string
user_date
()
Inherited Methods
Inherited From rcube
rcube::__construct()
rcube::add_shutdown_function()
rcube::cache_gc()
rcube::console()
rcube::decrypt()
rcube::encrypt()
rcube::exec()
rcube::gettext()
rcube::get_cache()
rcube::get_dbh()
rcube::get_instance()
rcube::get_memcache()
rcube::get_storage()
rcube::get_user_email()
rcube::get_user_id()
rcube::get_user_language()
rcube::get_user_name()
rcube::get_user_password()
rcube::init()
rcube::JQ()
rcube::language_prop()
rcube::list_languages()
rcube::load_language()
rcube::log_bug()
rcube::memcache_failure()
rcube::print_timer()
rcube::Q()
rcube::raise_error()
rcube::session_init()
rcube::set_storage_prop()
rcube::shutdown()
rcube::smtp_init()
rcube::storage_init()
rcube::temp_gc()
rcube::text_exists()
rcube::timer()
rcube::url()
rcube::write_log()