Interface defining view handlers.
A view handler is the implementation of a view that converts the abstract ezcMvcResult objects to ezcMvcResponse objects - which are then send to the client with a response writer.
Source for this file: /MvcTools/src/interfaces/view_handler.php
Version: | //autogentag// |
public ezcMvcViewHandler |
__construct(
$name
, [ $templateLocation
= null] )
Creates a new view handler, where $name is the name of the block and $templateLocation the location of a view template. |
public string |
getName(
)
Returns the name of the template, as set in the constructor. |
public mixed |
getResult(
)
Returns the result of the process() method. |
public void |
process(
$last
)
Processes the template with the variables added by the send() method. |
public void |
send(
$name
, $value
)
Adds a variable to the template, which can then be used for rendering the view. |
Creates a new view handler, where $name is the name of the block and $templateLocation the location of a view template.
Name | Type | Description |
---|---|---|
$name |
string | |
$templateLocation |
string |
Returns the name of the template, as set in the constructor.
Returns the result of the process() method.
Processes the template with the variables added by the send() method.
The result of this action should be retrievable through the getResult() method.
The $last parameter is set if the view handler is the last one in the list of zones for a specific view.
Name | Type | Description |
---|---|---|
$last |
bool |
Adds a variable to the template, which can then be used for rendering the view.
Name | Type | Description |
---|---|---|
$name |
string | |
$value |
mixed |