Devise
Class

Devise\Editor\Helpers\JsonContainer

class JsonContainer

Purpose of this class is to hold on json values for data-devise bindings in the IoC container...

those will be spit out in the devise::scripts view...

Methods

__construct()

void merge(string/array $data)

Merge the data into this class...

string toJSON()

Outputs this data out as json string

array getData()

Outputs this data as just regular data in case we want to tamper or examine it

Details

at line 17
public __construct()

at line 29
public void merge(string/array $data)

Merge the data into this class...

it allows us to have data-devise on multi-pages

Parameters

string/array $data

Return Value

void

at line 45
public string toJSON()

Outputs this data out as json string

Return Value

string

at line 56
public array getData()

Outputs this data as just regular data in case we want to tamper or examine it

Return Value

array