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
at line 50
public array
compile($queue)
Injects data from config into the current view
at line 63
public array
setData(array $data)
Set the data that will be used by a view composer
at line 73
public array
getData()
Get the data for the view composer
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.