\Horde_Core_Ajax_Response_HordeCore_JsonHtml

Extends the base HordeCore object by outputting the JSON data in HTML format.

Copyright 2012-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Summary

Methods
Properties
Constants
__construct()
send()
sendAndExit()
$cssfiles
$jsfiles
$jsonhtml
$tasks
$data
No constants found
_jsonData()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$cssfiles

$cssfiles : array

CSS files to be loaded by the browser.

Type

array

$jsfiles

$jsfiles : array

JavaScript files to be loaded by the browser.

Type

array

$jsonhtml

$jsonhtml : boolean

If true, output HTML-ized JSON instead of application/json.

Type

boolean

$tasks

$tasks : object

Task data to send to the browser.

Type

object

$data

$data : mixed

Response data to send to the browser.

Type

mixed

Methods

__construct()

__construct(mixed  $data = null) 

Constructor.

Parameters

mixed $data

Response data to send to browser.

send()

send() 

Send response data to browser.

sendAndExit()

sendAndExit() 

Send response data to browser and ends script execution.

_jsonData()

_jsonData() : object

HordeCore JSON responses are a structured object which always includes the response in the 'response' property.

The object may include a 'jsfiles' property, which is an array of URL-accessible javascript files to be loaded by the browser (since 2.10.0).

The object may include a 'msgs' property, which is an array of notification message objects with 3 properties: flags, message, and type.

The object may include a 'tasks' property, which is an array of keys (task names) / values (task data).

Returns

object —

HordeCore JSON object.