Devise
Class

Devise\Pages\Interrupter\DvsPageData

class DvsPageData

A storage container class that stores collections and fields for a given page.

These fields and collections are addeded to a singleton registered in Devise\Pages\PagesServiceProvider.php called 'dvsPageData'. ALl blade views that contain fields and/or collections will use methods like addCollection and addField respectively to add in the data. Eventually all this data is spit out as JSON for the javascript library in devise to take over from there.

Methods

string collectionsJSON()

Collections as json output

string bindingsJSON()

Bindings as json output

addCollection(string $collection, string $key, string $type, string $humanName, string $group, string $category, string $alternateTarget)

Add a collection to dvsPageData

addBinding(string $key, string $type, string $humanName, string $group, string $category, string $alternateTarget)

Add a binding to dvsPageData

Details

at line 37
public string collectionsJSON()

Collections as json output

Return Value

string

at line 47
public string bindingsJSON()

Bindings as json output

Return Value

string

at line 63
public addCollection(string $collection, string $key, string $type, string $humanName, string $group, string $category, string $alternateTarget)

Add a collection to dvsPageData

Parameters

string $collection
string $key
string $type
string $humanName
string $group
string $category
string $alternateTarget

at line 92
public addBinding(string $key, string $type, string $humanName, string $group, string $category, string $alternateTarget)

Add a binding to dvsPageData

Parameters

string $key
string $type
string $humanName
string $group
string $category
string $alternateTarget