PHP Class Devise\Pages\Viewvars\ViewvarComposer

Datei anzeigen Open project: devisephp/cms Class Usage Examples

Public Properties

Property Type Description
$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

Public Methods

Method Description
__construct ( DataBuilder $DataBuilder, $Config = null ) Create new instance of ViewvarComposer
compose ( Illuminate\View\View $view ) : void Injects data from config into the current view

Private Methods

Method Description
getVars ( string $name ) : array Get the variables for this name

Method Details

__construct() public method

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

compose() public method

Injects data from config into the current view
public compose ( Illuminate\View\View $view ) : void
$view Illuminate\View\View
return void

Property Details

$loadMultipleTimes public_oe static_oe property

$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
return boolean