JsonOutputHtml
extends JsonOutput
in package
Echo HTML and put it in a <div> with id $target.
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
- $html : string
- Content.
- $loggedIn : bool
- True if user is logged in
- $noPermissionText : string
- Translated text of 'No permission'
- $result : mixed
- $success : string|null
- Success message pop-up
- $target : string
- ID of element to put HTML in.
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
$html
Content.
public
string
$html
$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
$target
ID of element to put HTML in.
public
string
$target
Methods
__construct()
public
__construct(string $html, string $target) : mixed
Parameters
- $html : string
- $target : string
-
ID of element to put HTML in.
__toString()
public
__toString() : string
Return values
string —Json encoded object