rcmail_output_json

Extends \rcmail_output

View class to produce JSON responses

package

Webmail

subpackage

View

Methods

Setter for page title

set_pagetitle(string $title) 
inherited

Arguments

$title

string

Page title

Register a template object handler

add_handler($obj, $func) : void
inherited

Arguments

$obj

$func

Register a list of template object handlers

add_handlers($arr) : void
inherited

Arguments

$arr

Call a client method

command() 
inherited abstract

Add a localized label to the client environment

add_label() 
inherited abstract

Invoke display_message command

show_message(string $message, string $type = 'notice', array $vars = null, boolean $override = true, int $timeout) 
inherited 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

Delete all stored env variables and commands

reset() 
inherited

Redirect to a certain url.

redirect(mixed $p = array(), int $delay = 1) 
inherited 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() 
inherited abstract

Show error page and terminate script execution

raise_error(int $code, string $message) 
inherited

Arguments

$code

int

Error code

$message

string

Error message

Send an AJAX response with executable JS code

remote_response(string $add = '') : void
deprecated

Arguments

$add

string

Additional JS code

Return executable javascript code for all registered commands

get_js_commands() : string

Response

string

$out

Object constructor

__construct() 
inherited

Getter for the current skin path property

get_skin_path() 
inherited

Magic getter

__get($var) 
inherited

Arguments

$var

Setter for output charset.

set_charset(string $charset) 
inherited

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

Arguments

$charset

string

Charset name

Getter for output charset

get_charset() : string
inherited

Response

string

Output charset name

Set environment variable

set_env(string $name, mixed $value) 
inherited

Arguments

$name

string

Property name

$value

mixed

Property value

Environment variable getter.

get_env(string $name) : mixed
inherited

Arguments

$name

string

Property name

Response

mixed

Property value

Send HTTP headers to prevent caching a page

nocacheing_headers() 
inherited

Send header with expire date 30 days in future

future_expire_header($offset = 2600000) 
inherited

Arguments

$offset

Create an edit field for inclusion on a form

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

Arguments

$col

$value

$attrib

$type

Response

string

HTML field definition

Convert a variable into a javascript object notation

json_serialize($input) : string
inherited static

Arguments

$input

Response

string

Serialized JSON string

Constants

JS_OBJECT_NAME

JS_OBJECT_NAME
inherited

Properties

texts

texts : 

commands

commands : 

callbacks

callbacks : 

message

message : 

type

type : 
inherited

ajax_call

ajax_call : 
inherited

framed

framed : 
inherited

pagetitle

pagetitle : 
inherited

object_handlers

object_handlers : 
inherited

browser

browser : 
inherited

app

app : 
inherited

config

config : 
inherited

charset

charset : 
inherited

env

env : 
inherited