PHP Класс Devise\Pages\Viewvars\DataBuilder

Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( DataCrawler $DataCrawler ) Construct a new data builder
compile ( $queue ) : array Injects data from config into the current view
getData ( ) : array Get the data for the view composer
getValue ( $options ) : array Gets the value of the view variable from options by parsing the options string and also any parameters for this specific variable.
setData ( array $data ) : array Set the data that will be used by a view composer

Приватные методы

Метод Описание
fillParamRequest ( $paramRequestList ) : array Loops through params in views config and fills the value of each parameter key => value pair
fillWithNulls ( array $failures ) : void Fill the failures with null values
loadClass ( $path ) : array Uses the path from config to load a class if the class is already loaded the instance is returned
processQueue ( array $queue ) : void Process queue takes an array and gets the computed value of each value from the array. It populates $this->data which is used later by the view composer when it calls the getData() method.

Описание методов

__construct() публичный Метод

Construct a new data builder
public __construct ( DataCrawler $DataCrawler )
$DataCrawler DataCrawler

compile() публичный Метод

Injects data from config into the current view
public compile ( $queue ) : array
Результат array

getData() публичный Метод

Get the data for the view composer
public getData ( ) : array
Результат array

getValue() публичный Метод

Gets the value of the view variable from options by parsing the options string and also any parameters for this specific variable.
public getValue ( $options ) : array
$options
Результат array

setData() публичный Метод

Set the data that will be used by a view composer
public setData ( array $data ) : array
$data array
Результат array