VersionList Class Reference

Class which builds HTML list of operating system versions. More...

List of all members.

Public Member Functions

 VersionList ($osId)
 Class constructor.
 fillWithDatabase ()
 Fill in the list using the database.
 databaseItemExists ($versionId, $versionname)
 Check if a version exists.
 databaseInsertItem ($name)
 Insert a new version.
 databaseUpdateItem ($versionId, $newName)
 Update an existing version.
 databaseDeleteItemsExcluding ($idArray)
 Delete an existing version.
 setOsId ($osId)
 Set the osID This will set the operating system id.

Public Attributes

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

Private Attributes

 $osId
 The operating system id of which we create this version list.


Detailed Description

Class which builds HTML list of operating system versions.

This class can generate a dynamic list of operating system versions in an HTML form.

See also:
DynamicList

OS


Member Function Documentation

VersionList::VersionList ( osId  ) 

Class constructor.

The class constructor.

See also:
DynamicList

VersionList::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

VersionList::databaseItemExists ( versionId,
versionname 
)

Check if a version exists.

This function returns boolean true if a version exists.

Parameters:
versionId The version ID to search for.
versionname The versionname to search for.
Returns:
Boolean true if the version exists.

VersionList::databaseInsertItem ( name  ) 

Insert a new version.

This function will insert a new version in the database.

VersionList::databaseUpdateItem ( versionId,
newName 
)

Update an existing version.

This function will update an existing version in the database.

Parameters:
versionId The versionId of the version.
newName The new name of the version.

VersionList::databaseDeleteItemsExcluding ( idArray  ) 

Delete an existing version.

This function is responsible for removing a version from the database.

Parameters:
name The name of the version.

VersionList::setOsId ( osId  ) 

Set the osID This will set the operating system id.

Parameters:
osId The operating system id.


Member Data Documentation

VersionList::$osId [private]

The operating system id of which we create this version list.

VersionList::$emptyListMessage = "There are no versions to display."

The empty list message.

VersionList::$alreadyExistsMessage = "Sorry, that version already exists. Please choose a different versionname."

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