Method |
Description |
|
__construct ( string $file, array $data = [] ) |
Construct view object using specified file and data. |
|
__toString ( ) : string |
PHP can't handle exceptions in __toString method. Try to avoid it every time possible. Use render() method instead. |
|
clearOverride ( $source ) |
Clear registered view file override |
|
getDoctype ( ) : mixed |
Return DOCTYPE declaration. |
|
getThemeOption ( $name, null $default = null ) : string |
Get theme option. Options can be viewed or set using UI via Theme options dialog box. |
|
getVariable ( $name ) : null |
Get view variable value |
|
getVariables ( ) : array |
Get view variables |
|
registerOverride ( string $source, string $destination ) |
Register view file override |
|
render ( ) : string |
Render a view and return HTML, XML, or any other string. |
|
setDoctype ( $doctype ) |
Set DOCTYPE declaration. |
|
setVariable ( string $name, $value ) |
Set a single view variable |
|
setVariables ( $variables ) |
Set view variables |
|
unsetVariable ( $name ) |
Unset a view variable |
|