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. |
This class can generate a dynamic list of operating system versions in an HTML form.
VersionList::VersionList | ( | $ | osId | ) |
VersionList::fillWithDatabase | ( | ) |
Fill in the list using the database.
This function is responsible for filling in the list using data from the database.
VersionList::databaseItemExists | ( | $ | versionId, | |
$ | versionname | |||
) |
Check if a version exists.
This function returns boolean true if a version exists.
versionId | The version ID to search for. | |
versionname | The versionname to search for. |
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.
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.
name | The name of the version. |
VersionList::setOsId | ( | $ | osId | ) |
Set the osID This will set the operating system id.
osId | The operating system id. |
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.