class DataBuilder

This builds the variables that are found in views.php config for a devise page. It uses a ViewComposer (found in this directory) to inject in the data that is built using this class.

Methods

__construct(DataCrawler $DataCrawler)

Construct a new data builder

array
compile($queue)

Injects data from config into the current view

array
setData(array $data)

Set the data that will be used by a view composer

array
getData()

Get the data for the view composer

array
getValue($options)

Gets the value of the view variable from options by parsing the options string and also any parameters for this specific variable.

Details

at line 40
__construct(DataCrawler $DataCrawler)

Construct a new data builder

Parameters

DataCrawler $DataCrawler

at line 50
array compile($queue)

Injects data from config into the current view

Parameters

$queue

Return Value

array

at line 63
array setData(array $data)

Set the data that will be used by a view composer

Parameters

array $data

Return Value

array

at line 73
array getData()

Get the data for the view composer

Return Value

array

at line 87
array getValue($options)

Gets the value of the view variable from options by parsing the options string and also any parameters for this specific variable.

Parameters

$options

Return Value

array

Exceptions

DeviseRouteConfigurationException