PHP Class Robbo\Presenter\View\Factory

Inheritance: extends Illuminate\View\Factory
显示文件 Open project: robclancy/presenter Class Usage Examples

Protected Properties

Property Type Description
$presenterDecorator Robbo\Presenter\Decorator Used for "decorating" objects to have presenters.

Public Methods

Method Description
__construct ( Illuminate\View\Engines\EngineResolver $engines, Illuminate\View\ViewFinderInterface $finder, Illuminate\Events\Dispatcher $events, Decorator $decorator ) : void Create a new view factory instance.
decorate ( mixed $value ) : mixed Decorate an object with a presenter.
make ( string $view, array $data = [], array $mergeData = [] ) : Illuminate\View\View Get a evaluated view contents for the given view.
share ( string $key, mixed $value = null ) : void Add a piece of shared data to the factory.

Method Details

__construct() public method

Create a new view factory instance.
public __construct ( Illuminate\View\Engines\EngineResolver $engines, Illuminate\View\ViewFinderInterface $finder, Illuminate\Events\Dispatcher $events, Decorator $decorator ) : void
$engines Illuminate\View\Engines\EngineResolver
$finder Illuminate\View\ViewFinderInterface
$events Illuminate\Events\Dispatcher
$decorator Robbo\Presenter\Decorator
return void

decorate() public method

Decorate an object with a presenter.
public decorate ( mixed $value ) : mixed
$value mixed
return mixed

make() public method

Get a evaluated view contents for the given view.
public make ( string $view, array $data = [], array $mergeData = [] ) : Illuminate\View\View
$view string
$data array
$mergeData array
return Illuminate\View\View

share() public method

Add a piece of shared data to the factory.
public share ( string $key, mixed $value = null ) : void
$key string
$value mixed
return void

Property Details

$presenterDecorator protected_oe property

Used for "decorating" objects to have presenters.
protected Decorator,Robbo\Presenter $presenterDecorator
return Robbo\Presenter\Decorator