ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Database Update class. More...
Public Member Functions | |
__construct ( $a_ctype, $a_cname, $a_slot_id, $a_pname, $a_db_handler, $tmp_flag, $a_db_prefix) | |
constructor More... | |
getFileForStep ($a_version) | |
Get db update file name for db step. More... | |
_DBUpdate () | |
destructor More... | |
getCurrentVersion () | |
Get current DB version. More... | |
setCurrentVersion ($a_version) | |
Set current DB version. More... | |
loadXMLInfo () | |
checkQuery ($q) | |
This is a very simple check. More... | |
Public Member Functions inherited from ilDBUpdate | |
__construct ($a_db_handler=0, $tmp_flag=false) | |
constructor More... | |
getFileForStep ($a_version) | |
Get db update file name for db step. More... | |
initStep ($i) | |
Init Step. More... | |
readDBUpdateFile () | |
readLastUpdateFile () | |
getCurrentVersion () | |
setCurrentVersion ($a_version) | |
setRunningStatus ($a_nr) | |
Set running status for a step. More... | |
getRunningStatus () | |
Get running status. More... | |
clearRunningStatus () | |
Clear running status. More... | |
readFileVersion () | |
getFileVersion () | |
Get Version of file. More... | |
execQuery ($db, $str) | |
execute a query More... | |
checkQuery ($q) | |
check query More... | |
applyUpdate ($a_break=0) | |
Apply update. More... | |
loadXMLInfo () | |
applyUpdateNr ($nr, $hotfix=false, $custom_update=false) | |
apply an update More... | |
getDBVersionStatus () | |
getTables () | |
getTableStatus ($table) | |
getHotfixCurrentVersion () | |
Get current hotfix version. More... | |
setHotfixCurrentVersion ($a_version) | |
Set current hotfix version. More... | |
getHotfixFileVersion () | |
Get current hotfix version. More... | |
readHotfixFileVersion ($a_file_content) | |
Set current hotfix version. More... | |
readHotfixInfo ($a_force=false) | |
Get status of hotfix file. More... | |
hotfixAvailable () | |
Get status of hotfix file. More... | |
applyHotfix () | |
Apply hotfix. More... | |
getCustomUpdatesCurrentVersion () | |
setCustomUpdatesCurrentVersion ($a_version) | |
getCustomUpdatesFileVersion () | |
readCustomUpdatesFileVersion ($a_file_content) | |
readCustomUpdatesInfo ($a_force=false) | |
customUpdatesAvailable () | |
applyCustomUpdates () | |
getUpdateSteps ($a_break=0) | |
Get update steps as string (for presentation) More... | |
getHotfixSteps () | |
Get hotfix steps. More... | |
getUpdateStepNr ($nr, $hotfix=false, $custom_update=false) | |
Get single update step for presentation. More... | |
Additional Inherited Members | |
Data Fields inherited from ilDBUpdate | |
$DB_UPDATE_FILE | |
db update file More... | |
$currentVersion | |
$fileVersion | |
Database Update class.
Definition at line 12 of file class.ilPluginDBUpdate.php.
ilPluginDBUpdate::__construct | ( | $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(), PATH, ilDBUpdate\readDBUpdateFile(), ilDBUpdate\readFileVersion(), and ilDBUpdate\readLastUpdateFile().
ilPluginDBUpdate::_DBUpdate | ( | ) |
ilPluginDBUpdate::checkQuery | ( | $q | ) |
This is a very simple check.
Could be done better.
Definition at line 146 of file class.ilPluginDBUpdate.php.
ilPluginDBUpdate::getCurrentVersion | ( | ) |
Get current DB version.
Definition at line 107 of file class.ilPluginDBUpdate.php.
References ilDBUpdate\$currentVersion.
Referenced by __construct().
ilPluginDBUpdate::getFileForStep | ( | $a_version | ) |
Get db update file name for db step.
Definition at line 88 of file class.ilPluginDBUpdate.php.
Referenced by __construct().
ilPluginDBUpdate::loadXMLInfo | ( | ) |
Definition at line 137 of file class.ilPluginDBUpdate.php.
ilPluginDBUpdate::setCurrentVersion | ( | $a_version | ) |