rcube_output

Class for output generation

package

Framework

subpackage

View

Methods

Object constructor

__construct() 

Magic getter

__get($var) 

Arguments

$var

Setter for output charset.

set_charset(string $charset) 

To be specified in a meta tag and sent as http-header

Arguments

$charset

string

Charset name

Getter for output charset

get_charset() : string

Response

string

Output charset name

Set environment variable

set_env(string $name, mixed $value) 

Arguments

$name

string

Property name

$value

mixed

Property value

Environment variable getter.

get_env(string $name) : mixed

Arguments

$name

string

Property name

Response

mixed

Property value

Delete all stored env variables and commands

reset() 

Invoke display_message command

show_message(string $message, string $type = 'notice', array $vars = null, boolean $override = true, int $timeout) 
abstract

Arguments

$message

string

Message to display

$type

string

Message type [notice|confirm|error]

$vars

array

Key-value pairs to be replaced in localized text

$override

boolean

Override last set message

$timeout

int

Message displaying time in seconds

Redirect to a certain url.

redirect(mixed $p = array(), int $delay = 1) 
abstract

Arguments

$p

mixed

Either a string with the action or url parameters as key-value pairs

$delay

int

Delay in seconds

Send output to the client.

send() 
abstract

Send HTTP headers to prevent caching a page

nocacheing_headers() 

Send header with expire date 30 days in future

future_expire_header($offset = 2600000) 

Arguments

$offset

Show error page and terminate script execution

raise_error(int $code, string $message) 

Arguments

$code

int

Error code

$message

string

Error message

Create an edit field for inclusion on a form

get_edit_field($col, $value, $attrib, $type = 'text') : string
static

Arguments

$col

$value

$attrib

$type

Response

string

HTML field definition

Convert a variable into a javascript object notation

json_serialize($input) : string
static

Arguments

$input

Response

string

Serialized JSON string

Properties

browser

browser : 

app

app : 

config

config : 

charset

charset : 

env

env :