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

Class: CTeacher

Source Location: /classes/cteacher.php

Class Overview

CStudent
   |
   --CTeacher

File which include class for administrator functions


Methods


Child classes:

CAdmin
File which include class for administrator functions

Inherited Methods

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 13]

CTeacher __construct( )

Do nothing



Overridden in child classes as:

CAdmin::__construct()
Do nothing

Overrides CStudent::__construct() (Do nothing)

[ Top ]

method credit_add [line 77]

void credit_add( string $lastname, integer $hour, integer $day, integer $month, string $class)

add time for credit, curent teacher and him subject



Tags:

access:  public


Parameters:

string   $lastname   teacher name
integer   $hour   hour of the start credit
integer   $day   day of the start credit
integer   $month   month of the start credit
string   $class   class where credit will be

[ Top ]

method exam_add [line 96]

void exam_add( string $lastname, integer $hour, integer $day, integer $month, string $class)

add time for exam, curent teacher and him subject



Tags:

access:  public


Parameters:

string   $lastname   teacher name
integer   $hour   hour of the start exam
integer   $day   day of the start exam
integer   $month   month of the start exam
string   $class   class where exam will be

[ Top ]

method showStudents [line 62]

array showStudents( )

generate array of all users in database



Tags:

return:  users in database
access:  public


[ Top ]

method students_show [line 49]

void students_show( array $array)

show students



Tags:

access:  public


Parameters:

array   $array   array of users for print to page create a table from all students in class. Array with choise for to write credit and exam print table on screen, rather should be in PTeacher

[ Top ]

method users_add [line 29]

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

create a user in DB



Tags:

access:  public


Overridden in child classes as:

CAdmin::users_add()
create a user in DB

Overrides CStudent::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