ILIAS
release_4-3 Revision
|
Database Update class. More...
Public Member Functions | |
ilDBUpdate ($a_db_handler=0, $tmp_flag=false) | |
constructor | |
getFileForStep ($a_version) | |
Get db update file name for db step. | |
initStep ($i) | |
Init Step. | |
_DBUpdate () | |
destructor | |
readDBUpdateFile () | |
readLastUpdateFile () | |
getCurrentVersion () | |
setCurrentVersion ($a_version) | |
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 | |
checkQuery ($q) | |
check query | |
applyUpdate ($a_break=0) | |
Apply update. | |
loadXMLInfo () | |
applyUpdateNr ($nr, $hotfix=false, $custom_update=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. | |
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) | |
getHotfixSteps () | |
Get hotfix steps. | |
getUpdateStepNr ($nr, $hotfix=false, $custom_update=false) | |
Get single update step for presentation. |
Data Fields | |
$DB_UPDATE_FILE | |
db update file | |
$currentVersion | |
$fileVersion |
ilDBUpdate::_DBUpdate | ( | ) |
destructor
Reimplemented in ilPluginDBUpdate.
Definition at line 111 of file class.ilDBUpdate.php.
ilDBUpdate::applyCustomUpdates | ( | ) |
Definition at line 779 of file class.ilDBUpdate.php.
References $GLOBALS, $ilCtrlStructureReader, applyUpdateNr(), getCustomUpdatesCurrentVersion(), getCustomUpdatesFileVersion(), loadXMLInfo(), and readCustomUpdatesInfo().
ilDBUpdate::applyHotfix | ( | ) |
Apply hotfix.
Definition at line 660 of file class.ilDBUpdate.php.
References $GLOBALS, $ilCtrlStructureReader, applyUpdateNr(), getHotfixCurrentVersion(), getHotfixFileVersion(), loadXMLInfo(), and readHotfixInfo().
ilDBUpdate::applyUpdate | ( | $a_break = 0 | ) |
Apply update.
Definition at line 285 of file class.ilDBUpdate.php.
References $currentVersion, $fileVersion, $GLOBALS, $ilCtrlStructureReader, applyUpdateNr(), getFileForStep(), initStep(), loadXMLInfo(), and readDBUpdateFile().
ilDBUpdate::applyUpdateNr | ( | $nr, | |
$hotfix = false , |
|||
$custom_update = false |
|||
) |
apply an update
int | nr number what patch to apply |
Definition at line 395 of file class.ilDBUpdate.php.
References $ilCtrlStructureReader, $ilErr, $ilUser, $row, clearRunningStatus(), execQuery(), setCurrentVersion(), setCustomUpdatesCurrentVersion(), setHotfixCurrentVersion(), and setRunningStatus().
Referenced by applyCustomUpdates(), applyHotfix(), and applyUpdate().
ilDBUpdate::checkQuery | ( | $q | ) |
check query
Reimplemented in ilPluginDBUpdate.
Definition at line 277 of file class.ilDBUpdate.php.
Referenced by execQuery().
ilDBUpdate::clearRunningStatus | ( | ) |
Clear running status.
Definition at line 191 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
ilDBUpdate::customUpdatesAvailable | ( | ) |
Definition at line 766 of file class.ilDBUpdate.php.
References readCustomUpdatesInfo().
ilDBUpdate::execQuery | ( | $db, | |
$str | |||
) |
execute a query
object | DB |
string | query |
Definition at line 230 of file class.ilDBUpdate.php.
References checkQuery(), and MDB2\isError().
Referenced by applyUpdateNr().
ilDBUpdate::getCurrentVersion | ( | ) |
Reimplemented in ilPluginDBUpdate.
Definition at line 142 of file class.ilDBUpdate.php.
References $currentVersion, and $GLOBALS.
Referenced by ilDBUpdate().
ilDBUpdate::getCustomUpdatesCurrentVersion | ( | ) |
Definition at line 711 of file class.ilDBUpdate.php.
References readCustomUpdatesInfo().
Referenced by applyCustomUpdates().
ilDBUpdate::getCustomUpdatesFileVersion | ( | ) |
Definition at line 725 of file class.ilDBUpdate.php.
References readCustomUpdatesInfo().
Referenced by applyCustomUpdates().
ilDBUpdate::getDBVersionStatus | ( | ) |
Definition at line 515 of file class.ilDBUpdate.php.
ilDBUpdate::getFileForStep | ( | $a_version | ) |
Get db update file name for db step.
Reimplemented in ilPluginDBUpdate.
Definition at line 79 of file class.ilDBUpdate.php.
Referenced by applyUpdate(), getUpdateSteps(), and ilDBUpdate().
ilDBUpdate::getFileVersion | ( | ) |
ilDBUpdate::getHotfixCurrentVersion | ( | ) |
Get current hotfix version.
Definition at line 571 of file class.ilDBUpdate.php.
References readHotfixInfo().
Referenced by applyHotfix(), and getHotfixSteps().
ilDBUpdate::getHotfixFileVersion | ( | ) |
Get current hotfix version.
Definition at line 592 of file class.ilDBUpdate.php.
References readHotfixInfo().
Referenced by applyHotfix(), and getHotfixSteps().
ilDBUpdate::getHotfixSteps | ( | ) |
Get hotfix steps.
Definition at line 874 of file class.ilDBUpdate.php.
References getHotfixCurrentVersion(), getHotfixFileVersion(), getUpdateStepNr(), and readHotfixInfo().
ilDBUpdate::getRunningStatus | ( | ) |
Get running status.
Definition at line 179 of file class.ilDBUpdate.php.
ilDBUpdate::getTables | ( | ) |
Definition at line 523 of file class.ilDBUpdate.php.
References $query, $res, $row, and getTableStatus().
ilDBUpdate::getTableStatus | ( | $table | ) |
Definition at line 541 of file class.ilDBUpdate.php.
References $query, $res, $row, and DB_FETCHMODE_ASSOC.
Referenced by getTables().
ilDBUpdate::getUpdateStepNr | ( | $nr, | |
$hotfix = false , |
|||
$custom_update = false |
|||
) |
Get single update step for presentation.
Definition at line 901 of file class.ilDBUpdate.php.
References $ilCtrlStructureReader, $ilErr, and $ilUser.
Referenced by getHotfixSteps(), and getUpdateSteps().
ilDBUpdate::getUpdateSteps | ( | $a_break = 0 | ) |
Get update steps as string (for presentation)
Definition at line 835 of file class.ilDBUpdate.php.
References $currentVersion, $fileVersion, $ilCtrlStructureReader, getFileForStep(), getUpdateStepNr(), and readDBUpdateFile().
ilDBUpdate::hotfixAvailable | ( | ) |
Get status of hotfix file.
Definition at line 647 of file class.ilDBUpdate.php.
References readHotfixInfo().
ilDBUpdate::ilDBUpdate | ( | $a_db_handler = 0 , |
|
$tmp_flag = false |
|||
) |
constructor
Definition at line 34 of file class.ilDBUpdate.php.
References getCurrentVersion(), getFileForStep(), readDBUpdateFile(), readFileVersion(), and readLastUpdateFile().
ilDBUpdate::initStep | ( | $i | ) |
Init Step.
Definition at line 101 of file class.ilDBUpdate.php.
Referenced by applyUpdate().
ilDBUpdate::loadXMLInfo | ( | ) |
Reimplemented in ilPluginDBUpdate.
Definition at line 352 of file class.ilDBUpdate.php.
References $ilCtrlStructureReader, ilModuleReader\clearTables(), ilServiceReader\clearTables(), ilModule\getAvailableCoreModules(), ilService\getAvailableCoreServices(), and ILIAS_ABSOLUTE_PATH.
Referenced by applyCustomUpdates(), applyHotfix(), and applyUpdate().
ilDBUpdate::optimizeTables | ( | $tables | ) |
ilDBUpdate::readCustomUpdatesFileVersion | ( | $a_file_content | ) |
Definition at line 731 of file class.ilDBUpdate.php.
References $row.
Referenced by readCustomUpdatesInfo().
ilDBUpdate::readCustomUpdatesInfo | ( | $a_force = false | ) |
Definition at line 747 of file class.ilDBUpdate.php.
References $GLOBALS, and readCustomUpdatesFileVersion().
Referenced by applyCustomUpdates(), customUpdatesAvailable(), getCustomUpdatesCurrentVersion(), getCustomUpdatesFileVersion(), and setCustomUpdatesCurrentVersion().
ilDBUpdate::readDBUpdateFile | ( | ) |
Definition at line 116 of file class.ilDBUpdate.php.
Referenced by applyUpdate(), getUpdateSteps(), ilDBUpdate(), and ilPluginDBUpdate\ilPluginDBUpdate().
ilDBUpdate::readFileVersion | ( | ) |
Definition at line 199 of file class.ilDBUpdate.php.
References $fileVersion, and $row.
Referenced by ilDBUpdate(), and ilPluginDBUpdate\ilPluginDBUpdate().
ilDBUpdate::readHotfixFileVersion | ( | $a_file_content | ) |
Set current hotfix version.
Definition at line 601 of file class.ilDBUpdate.php.
References $row.
Referenced by readHotfixInfo().
ilDBUpdate::readHotfixInfo | ( | $a_force = false | ) |
Get status of hotfix file.
Definition at line 620 of file class.ilDBUpdate.php.
References $GLOBALS, ILIAS_VERSION_NUMERIC, and readHotfixFileVersion().
Referenced by applyHotfix(), getHotfixCurrentVersion(), getHotfixFileVersion(), getHotfixSteps(), hotfixAvailable(), and setHotfixCurrentVersion().
ilDBUpdate::readLastUpdateFile | ( | ) |
Definition at line 129 of file class.ilDBUpdate.php.
Referenced by ilDBUpdate(), and ilPluginDBUpdate\ilPluginDBUpdate().
ilDBUpdate::setCurrentVersion | ( | $a_version | ) |
Reimplemented in ilPluginDBUpdate.
Definition at line 151 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
ilDBUpdate::setCustomUpdatesCurrentVersion | ( | $a_version | ) |
Definition at line 717 of file class.ilDBUpdate.php.
References readCustomUpdatesInfo().
Referenced by applyUpdateNr().
ilDBUpdate::setHotfixCurrentVersion | ( | $a_version | ) |
Set current hotfix version.
Definition at line 580 of file class.ilDBUpdate.php.
References readHotfixInfo().
Referenced by applyUpdateNr().
ilDBUpdate::setRunningStatus | ( | $a_nr | ) |
Set running status for a step.
int | step number |
Definition at line 166 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
ilDBUpdate::$currentVersion |
Definition at line 23 of file class.ilDBUpdate.php.
Referenced by applyUpdate(), ilPluginDBUpdate\getCurrentVersion(), getCurrentVersion(), and getUpdateSteps().
ilDBUpdate::$DB_UPDATE_FILE |
db update file
Definition at line 17 of file class.ilDBUpdate.php.
ilDBUpdate::$fileVersion |
Definition at line 29 of file class.ilDBUpdate.php.
Referenced by applyUpdate(), getFileVersion(), getUpdateSteps(), and readFileVersion().