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

final_automat Class Reference

Final automat. More...

Inherits error_logger.

Inherited by fa_xep_user.

Inheritance diagram for final_automat:

Inheritance graph
List of all members.

Public Methods

function & produce (data)
 Produce state.

function do_it (data)
 Action method.

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


Detailed Description

Final automat.

This class is an attempt to construct flexible system that represents final automat. The main ability of final automat is to have number of linked states. The flexibility is the thing that every state has a number of parent states which know how to go in that new state and this is all knowledge that has any state. It is meaning that final_automat will be extended with some another class. Let call it foo. foo can be in various states, but two (foo_1 and foo_2) are the main states. Howewer from state foo_1 we can go to another states foo_1_a, foo_1_b and foo_1_c. These states : public foo_1. Howewer, by example, we must have ability to return from state foo_1_b to state foo_1.

Definition at line 21 of file final_automat.php.


Member Function Documentation

function& produce data   
 

Produce state.

Produce state according to data.

Parameters:
data  - any data identificating state
Returns:
next step object according to requested state

Reimplemented in model_abstract, model_explore, and model_querry.

Definition at line 30 of file final_automat.php.

function do_it data   
 

Action method.

Parameters:
data  - any data needed to act.

Reimplemented in enviroment.

Definition at line 38 of file final_automat.php.

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

Log error.

Parameters:
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
Returns:
zero

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