Class View
Allows the creation of views.
- Language
- View
Methods summary
public
|
|
public
|
#
__clone( )
Copy constructor used to clone the View with all properties (e.g. helpers) retained, while clearing all variables to be set in the view file. |
final public
|
|
final public
|
#
setView( string $file = null, string $view = null )
Sets the view file and view to be used for this View |
final public
|
#
set( mixed $name, mixed $value = null )
Sets a variable in this view with the given name and value |
final public
string
|
|
private
array
|
#
getViewPath( string $view = null )
Fetches the view path and view file from the given string which may be of the format PluginName.view_path/view_dir |
Methods inherited from Language
_()
,
getText()
,
loadLang()
,
setLang()
Magic methods summary
Properties summary
protected
array
|
$vars |
#
Holds all the variables we will send to the view |
public
string
|
$file |
#
The file used in the view |
public
string
|
$view_ext |
#
The file extension used in the view |
public
string
|
$view |
#
The location of this view's files within the view path |
public
string
|
$view_dir |
#
This view's relative path (useful in template to reference view related files [e.g. images, javascript, css]) |
public
string
|
$view_path |
#
This view's partial path relative to the public web directory |
public
string
|
$default_view_path |
#
The default view path |