ILIAS
Release_4_1_x_branch Revision 61804
|
Database Update class. More...
Public Member Functions | |
ilPluginDBUpdate ($a_ctype, $a_cname, $a_slot_id, $a_pname, $a_db_handler, $tmp_flag, $a_db_prefix) | |
constructor | |
getFileForStep ($a_version) | |
Get db update file name for db step. | |
_DBUpdate () | |
destructor | |
getCurrentVersion () | |
Get current DB version. | |
setCurrentVersion ($a_version) | |
Set current DB version. | |
loadXMLInfo () | |
checkQuery ($q) | |
This is a very simple check. | |
Public Member Functions inherited from ilDBUpdate | |
ilDBUpdate ($a_db_handler=0, $tmp_flag=false) | |
constructor | |
initStep ($i) | |
Init Step. | |
readDBUpdateFile () | |
readLastUpdateFile () | |
setRunningStatus ($a_nr) | |
Set running status for a step. | |
getRunningStatus () | |
Get running status. | |
clearRunningStatus () | |
Clear running status. | |
readFileVersion () | |
getFileVersion () | |
Get Version of file. | |
execQuery ($db, $str) | |
execute a query | |
applyUpdate ($a_break=0) | |
Apply update. | |
applyUpdateNr ($nr, $hotfix=false) | |
apply an update | |
getDBVersionStatus () | |
getTables () | |
getTableStatus ($table) | |
optimizeTables ($tables) | |
getHotfixCurrentVersion () | |
Get current hotfix version. | |
setHotfixCurrentVersion ($a_version) | |
Set current hotfix version. | |
getHotfixFileVersion () | |
Get current hotfix version. | |
readHotfixFileVersion ($a_file_content) | |
Set current hotfix version. | |
readHotfixInfo ($a_force=false) | |
Get status of hotfix file. | |
hotfixAvailable () | |
Get status of hotfix file. | |
applyHotfix () | |
Apply hotfix. |
Additional Inherited Members | |
Data Fields inherited from ilDBUpdate | |
$DB_UPDATE_FILE | |
db update file | |
$currentVersion | |
$fileVersion |
Database Update class.
Definition at line 12 of file class.ilPluginDBUpdate.php.
ilPluginDBUpdate::_DBUpdate | ( | ) |
destructor
Reimplemented from ilDBUpdate.
Definition at line 87 of file class.ilPluginDBUpdate.php.
ilPluginDBUpdate::checkQuery | ( | $q | ) |
This is a very simple check.
Could be done better.
Reimplemented from ilDBUpdate.
Definition at line 135 of file class.ilPluginDBUpdate.php.
ilPluginDBUpdate::getCurrentVersion | ( | ) |
Get current DB version.
Reimplemented from ilDBUpdate.
Definition at line 96 of file class.ilPluginDBUpdate.php.
References ilDBUpdate\$currentVersion.
Referenced by ilPluginDBUpdate().
ilPluginDBUpdate::getFileForStep | ( | $a_version | ) |
Get db update file name for db step.
Reimplemented from ilDBUpdate.
Definition at line 77 of file class.ilPluginDBUpdate.php.
Referenced by ilPluginDBUpdate().
ilPluginDBUpdate::ilPluginDBUpdate | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_pname, | |||
$a_db_handler, | |||
$tmp_flag, | |||
$a_db_prefix | |||
) |
constructor
Definition at line 17 of file class.ilPluginDBUpdate.php.
References getCurrentVersion(), ilPlugin\getDBUpdateScriptName(), getFileForStep(), ilPluginSlot\lookupSlotName(), ilDBUpdate\readDBUpdateFile(), ilDBUpdate\readFileVersion(), and ilDBUpdate\readLastUpdateFile().
ilPluginDBUpdate::loadXMLInfo | ( | ) |
Reimplemented from ilDBUpdate.
Definition at line 126 of file class.ilPluginDBUpdate.php.
ilPluginDBUpdate::setCurrentVersion | ( | $a_version | ) |
Set current DB version.
Reimplemented from ilDBUpdate.
Definition at line 114 of file class.ilPluginDBUpdate.php.