
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 | |
Definition at line 12 of file Abstract.php.
| 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.
| string | $name The name of the view variable |
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
| string | $name The name of the view variable | |
| mixed | $value The value of the view variable |
Implements Panda_View_Interface.
Definition at line 55 of file Abstract.php.
| Panda_View_Abstract::unsetVar | ( | $ | name | ) |
Unsets a view variable
| string | $name |
Implements Panda_View_Interface.
Definition at line 65 of file Abstract.php.
| Panda_View_Abstract::getData | ( | ) |
| Panda_View_Abstract::setData | ( | array $ | data | ) |
Sets many view variables at once
| array | $data |
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.
| 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.
| string | $output |
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().
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.
1.5.4