SlaxWeb Framework
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SlaxWeb\View\Service\Provider Class Reference
Inheritance diagram for SlaxWeb\View\Service\Provider:
Inheritance graph
[legend]
Collaboration diagram for SlaxWeb\View\Service\Provider:
Collaboration graph
[legend]

Public Member Functions

 register (Container $container)
 

Protected Member Functions

 getViewClass (string $view)
 
 setLayout (string $name,\SlaxWeb\View\Base $view)
 

Protected Attributes

 $container = null
 

Member Function Documentation

SlaxWeb\View\Service\Provider::getViewClass ( string  $view)
protected

Get View Class

Constructs the full view class name with the fully qualified namespace name and returns it as a string.

Parameters
string$viewNamespaceless view class name
Returns
string
SlaxWeb\View\Service\Provider::register ( Container  $container)

Register provider

Register the PHP Template Loader as the tempalte loader to the DIC.

Parameters
\Pimple\Container$containerDIC
Returns
void
SlaxWeb\View\Service\Provider::setLayout ( string  $name,
\SlaxWeb\View\Base  $view 
)
protected

Set Layout

Loads and sets the layout to the view object that it receives. The first parameter must hold the name of the layout to load, and the second parameter is the view object to which the layout will be set.

Parameters
string$nameName of the layout
\SlaxWeb\View\Base$viewView to which the layout is to be set
Returns
void

The documentation for this class was generated from the following file: