Zend Framework  1.12
Public Member Functions | Protected Member Functions | List of all members
Zend_View Class Reference

Public Member Functions

 __construct ($config=array())
 Constructor.
 
 setUseStreamWrapper ($flag)
 Set flag indicating if stream wrapper should be used if short_open_tag is off.
 
 useStreamWrapper ()
 Should the stream wrapper be used if short_open_tag is off?
 
- Public Member Functions inherited from Zend_View_Abstract
 __construct ($config=array())
 Constructor.
 
 getEngine ()
 Return the template engine object.
 
 init ()
 Allow custom object initialization when extending Zend_View_Abstract or Zend_View.
 
 __get ($key)
 Prevent E_NOTICE for nonexistent values.
 
 __isset ($key)
 Allows testing with empty() and isset() to work inside templates.
 
 __set ($key, $val)
 Directly assigns a variable to the view script.
 
 __unset ($key)
 Allows unset() on object properties to work.
 
 __call ($name, $args)
 Accesses a helper object from within a script.
 
 setBasePath ($path, $classPrefix= 'Zend_View')
 Given a base path, sets the script, helper, and filter paths relative to it.
 
 addBasePath ($path, $classPrefix= 'Zend_View')
 Given a base path, add script, helper, and filter paths relative to it.
 
 addScriptPath ($path)
 Adds to the stack of view script paths in LIFO order.
 
 setScriptPath ($path)
 Resets the stack of view script paths.
 
 getScriptPath ($name)
 Return full path to a view script specified by $name.
 
 getScriptPaths ()
 Returns an array of all currently set script paths.
 
 setPluginLoader (Zend_Loader_PluginLoader $loader, $type)
 Set plugin loader for a particular plugin type.
 
 getPluginLoader ($type)
 Retrieve plugin loader for a specific plugin type.
 
 addHelperPath ($path, $classPrefix= 'Zend_View_Helper_')
 Adds to the stack of helper paths in LIFO order.
 
 setHelperPath ($path, $classPrefix= 'Zend_View_Helper_')
 Resets the stack of helper paths.
 
 getHelperPath ($name)
 Get full path to a helper class file specified by $name.
 
 getHelperPaths ()
 Returns an array of all currently set helper paths.
 
 registerHelper ($helper, $name)
 Registers a helper object, bypassing plugin loader.
 
 getHelper ($name)
 Get a helper by name.
 
 getHelpers ()
 Get array of all active helpers.
 
 addFilterPath ($path, $classPrefix= 'Zend_View_Filter_')
 Adds to the stack of filter paths in LIFO order.
 
 setFilterPath ($path, $classPrefix= 'Zend_View_Filter_')
 Resets the stack of filter paths.
 
 getFilterPath ($name)
 Get full path to a filter class file specified by $name.
 
 getFilter ($name)
 Get a filter object by name.
 
 getFilters ()
 Return array of all currently active filters.
 
 getFilterPaths ()
 Returns an array of all currently set filter paths.
 
 getAllPaths ()
 Return associative array of path types => paths.
 
 addFilter ($name)
 Add one or more filters to the stack in FIFO order.
 
 setFilter ($name)
 Resets the filter stack.
 
 setEscape ($spec)
 Sets the _escape() callback.
 
 setLfiProtection ($flag)
 Set LFI protection flag.
 
 isLfiProtectionOn ()
 Return status of LFI protection flag.
 
 assign ($spec, $value=null)
 Assigns variables to the view script via differing strategies.
 
 getVars ()
 Return list of all assigned variables.
 
 clearVars ()
 Clear all assigned variables.
 
 render ($name)
 Processes a view script and returns the output.
 
 escape ($var)
 Escapes a value for output in a view script.
 
 setEncoding ($encoding)
 Set encoding to use with htmlentities() and htmlspecialchars()
 
 getEncoding ()
 Return current escape encoding.
 
 strictVars ($flag=true)
 Enable or disable strict vars.
 

Protected Member Functions

 _run ()
 Includes the view script in a scope with only public $this variables.
 
- Protected Member Functions inherited from Zend_View_Abstract
 _script ($name)
 Finds a view script from the available directories.
 
 _run ()
 Use to include the view script in a scope that only allows public members.
 

Constructor & Destructor Documentation

__construct (   $config = array())

Constructor.

Register Zend_View_Stream stream wrapper if short tags are disabled.

Parameters
array$config
Returns
void

Member Function Documentation

_run ( )
protected

Includes the view script in a scope with only public $this variables.

Parameters
stringThe view script to execute.
setUseStreamWrapper (   $flag)

Set flag indicating if stream wrapper should be used if short_open_tag is off.

Parameters
bool$flag
Returns
Zend_View
useStreamWrapper ( )

Should the stream wrapper be used if short_open_tag is off?

Returns
bool