Class Admin_editor

Description

Editor class to add/remove/edit admins and teachers

Located in /mod_admin_editor.php (line 19)

Base
   |
   --Admin_editor
Method Summary
Admin_editor __construct ([mixed $is_teacher = true])
void get_visible ()
void license_to_kill (mixed $admin_id)
void save_admin ([mixed $query_type = "update"])
void select_list_from_table (mixed $table, [mixed $value_is_id = "true"], [mixed $default_id = ""])
void set_visible (mixed $v)
void start ()
void view ()
void writeout (mixed $str)
void writeout_admins ()
Methods
Constructor __construct (line 50)

Intializes all signal-attributes

  • access: public
Admin_editor __construct ([mixed $is_teacher = true])
add_school_form_to_string (line 564)

Function writeout school form to teachers

  • access: public
void add_school_form_to_string ()
get_visible (line 85)
  • access: public
void get_visible ()
license_to_kill (line 634)

Checks if removing have been autorisided

  • access: public
void license_to_kill (mixed $admin_id)
save_admin (line 309)

Function saves admin

  • access: public
void save_admin ([mixed $query_type = "update"])
select_list_from_table (line 609)

Printing the schools to a list where user can pick schools for the teachers

  • access: public
void select_list_from_table (mixed $table, [mixed $value_is_id = "true"], [mixed $default_id = ""])
set_visible (line 81)
  • access: public
void set_visible (mixed $v)
start (line 142)

Handles signals

Handles following superglobal GET variables:
view

Handles following unique superglobal POST variables:

  • add: adding new admin
  • edit: editing an admin that the user has chosen
  • rem: removing an admin
  • cancel: cancels current action
  • insert: Insert admin to database
  • update: editing an admin that the user has chosen
  • add_school: adds school to teacher

  • access: public
void start ()
view (line 269)

Prints current view.

  • access: public
void view ()
writeout (line 339)

Function writeouts sttrings have been given

  • access: public
void writeout (mixed $str)
writeout_admins (line 351)

Function writeouts admins

  • access: public
void writeout_admins ()

Inherited Methods

Inherited From Base

Base::make_query()

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