Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Interface class for Zend_View compatible template engine implementations
__isset(
string $key
)
:
booleanAllows testing with empty() and isset() to work
Details__set(
string $key, mixed $val
)
:
voidAssign a variable to the view
Details__unset(
string $key
)
:
voidAllows unset() on object properties to work
DetailsaddBasePath(
string $path, string $classPrefix
=
Zend_View
)
:
voidAdd an additional path to view resources
Detailsassign(
string|array $spec, mixed $value
=
null
)
:
voidAssign variables to the view script via differing strategies.
Suggested implementation is to allow setting a specific key to the specified value, OR passing an array of key => value pairs to set en masse.
DetailsclearVars(
)
:
voidClear all assigned variables
Clears all variables assigned to Zend_View either via {@link assign()} or property overloading ({@link __get()}/{@link __set()}).
DetailsgetEngine(
)
:
mixedReturn the template engine object, if any
If using a third-party template engine, such as Smarty, patTemplate, phplib, etc, return the template engine object. Useful for calling methods on these objects, such as for setting filters, modifiers, etc.
DetailsgetScriptPaths(
)
:
arrayRetrieve all view script paths
Detailsrender(
string $name
)
:
stringProcesses a view script and returns the output.
DetailssetBasePath(
string $path, string $classPrefix
=
Zend_View
)
:
voidSet a base path to all view resources
DetailssetScriptPath(
string|array $path
)
:
voidSet the path to find the view script used by render()
Details