Horde_Core_Ajax_Response_HordeCore_Reload
extends Horde_Core_Ajax_Response_HordeCore
in package
A data object that indicates to the HordeCore javascript framework that the action was successful, but the page needs to be reloaded.
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.
Tags
Table of Contents
Properties
- $cssfiles : array<string|int, mixed>
- CSS files to be loaded by the browser.
- $data : mixed
- Response data to send to the browser.
- $jsfiles : array<string|int, mixed>
- JavaScript files to be loaded by the browser.
- $jsonhtml : bool
- If true, output HTML-ized JSON instead of application/json.
- $tasks : object
- Task data to send to the browser.
Methods
- __construct() : mixed
- Constructor.
- send() : mixed
- Send response data to browser.
- sendAndExit() : mixed
- Send response data to browser and ends script execution.
- _jsonData() : object
- Return a single property, 'reload', which indicates to the HordeCore framework that the page should be immediately reloaded.
Properties
$cssfiles
CSS files to be loaded by the browser.
public
array<string|int, mixed>
$cssfiles
= array()
Tags
$data
Response data to send to the browser.
public
mixed
$data
= \null
$jsfiles
JavaScript files to be loaded by the browser.
public
array<string|int, mixed>
$jsfiles
= array()
Tags
$jsonhtml
If true, output HTML-ized JSON instead of application/json.
public
bool
$jsonhtml
= \false
Tags
$tasks
Task data to send to the browser.
public
object
$tasks
= \null
Methods
__construct()
Constructor.
public
__construct([mixed $data = null ]) : mixed
Parameters
- $data : mixed = null
-
Response data to send to browser. For this class, this can be the URL to redirect to. If null, will reload the current URL of the browser.
send()
Send response data to browser.
public
send() : mixed
sendAndExit()
Send response data to browser and ends script execution.
public
sendAndExit() : mixed
_jsonData()
Return a single property, 'reload', which indicates to the HordeCore framework that the page should be immediately reloaded.
protected
_jsonData() : object
Return values
object —HordeCore JSON object.