Implements interfaces:
Abstract class for Zend_View to help enforce private constructs.
Located in /View/Abstract.php (line 39)
Class | Description |
---|---|
![]() |
Concrete class for handling view scripts. |
Constructor.
Given a base path, add script, helper, and filter paths relative to it
Assumes a directory structure of:
Add one or more filters to the stack in FIFO order.
Adds to the stack of filter paths in LIFO order.
Adds to the stack of helper paths in LIFO order.
Adds to the stack of view script paths in LIFO order.
Assigns variables to the view script via differing strategies.
Zend_View::assign('name', $value) assigns a variable called 'name' with the corresponding $value.
Zend_View::assign($array) assigns the array keys as variable names (with the corresponding array values).
Clear all assigned variables
Clears all variables assigned to Zend_View either via assign() or property overloading (__set()).
Escapes a value for output in a view script.
If escaping mechanism is one of htmlspecialchars or htmlentities, uses $_encoding setting.
Return associative array of path types => paths
Return current escape encoding
Return the template engine object
Returns the object instance, as it is its own template engine
Get a filter object by name
Get full path to a filter class file specified by $name
Returns an array of all currently set filter paths
Return array of all currently active filters
Only returns those that have already been instantiated.
Get a helper by name
Get full path to a helper class file specified by $name
Returns an array of all currently set helper paths
Get array of all active helpers
Only returns those that have already been instantiated.
Return full path to a view script specified by $name
Returns an array of all currently set script paths
Return list of all assigned variables
Returns all public properties of the object. Reflection is not used here as testing reflection properties for visibility is buggy.
Allow custom object initialization when extending Zend_View_Abstract or Zend_View
Triggered by the constructor as its final action.
Processes a view script and returns the output.
Given a base path, sets the script, helper, and filter paths relative to it
Assumes a directory structure of:
Set encoding to use with htmlentities() and htmlspecialchars()
Sets the _escape() callback.
Resets the filter stack.
To clear all filters, use Zend_View::setFilter(null).
Resets the stack of filter paths.
To clear all paths, use Zend_View::setFilterPath(null).
Resets the stack of helper paths.
To clear all paths, use Zend_View::setHelperPath(null).
Resets the stack of view script paths.
To clear all paths, use Zend_View::setScriptPath(null).
Enable or disable strict vars
If strict variables are enabled, __get() will raise a notice when a variable is not defined.
Use in conjunction with the declareVars() helper to enforce strict variable handling in your view scripts.
Use to include the view script in a scope that only allows public members.
Finds a view script from the available directories.
Accesses a helper object from within a script.
If the helper class has a 'view' property, sets it with the current view object.
Prevent E_NOTICE for nonexistent values
If strictVars() is on, raises a notice.
Allows testing with empty() and isset() to work inside templates.
Directly assigns a variable to the view script.
Checks first to ensure that the caller is not attempting to set a protected or private member (by checking for a prefixed underscore); if not, the public member is set; otherwise, an exception is raised.
Allows unset() on object properties to work
Documentation generated on Sun, 27 May 2007 23:19:36 -0700 by phpDocumentor 1.3.2