Public Member Functions | |
PHPTAL_Context ($hash=array()) | |
setRef ($path, &$value) | |
set ($path, $value) | |
remove ($path) | |
has ($path) | |
& | getHash () |
& | get ($path) |
& | getToString ($path) |
errorRaised () | |
cleanError () | |
Public Attributes | |
$_array = array() | |
$_errorRaised = false |
This object produce a translation between variables passed to the template and regular template pathes.
Definition at line 65 of file Context.php.
|
Context constructor.
Definition at line 75 of file Context.php. |
|
Clean error handler. Definition at line 208 of file Context.php. |
|
Tells if an error was raised by this context accessing an unknown path.
Definition at line 198 of file Context.php. |
|
Retrieve specified context resource.
Definition at line 155 of file Context.php. Referenced by get(). |
|
Return the context associative object. Definition at line 141 of file Context.php. |
|
Retrieve specified context resouce as a string object
Definition at line 177 of file Context.php. References $res, getToString(), and path. Referenced by getToString(). |
|
Test if the context can resolve specified path.
Definition at line 124 of file Context.php. Referenced by has(). |
|
Remove a context variable.
Definition at line 109 of file Context.php. |
|
Set a context variable.
Definition at line 98 of file Context.php. References path, remove(), and set(). Referenced by set(). |
|
Set a value by reference.
Definition at line 86 of file Context.php. References path, remove(), and setRef(). Referenced by setRef(). |
|
Definition at line 67 of file Context.php. |
|
Definition at line 68 of file Context.php. |