Panda_View_Abstract Class Reference

Inheritance diagram for Panda_View_Abstract:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 getVar ($name)
 setVar ($name, $value)
 unsetVar ($name)
 getData ()
 setData (array $data)
 setEchoOutput ($bool)

Protected Member Functions

 output ($output)

Protected Attributes

 $data = array()
 $echoOutput = true


Detailed Description

Definition at line 12 of file Abstract.php.


Member Function Documentation

Panda_View_Abstract::getVar ( name  ) 

Gets a view variable by its name

If the variable does not exist, a null value is returned. No warning is issued.

Parameters:
string $name The name of the view variable
Returns:
mixed

Implements Panda_View_Interface.

Definition at line 38 of file Abstract.php.

Panda_View_Abstract::setVar ( name,
value 
)

Sets a view variable by its name and value

Parameters:
string $name The name of the view variable
mixed $value The value of the view variable
Returns:
mixed The value of the newly set view variable

Implements Panda_View_Interface.

Definition at line 55 of file Abstract.php.

Panda_View_Abstract::unsetVar ( name  ) 

Unsets a view variable

Parameters:
string $name

Implements Panda_View_Interface.

Definition at line 65 of file Abstract.php.

Panda_View_Abstract::getData (  ) 

Gets all view data

Returns:
array

Definition at line 77 of file Abstract.php.

Panda_View_Abstract::setData ( array $  data  ) 

Sets many view variables at once

Parameters:
array $data
Returns:
array The newly set data array

Definition at line 88 of file Abstract.php.

Panda_View_Abstract::setEchoOutput ( bool  ) 

Toggles between verbose mode and silent mode

Verbose mode will render directly to the output (browser, console, etc), whereas silent mode will not. In either case, the return value will always be a string representation of the view.

Parameters:
boolean $bool True if verbose output is desired. False otherwise.

Definition at line 102 of file Abstract.php.

Panda_View_Abstract::output ( output  )  [protected]

Output the contents of the view

All render() implementations should call this method in order to render the view properly.

Parameters:
string $output
Returns:
string

Definition at line 116 of file Abstract.php.

Referenced by Panda_View_XML::render(), Panda_View_PHP::render(), Panda_View_JSON::render(), and Panda_View_HTML::render().


Member Data Documentation

Panda_View_Abstract::$data = array() [protected]

Definition at line 20 of file Abstract.php.

Panda_View_Abstract::$echoOutput = true [protected]

Definition at line 27 of file Abstract.php.


The documentation for this class was generated from the following file:
Generated on Thu Sep 4 01:56:50 2008 for Panda PHP Components by  doxygen 1.5.4