Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

PHPTAL_Context Class Reference

List of all members.

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

Detailed Description

Template context handler.

This object produce a translation between variables passed to the template and regular template pathes.

Author:
Laurent Bedubourg <laurent.bedubourg@free.fr>

Definition at line 65 of file Context.php.


Constructor & Destructor Documentation

PHPTAL_Context::PHPTAL_Context hash = array()  ) 
 

Context constructor.

Parameters:
hashtable $hash (opt)

Definition at line 75 of file Context.php.


Member Function Documentation

PHPTAL_Context::cleanError  ) 
 

Clean error handler.

Definition at line 208 of file Context.php.

PHPTAL_Context::errorRaised  ) 
 

Tells if an error was raised by this context accessing an unknown path.

Returns:
boolean

Definition at line 198 of file Context.php.

& PHPTAL_Context::get path  ) 
 

Retrieve specified context resource.

Parameters:
string $path Path to a context resource.
Returns:
mixed
Exceptions:
NameError 

Definition at line 155 of file Context.php.

References get(), and path.

Referenced by get().

& PHPTAL_Context::getHash  ) 
 

Return the context associative object.

Definition at line 141 of file Context.php.

& PHPTAL_Context::getToString path  ) 
 

Retrieve specified context resouce as a string object

Parameters:
string $path Path to a context resource.
Returns:
string

Definition at line 177 of file Context.php.

References $res, getToString(), and path.

Referenced by getToString().

PHPTAL_Context::has path  ) 
 

Test if the context can resolve specified path.

Parameters:
string $path Path to a context resource.
Returns:
boolean

Definition at line 124 of file Context.php.

References has(), and path.

Referenced by has().

PHPTAL_Context::remove path  ) 
 

Remove a context variable.

Parameters:
string $path -- Context path

Definition at line 109 of file Context.php.

References path, and remove().

Referenced by remove(), set(), and setRef().

PHPTAL_Context::set path,
value
 

Set a context variable.

Parameters:
string $path -- Variable path
mixed $value -- Value

Definition at line 98 of file Context.php.

References path, remove(), and set().

Referenced by set().

PHPTAL_Context::setRef path,
&$  value
 

Set a value by reference.

Parameters:
string $path -- Variable path
mixed $value -- Reference to variable.

Definition at line 86 of file Context.php.

References path, remove(), and setRef().

Referenced by setRef().


Member Data Documentation

PHPTAL_Context::$_array = array()
 

Definition at line 67 of file Context.php.

PHPTAL_Context::$_errorRaised = false
 

Definition at line 68 of file Context.php.


The documentation for this class was generated from the following file:
Generated on Tue Jun 29 23:40:58 2004 for Mediawiki by doxygen 1.3.7