JsonOutputSuccess

Extends \ls\ajax\JsonOutput

Set success message in constructor, which will be shown as a pop-up on client.

since 2016-09-27
author

Olle Härstedt

Methods

__construct

__construct(string|null $result) 
inherited

Arguments

$result

string|null

__toString

__toString() : string
inherited

Response

string

Json encoded object

Properties

result

result : mixed
inherited
var

Type(s)

mixed

Array like array('code' => 123, 'message' => 'Something went wrong.')

error : array|null
inherited
var

Type(s)

array|null

Success message pop-up

success : string|null
inherited
var

Type(s)

string|null

True if user is logged in

loggedIn : boolean
inherited
var

Type(s)

boolean

True if user has permission

hasPermission : boolean
inherited
var

Type(s)

boolean

Translated text of 'No permission'

noPermissionText : string
inherited
var

Type(s)

string