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

ranks Class Reference

Users ranks. More...

Inherits xml_event_parser_user.

Inheritance diagram for ranks:

Inheritance graph
List of all members.

Public Methods

function get_rank_names ()
 List defined ranks.

function get_rank (rank_name)
 Return specific rank.

function is_action_allowed (rank_name, action)
 Check if action is allowed for rank.

function import (fname)
 Import data.

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


Public Attributes

var xml_parser
 xml parser.

var iname = ''
 Name of imported file.


Detailed Description

Users ranks.

This class represents users ranks database.

Definition at line 10 of file ranks.php.


Member Function Documentation

function get_rank_names  
 

List defined ranks.

Returns:
array with ranks names

Definition at line 19 of file ranks.php.

function get_rank rank_name   
 

Return specific rank.

Parameters:
string  rank_name - rank to return
Returns:
list of users names in rank

Definition at line 32 of file ranks.php.

Referenced by is_action_allowed().

function is_action_allowed rank_name   ,
action   
 

Check if action is allowed for rank.

Parameters:
string  rank_name - name of rank to check
string  action - action ad to check
Returns:
1 if action is allowed

Definition at line 44 of file ranks.php.

function import fname    [inherited]
 

Import data.

Parameters:
string  fname - name of xml file to import

Definition at line 22 of file xml_event_parser_user.php.

Referenced by enviroment::choose_model(), and enviroment::run().

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:19 2003 for SES by doxygen1.2.16