Devise
Class

Devise\Pages\Viewvars\DataBuilder

class DataBuilder

This builds the variables that are found in view-vars.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 $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
public __construct(DataCrawler $DataCrawler)

Construct a new data builder

Parameters

DataCrawler $DataCrawler

at line 50
public array compile($queue)

Injects data from config into the current view

Parameters

$queue

Return Value

array

at line 63
public array setData(array $data)

Set the data that will be used by a view composer

Parameters

array $data

Return Value

array

at line 73
public array getData()

Get the data for the view composer

Return Value

array

at line 87
public array getValue($options $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 $options

Return Value

array

Exceptions

DeviseRouteConfigurationException