STAG - documentation
[ class tree: STAG - documentation ] [ index: STAG - documentation ] [ all elements ]

Class: CAdmin

Source Location: /classes/cadmin.php

Class Overview

CStudent
   |
   --CTeacher
      |
      --CAdmin

File which include class for administrator functions


Methods


Inherited Methods

Class: CTeacher

CTeacher::__construct()
Do nothing
CTeacher::credit_add()
add time for credit, curent teacher and him subject
CTeacher::exam_add()
add time for exam, curent teacher and him subject
CTeacher::showStudents()
generate array of all users in database
CTeacher::students_show()
show students
CTeacher::users_add()
create a user in DB

Class: CStudent

CStudent::__construct()
Do nothing
CStudent::edit_user()
edit details about user
CStudent::users_add()
create a user in DB

Class Details

[line 7]
File which include class for administrator functions



[ Top ]


Class Methods


constructor __construct [line 14]

CAdmin __construct( )

Do nothing



Overrides CTeacher::__construct() (Do nothing)

[ Top ]

method edit_user [line 59]

void edit_user( int $id, string $username, string[32] $password, string $firstname, string $lastname, string $email, byte $policy)

edit details about user



Tags:

access:  public


Overrides CStudent::edit_user() (edit details about user)

Parameters:

int   $id   autoincremented integer in database (unique int of DB table)
string   $username   is nickname of new user
string[32]   $password   32 bytes MD5 hash of password
string   $firstname   is firstname of user
string   $lastname   is lastname of new user
string   $email   is email of new user
byte   $policy   choises:
  • 0 for student
  • 1 for teacher
  • 2 for administrator

[ Top ]

method showUsers [line 120]

array showUsers( )

generate array of all users in database



Tags:

return:  of users in database
access:  public


[ Top ]

method subj_add [line 106]

void subj_add( string $short, string $name, string(30) $leader)

create new subject in dattabase



Tags:

access:  public


Parameters:

string   $short   is "nickname" of subject
string   $name   is name of new Subject
string(30)   $leader   is name of leader this subject

[ Top ]

method users_add [line 30]

void users_add( string $username, string $firstname, string $lastname, string $email, byte $policy)

create a user in DB



Tags:

access:  public


Overrides CTeacher::users_add() (create a user in DB)

Parameters:

string   $username   is nickname of new user
string   $firstname   is firstname of user
string   $lastname   is lastname of new user
string   $email   is email of new user
byte   $policy   choises:
  • 0 for student
  • 1 for teacher
  • 2 for administrator

[ Top ]

method users_mngmnt [line 85]

void users_mngmnt( array $array)

manage users



Tags:

access:  public


Parameters:

array   $array   array of users for print to page create a table from all users in array with choise for generate new password and dismiss anybody from school :)

[ Top ]


Documentation generated on Sat, 24 Jan 2009 19:10:30 +0100 by phpDocumentor 1.4.1