Class Supervisor

Description

Supervisor class for controlling admins information

Located in /classes/class_supervisor.php (line 13)

Base
   |
   --Supervisor
Direct descendents
Class Description
Teacher Teacher class for teacher-type supervisors
Admin
Variable Summary
mixed $auth
mixed $email
mixed $first_name
mixed $last_name
mixed $password
mixed $type
mixed $username
Method Summary
Supervisor __construct ([mixed $username = ""])
void __destruct ()
void authorized ()
void fetch ()
void free ()
void get_email ()
void get_first_name ()
void get_last_name ()
void get_name ()
void get_password ()
void get_type ()
void get_type_fin ()
void get_username ()
void set_all (array $arr)
void set_auth (mixed $bool)
void set_username (mixed $username)
void update_to_db ()
void writeout_info ()
Variables
mixed $auth (line 21)
  • access: protected
mixed $authentication (line 22)
  • access: protected
mixed $email (line 19)
  • access: protected
mixed $first_name (line 17)
  • access: protected
mixed $last_name (line 18)
  • access: protected
mixed $password (line 16)
  • access: protected
mixed $type (line 20)
  • access: protected
mixed $username (line 15)
  • access: protected
Methods
Constructor __construct (line 27)

Initializes attributes

  • access: public
Supervisor __construct ([mixed $username = ""])

Redefined in descendants as:
Destructor __destruct (line 41)
  • access: public
void __destruct ()
authorized (line 122)

Tells is user authorized

  • access: public
void authorized ()
fetch (line 217)

Get own data from database by username.

  • access: protected
void fetch ()
free (line 203)

Deletes its self from database

  • access: public
void free ()
get_email (line 109)
  • access: public
void get_email ()
get_first_name (line 113)
  • access: public
void get_first_name ()
get_last_name (line 116)
  • access: public
void get_last_name ()
get_name (line 94)
  • access: public
void get_name ()
get_password (line 101)
  • access: public
void get_password ()
get_type (line 105)
  • access: public
void get_type ()
get_type_fin (line 89)

Returns user-type finnish (if it's a teacher, returns 'Opettaja')

  • access: protected
void get_type_fin ()
get_username (line 98)
  • access: public
void get_username ()
insert_new_to_db (line 147)

Inserts new admin to database

  • access: public
void insert_new_to_db ()
set_all (line 191)

Sets admins data from param given array

  • access: public
void set_all (array $arr)
  • array $arr: Admin data
set_auth (line 126)
  • access: protected
void set_auth (mixed $bool)
set_username (line 131)
  • access: public
void set_username (mixed $username)

Redefined in descendants as:
update_to_db (line 169)

Updates admin data to database

  • access: public
void update_to_db ()
writeout_info (line 139)

Prints user info

  • access: public
void writeout_info ()

Inherited Methods

Inherited From Base

Base::make_query()

Documentation generated on Mon, 16 May 2005 16:11:52 +0300 by phpDocumentor 1.3.0RC3