Horde_Core_Ajax_Response_HordeCore_NoAuth
extends Horde_Core_Ajax_Response_HordeCore
in package
Sends an authentication failure response to the HordeCore JS framework.
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.
- $_app : string
- App of the last JSON request.
- $_error : int
- The authentication error.
Methods
- __construct() : mixed
- Constructor.
- send() : mixed
- Send response data to browser.
- sendAndExit() : mixed
- Send response data to browser and ends script execution.
- _jsonData() : object
- HordeCore JSON responses are a structured object which always includes the response in the 'response' property.
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
$_app
App of the last JSON request.
protected
string
$_app
$_error
The authentication error.
protected
int
$_error
Methods
__construct()
Constructor.
public
__construct(string $app[, mixed $error = Horde_Auth::REASON_FAILED ]) : mixed
Parameters
- $app : string
-
App of the last JSON request.
- $error : mixed = Horde_Auth::REASON_FAILED
send()
Send response data to browser.
public
send() : mixed
sendAndExit()
Send response data to browser and ends script execution.
public
sendAndExit() : mixed
_jsonData()
HordeCore JSON responses are a structured object which always includes the response in the 'response' property.
protected
_jsonData() : object
Return values
object —HordeCore JSON object.