Class Zend_View_Abstract

Description

Abstract class for Zend_View to help enforce private constructs.

  • abstract:
  • license: New BSD License
  • copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/View/Abstract.php (line 36)


	
			
Direct descendents
Class Description
Zend_View Concrete class for handling view scripts.
Method Summary
Zend_View_Abstract __construct ([array $config = array()])
void addFilter (mixed $name)
void addFilterPath (mixed $path)
void addHelperPath (mixed $path)
void addScriptPath (mixed $path)
void assign (mixed $spec, mixed 1)
mixed escape (mixed $var)
string render (string $name)
void setEscape (mixed $spec)
void setFilter (mixed $name)
void setFilterPath (mixed $path)
void setHelperPath (mixed $path)
void setScriptPath (mixed $path)
void _script (mixed $name)
string __call (string $name, array $args)
mixed __get (string $key)
boolean __isset (string $key)
void __set (string $key, mixed $val)
Methods
Constructor __construct (line 90)

Constructor.

  • access: public
Zend_View_Abstract __construct ([array $config = array()])
  • array $config: Configuration key-value pairs.
addFilter (line 276)

Add one or more filters to the stack in FIFO order.

  • access: public
void addFilter (mixed $name)
addFilterPath (line 252)

Adds to the stack of filter paths in LIFO order.

  • access: public
void addFilterPath (mixed $path)
addHelperPath (line 228)

Adds to the stack of helper paths in LIFO order.

  • access: public
void addHelperPath (mixed $path)
addScriptPath (line 203)

Adds to the stack of view script paths in LIFO order.

  • access: public
void addScriptPath (mixed $path)
assign (line 323)

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).

void assign (mixed $spec, mixed 1)
  • mixed 1: (Optional) If assigning a named variable, use this as the value.
escape (line 378)

Escapes a value for output in a view script.

  • return: The escaped value.
  • access: public
mixed escape (mixed $var)
  • mixed $var: The output to escape.
render (line 346)

Processes a view script and returns the output.

  • return: The script output.
  • access: public
string render (string $name)
  • string $name: The script script name to process.
setEscape (line 303)

Sets the _escape() callback.

  • access: public
void setEscape (mixed $spec)
  • mixed $spec: The callback for _escape() to use.
setFilter (line 291)

Resets the filter stack.

To clear all filters, use Zend_View::setFilter(null).

  • access: public
void setFilter (mixed $name)
setFilterPath (line 265)

Resets the stack of filter paths.

To clear all paths, use Zend_View::setFilterPath(null).

  • access: public
void setFilterPath (mixed $path)
setHelperPath (line 241)

Resets the stack of helper paths.

To clear all paths, use Zend_View::setHelperPath(null).

  • access: public
void setHelperPath (mixed $path)
setScriptPath (line 216)

Resets the stack of view script paths.

To clear all paths, use Zend_View::setScriptPath(null).

  • access: public
void setScriptPath (mixed $path)
_script (line 389)

Finds a view script from the available directories.

  • access: protected
void _script (mixed $name)
__call (line 181)

Accesses a helper object from within a script.

  • return: The result of the helper output.
  • access: public
string __call (string $name, array $args)
  • string $name: The helper name.
  • array $args: The parameters for the helper.
__get (line 150)

Retrieves an assigned variable.

Note that variable names may not be prefixed with '_'.

  • return: The variable value.
  • access: public
mixed __get (string $key)
  • string $key: The variable name.
__isset (line 168)

Allows testing with empty() and isset() to work inside templates -- only available on PHP 5.1

  • access: public
boolean __isset (string $key)
  • string $key
__set (line 132)

Directly assigns a variable to the view script.

Note that variable names may not be prefixed with '_'.

  • access: public
void __set (string $key, mixed $val)
  • string $key: The variable name.
  • mixed $val: The variable value.

Documentation generated on Sun, 29 Oct 2006 21:26:58 -0600 by phpDocumentor 1.3.0RC6