PHP Class Horde_Core_Ajax_Response_HordeCore, horde

Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Core_Ajax_Response
ファイルを表示 Open project: horde/horde Class Usage Examples

Public Properties

Property Type Description
$cssfiles array CSS files to be loaded by the browser.
$jsfiles array JavaScript files to be loaded by the browser.
$jsonhtml boolean If true, output HTML-ized JSON instead of application/json.
$tasks object Task data to send to the browser.

Public Methods

Method Description
__construct ( mixed $data = null, mixed $tasks = null ) Constructor.
send ( )

Protected Methods

Method Description
_jsonData ( ) : object HordeCore JSON responses are a structured object which always includes the response in the 'response' property.

Method Details

__construct() public method

Constructor.
public __construct ( mixed $data = null, mixed $tasks = null )
$data mixed Response data to send to browser.
$tasks mixed Task data to send to browser.

_jsonData() protected method

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).
protected _jsonData ( ) : object
return object HordeCore JSON object.

send() public method

public send ( )

Property Details

$cssfiles public_oe property

CSS files to be loaded by the browser.
Since: 2.25.0
public array $cssfiles
return array

$jsfiles public_oe property

JavaScript files to be loaded by the browser.
Since: 2.10.0
public array $jsfiles
return array

$jsonhtml public_oe property

If true, output HTML-ized JSON instead of application/json.
Since: 2.12.0
public bool $jsonhtml
return boolean

$tasks public_oe property

Task data to send to the browser.
public object $tasks
return object