SpecialList Class Reference

Class which builds HTML speciallists. More...

List of all members.

Public Member Functions

 SpecialList ()
 Class constructor.
 fillWithDatabase ()
 Fill in the list using the database.
 databaseItemExists ($specialId, $name)
 Check if a speciality exists.
 databaseInsertItem ($name)
 Insert a new speciality.
 databaseUpdateItem ($specialId, $newName)
 Update an existing speciality.
 databaseDeleteItemsExcluding ($idArray)
 Delete an existing speciality.

Public Attributes

 $emptyListMessage = "There are no specialities to display."
 The empty list message.
 $alreadyExistsMessage = "Sorry, that speciality already exists. Please choose a different name."
 The already existing message.


Detailed Description

Class which builds HTML speciallists.

This class can generate dynamic speciallists in an HTML form.

See also:
DynamicList


Member Function Documentation

SpecialList::SpecialList (  ) 

Class constructor.

The class constructor.

See also:
DynamicList

SpecialList::fillWithDatabase (  ) 

Fill in the list using the database.

This function is responsible for filling in the list using data from the database.

Returns:
boolean indicating success or failure.
See also:
Database

SpecialList::databaseItemExists ( specialId,
name 
)

Check if a speciality exists.

This function returns boolean true if a speciality exists.

Parameters:
specialId The speciality ID to search for.
name The name of the speciality to search for.
Returns:
Boolean true if the speciality exists.

SpecialList::databaseInsertItem ( name  ) 

Insert a new speciality.

This function will insert a new speciality in the database.

SpecialList::databaseUpdateItem ( specialId,
newName 
)

Update an existing speciality.

This function will update an existing speciality in the database.

Parameters:
specialId The specialId of the speciality.
newName The new name of the speciality.

SpecialList::databaseDeleteItemsExcluding ( idArray  ) 

Delete an existing speciality.

This function is responsible for removing an speciality from the database.

Parameters:
name The name of the speciality.


Member Data Documentation

SpecialList::$emptyListMessage = "There are no specialities to display."

The empty list message.

SpecialList::$alreadyExistsMessage = "Sorry, that speciality already exists. Please choose a different name."

The already existing message.


The documentation for this class was generated from the following file:
Generated on Sun Oct 21 06:49:25 2007 for phpSystemManager by  doxygen 1.5.2