|
| $container = [] |
|
| $viewData |
|
| $contentType = "text/html" |
|
Protected Attributes inherited from SlaxWeb\Output\AbstractHandler |
| $contentType = "" |
|
| $statusCode = 200 |
|
SlaxWeb\Output\Handler\View::add |
( |
AppView |
$view | ) |
|
Add View
Adds a View instance to the Views container and returns an instance of itself.
- Parameters
-
\SlaxWeb\View\Base | $view | View instance |
- Returns
- self
SlaxWeb\Output\Handler\View::addData |
( |
array |
$data, |
|
|
string |
$type = "all" |
|
) |
| |
Add view data
Adds an array of data to the internal view data container. The second parameter, $type, defines if the data received will be used for a specific View, or all views. The $type needs to be set to the full class name of a view in order to be recognized as view data for that specific view. If the second parameters is omitted or value "all" is used, then data will be used for all views.
- Parameters
-
array | $data | View data |
string | $type | View data type |
- Returns
- self
SlaxWeb\Output\Handler\View::render |
( |
| ) |
|
SlaxWeb\Output\Handler\View::$viewData |
|
protected |
The documentation for this class was generated from the following file:
- /opt/slax0rDev/slaxweb/output/src/Handler/View.php