Property | Type | Description | |
---|---|---|---|
$data | mixed | The data returned from the doAction() call. | |
$tasks | object | The list of (possibly) unsolicited tasks/data to do for this request. |
Property | Type | Description | |
---|---|---|---|
$_action | string | The action to perform. | |
$_app | string | The Horde application. | |
$_handlers | array | AJAX method handlers. | |
$_vars | Horde_Variables | The request variables. |
Method | Description | |
---|---|---|
__construct ( string $app, Horde_Variables $vars, string $action = null, string $token = null ) | Constructor. | |
__get ( $name ) | ||
addHandler ( string $class ) : Horde_Core_Ajax_Application_Handler | Add an AJAX method handler. | |
addTask ( string $name, mixed $data, string $app = null ) | Add task to response data. | |
callAction ( string $action ) : mixed | Explicitly call an action. | |
doAction ( ) | Performs the AJAX action. The AJAX action should return either raw data (which will be output to the browser to be parsed by the HordeCore JS framework), or a Horde_Ajax_Core_Response object, which will be sent unaltered. | |
send ( ) | Send AJAX response to the browser. |
Method | Description | |
---|---|---|
_getHandler ( ) : mixed | Return the Handler for the current action. | |
_init ( ) | Application initialization code. |
protected _getHandler ( ) : mixed | ||
return | mixed | A Horde_Core_Ajax_Application_Handler object, or null if handler is not found. |
final public addHandler ( string $class ) : Horde_Core_Ajax_Application_Handler | ||
$class | string | Classname of a Handler to add. |
return | Horde_Core_Ajax_Application_Handler | Handler object. |
public callAction ( string $action ) : mixed | ||
$action | string | The action to call. |
return | mixed | The response from the called action. |
public doAction ( ) |
protected Horde_Variables $_vars | ||
return | Horde_Variables |
public mixed $data | ||
return | mixed |
public object $tasks | ||
return | object |