Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

entities_handler Class Reference

Provides methods to handle entities. More...

Inherits template_handler.

Inheritance diagram for entities_handler:

Inheritance graph
List of all members.

Public Methods

function clear ()
 Clear entities.

function set (entity, replacement)
 Set entity to replacement relation.

function process_file (filename, strip_unknown=0, ent_pattern='')
 Process file replacing entities.

function err (what, func='', line=0, file='', terminate=1)
 Log error.

Public Attributes

var need_loc_corr = 0
 If we need to correct locations.

var entities = array()

Detailed Description

Provides methods to handle entities.

Definition at line 9 of file entities_handler.php.

Member Function Documentation

function set entity   ,

Set entity to replacement relation.

string  entity - entity (like '@date' or '&time&' )
an string replacement - string to replace entity to
See also:

Definition at line 27 of file template_handler.php.

function process_file filename   ,
strip_unknown    = 0,
ent_pattern    = ''

Process file replacing entities.

string  filename - template file name
bool  strip_unknown - strip unknown entities
string  ent_pattern - entity pattern to strip unknown entities
string with processed template
relative/absolute paths in templates: xxx://yyy links are coverted to <templates>/xxx://yyy
do something with paths, by now xxx://yyy links are coverted too

Definition at line 41 of file template_handler.php.

Referenced by template_handler::process_file().

function err what   ,
func    = '',
line    = 0,
file    = '',
terminate    = 1

Log error.

what  - error reason
func  - function name in which an error had uccured
line  - source line
file  - name of source file
terminate  - 1 to terminate script processing

Definition at line 23 of file error_logger.php.

Referenced by user_auth::authentificate(), cache_container::clear(), model_querry::get(), cache_container::get(), models::get_info(), models::get_relations(), xml_event_parser_user::import(), model_explore::import(), enviroment::location(), xml_structure_builder::parse(), xml_event_parser::parse(), xml_structure_builder::parse_file(), xml_event_parser::parse_file(), models::pre_cache(), template_handler::process_file(), enviroment::process_locations(), model_explore::process_template(), enviroment::process_template(), and models::read_cache().

The documentation for this class was generated from the following file:
Generated on Tue Mar 11 08:35:18 2003 for SES by doxygen1.2.16