JsonOutputNoPermission
extends JsonOutput
in package
Permission set to false
Tags
Table of Contents
Properties
- $error : array<string|int, mixed>|null
- Array like array('code' => 123, 'message' => 'Something went wrong.')
- $hasPermission : bool
- True if user has permission
- $loggedIn : bool
- True if user is logged in
- $noPermissionText : string
- Translated text of 'No permission'
- $result : mixed
- $success : string|null
- Success message pop-up
Methods
- __construct() : mixed
- __toString() : string
Properties
$error
Array like array('code' => 123, 'message' => 'Something went wrong.')
public
array<string|int, mixed>|null
$error
$hasPermission
True if user has permission
public
bool
$hasPermission
$loggedIn
True if user is logged in
public
bool
$loggedIn
$noPermissionText
Translated text of 'No permission'
public
string
$noPermissionText
$result
public
mixed
$result
$success
Success message pop-up
public
string|null
$success
Methods
__construct()
public
__construct() : mixed
__toString()
public
__toString() : string
Return values
string —Json encoded object