Class Group

Description

Group contains students

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

Base
   |
   --Group
Method Summary
Group __construct ([mixed $group_id = ""])
void __destruct ()
void fetch ()
void free ()
void get_id ()
void get_name ()
void get_students ()
void has_student (mixed $student_id)
void insert (mixed $school_id)
void remove_student (mixed $student_id)
void scount ()
void set_id (mixed $id)
void set_name (mixed $name)
void update ()
Methods
Constructor __construct (line 25)

Initializes attributes

  • access: public
Group __construct ([mixed $group_id = ""])
Destructor __destruct (line 31)
  • access: public
void __destruct ()
fetch (line 65)

Get own data from database by id-nbr.

  • access: public
void fetch ()
free (line 114)

Deletes this object from database

  • access: public
void free ()
get_id (line 36)
  • access: public
void get_id ()
get_name (line 52)
  • access: public
void get_name ()
get_students (line 138)

Returns array of student-objects

  • access: public
void get_students ()
has_student (line 128)

Checks if this object has a student with param given id?

  • access: public
void has_student (mixed $student_id)
insert (line 92)

Inserts this group to database

  • access: public
void insert (mixed $school_id)
remove_student (line 100)

Deletes student from database

  • access: public
void remove_student (mixed $student_id)
scount (line 149)

Returns count of students in this group

  • access: public
void scount ()
set_id (line 44)

When id is set fetch will be executed

  • access: public
void set_id (mixed $id)
set_name (line 56)
  • access: public
void set_name (mixed $name)
update (line 84)

Updates this objects data to database

  • access: public
void update ()

Inherited Methods

Inherited From Base

Base::make_query()

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