admin Class Reference

List of all members.

Public Member Functions

 __construct ()
 __destruct ()
 showUserTableTitle ()
 showUserTable ()
 showEditUserTitle ()
 showEditUser ()
 editUser ()
 deleteUser ($sUserID)
 deleteUsers ($pUserIDs)
 resetDB ($pUserIDs)


Detailed Description

Offers functionality for admin.php.

Author:
Stephan Schuetz, stephan.schuetz(at)fhnw.ch
Date:
14.10.2007
Version:
1.0
(c) Copyright GITTA 2007. Creative Commons License "Attribution-Noncommercial-Share Alike" http://creativecommons.org/licenses/by-nc-sa/3.0/

Constructor & Destructor Documentation

admin::__construct (  ) 

Constructor

admin::__destruct (  ) 

Destructor


Member Function Documentation

admin::showUserTableTitle (  ) 

Returns the HTML code for the buttons which are needed for user administration.

Returns:
Echo HTML code.

admin::showUserTable (  ) 

Returns the HTML code to show the user information.

Returns:
Echo HTML code.

admin::showEditUserTitle (  ) 

Returns the HTML code for title of the edit user site.

Returns:
Echo HTML code.

admin::showEditUser (  ) 

Returns the HTML code for the edit user form.

Returns:
Echo HTML code.

admin::editUser (  ) 

Changes the user information.

Returns:
True on success, otherwise false.

admin::deleteUser ( sUserID  ) 

Deletes the specified user.

Parameters:
$sUserID ID (not e-mail) of the user to delete.
Returns:
True on success, otherwise false.

admin::deleteUsers ( pUserIDs  ) 

Deletes the specified users.

Parameters:
$pUserIDs Array with IDs (not e-mail) of the users to delete.
Returns:
True on success, otherwise false.

admin::resetDB ( pUserIDs  ) 

Resets the database of the specified users.

Parameters:
$pUserIDs Array of the IDs of the users of those the database has to be reset.
Returns:
True on success, otherwise false.


The documentation for this class was generated from the following file:
Generated on Sun Dec 2 19:47:27 2007 for elSQL - e-learn SQL by  doxygen 1.5.3