Constructor
rcube_json_output
__construct
([ $task = null])
Register a template object handler
void
add_handler
(string $obj, string $func)
-
string
$obj: Object name
-
string
$func: Function name to call
Register a list of template object handlers
void
add_handlers
(array $arr)
-
array
$arr: Hash array with object=>handler pairs
Add a localized label to the client environment
void
add_label
()
Call a client method
void
command
(string 0, ... 1)
-
string
0: Method to call
-
...
1: Additional arguments
Get charset for output
string
get_charset
()
Redirect to a certain url
void
redirect
([mixed $p = array()], [int $delay = 1])
-
mixed
$p: Either a string with the action or url parameters as key-value pairs
-
int
$delay: Delay in seconds
Send an AJAX response with executable JS code
void
remote_response
([string $add = ''], boolean 1)
-
string
$add: Additional JS code
-
boolean
1: True if output buffer should be flushed
Delete all stored env variables and commands
void
reset
()
Send an AJAX response to the client.
void
send
()
Set environment variable
void
set_env
(string $name, mixed $value)
-
string
$name: Property name
-
mixed
$value: Property value
Issue command to set page title
void
set_pagetitle
(string $title)
-
string
$title: New page title
Invoke display_message command
void
show_message
(string $message, [string $type = 'notice'], [array $vars = null], [boolean $override = true], [int $timeout = 0])
-
string
$message: Message to display
-
string
$type: Message type [notice|confirm|error]
-
array
$vars: Key-value pairs to be replaced in localized text
-
boolean
$override: Override last set message
-
int
$timeout: Message displaying time in seconds