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

Class: CStudent

Source Location: /classes/cstudent.php

Class Overview


File which include class for administrator functions


Methods


Child classes:

CTeacher
File which include class for administrator functions

Class Details

[line 7]
File which include class for administrator functions



[ Top ]


Class Methods


constructor __construct [line 13]

CStudent __construct( )

Do nothing



Overridden in child classes as:

CTeacher::__construct()
Do nothing
CAdmin::__construct()
Do nothing

[ Top ]

method edit_user [line 57]

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


Overridden in child classes as:

CAdmin::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 users_add [line 29]

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

create a user in DB



Overridden in child classes as:

CTeacher::users_add()
create a user in DB
CAdmin::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 ]


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