FrameworkOnFramework View class. The View is the MVC component which gets the raw data from a Model and renders it in a way that makes sense. The usual rendering is HTML, but you can also output JSON, CSV, XML, or even media (images, videos, ...) and documents (Word, PDF, Excel...).
Located in /libraries/fof/view/view.php (line 20)
JObject | --FOFView
Class | Description |
---|---|
![]() |
FrameworkOnFramework raw output class. It works like an HTML view, but the output is bare HTML. |
The available renderer objects we can use to render views
Cache of the configuration array
Should I run the post-render step?
Should I run the pre-render step?
The chosen renderer object
The base path of the view
Charset to use in escaping mechanisms; defaults to urf8 (UTF-8)
The default model
Callback for escaping.
Layout name
Layout extension
Layout template
Registered models
The name of the view
The output of the template script.
The set of search directories for resources (templates)
The name of the default template source file.
Inherited from JObject
JObject::$_errors
Registers a renderer object with the view
Public constructor. Instantiates a FOFView object.
Adds to the stack of helper script paths in LIFO order.
Adds to the stack of view script paths in LIFO order.
Assigns variables to the view script via differing strategies.
This method is overloaded; you can assign all the properties of an object, an associative array, or a single value by name.
You are not allowed to set variables that begin with an underscore; these are either private properties for FOFView or private variables within the template script itself.
Assign variable for the view (by reference).
You are not allowed to set variables that begin with an underscore; these are either private properties for FOFView or private variables within the template script itself.
Overrides the default method to execute and display a template script.
Instead of loadTemplate is uses loadAnyTemplate which allows for automatic Joomla! version overrides. A little slice of awesome pie!
Escapes a value for output in a view script.
If escaping mechanism is either htmlspecialchars or htmlentities, uses $_encoding setting.
Method to get data from a registered model or a property of the view
Method to get the model object
Method to get the view name
The model name by default parsed using the classname, or it can be set by passing a $config['name'] in the class constructor
Returns the view's option (component name) and view name in an associative array.
Loads a template given any path. The path is in the format: [admin|site]:com_foobar/viewname/templatename e.g. admin:com_foobar/myview/default
This function searches for Joomla! version override templates. For example, if you have run this under Joomla! 3.0 and you try to load admin:com_foobar/myview/default it will automatically search for the template files default.j30.php, default.j3.php and default.php, in this order.
Load a helper file
Overrides the built-in loadTemplate function with an FOF-specific one.
Our overriden function uses loadAnyTemplate to provide smarter view template loading.
Sets the _escape() callback.
Sets the layout name to use
Allows a different extension for the layout files to be used
Method to add a model to the view.
Sets the post-render flag
Sets the pre-render flag
Sets the renderer object for this view
Adds to the search path for templates and resources.
Create the filename for a resource
Sets an entire array of search paths for templates or resources.
Inherited From JObject
JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::__toString()
Documentation generated on Tue, 19 Nov 2013 15:18:16 +0100 by phpDocumentor 1.4.3