|
Previous Class |
Solar_View |
Next Page |
Solar_View
Provides a Template View pattern implementation for Solar.
This implementation is good for all (X)HTML and XML template formats, and provides a built-in escaping mechanism for values, along with lazy-loading and persistence of helper objects.
Also supports "partial" templates with variables extracted within the partial-template scope.
Catalog
This class is part of the Solar_View package.
Inheritance:
- Solar_Base
- Solar_View
Constants
None.
Public Properties
The Solar_View class has no public properties; try the list of all properties.
Public Methods
These are all the public methods in the Solar_View class.
You can also view the list of all public, protected, and private methods.
__call()- Executes a helper method with arbitrary parameters.
__construct()- Constructor.
__destruct()- Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
__set()- Disallows setting of underscore-prefixed variables.
addHelperClass()- Add to the helper class stack.
addTemplatePath()- Add to the template directory path stack.
apiVersion()- Reports the API version for this class.
assign()- Sets variables for the view.
display()- Displays a template directly.
dump()- Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
escape()- Built-in helper for escaping output.
fetch()- Fetches template output.
getHelper()- Returns an internal helper object; creates it as needed.
getHelperClass()- Returns the helper class stack.
getTemplatePath()- Returns the template directory path stack.
locale()- Looks up class-specific locale strings based on a key.
newHelper()- Creates a new standalone helper object.
partial()- Executes a partial template in its own scope, optionally with variables into its within its scope.
setHelperClass()- Reset the helper class stack.
setTemplatePath()- Reset the template directory path stack.
template()- Returns the path to the requested template script.
Local
- Overview
- Constants
- Properties
- Methods
- __call()
- __construct()
- __destruct()
- __set()
- _exception()
- _setup()
- addHelperClass()
- addTemplatePath()
- apiVersion()
- assign()
- display()
- dump()
- escape()
- fetch()
- getHelper()
- getHelperClass()
- getTemplatePath()
- locale()
- newHelper()
- partial()
- setHelperClass()
- setTemplatePath()
- template()