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

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$loadMultipleTimes boolean $this->call('GET', $url); // works fine first time $this->call('GET', $url); // second time, 500 error because the viewvars are not set below due to $firstView

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

Метод Описание
__construct ( DataBuilder $DataBuilder, $Config = null ) Create new instance of ViewvarComposer
compose ( Illuminate\View\View $view ) : void Injects data from config into the current view

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

Метод Описание
getVars ( string $name ) : array Get the variables for this name

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

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

Create new instance of ViewvarComposer
public __construct ( DataBuilder $DataBuilder, $Config = null )
$DataBuilder DataBuilder

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

Injects data from config into the current view
public compose ( Illuminate\View\View $view ) : void
$view Illuminate\View\View
Результат void

Описание свойств

$loadMultipleTimes публичное статическое свойство

$this->call('GET', $url); // works fine first time $this->call('GET', $url); // second time, 500 error because the viewvars are not set below due to $firstView
public static bool $loadMultipleTimes
Результат boolean