ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Database Update class. More...
Public Member Functions | |
__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... | |
Data Fields | |
$DB_UPDATE_FILE | |
db update file More... | |
$currentVersion | |
$fileVersion | |
ilDBUpdate::__construct | ( | $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::applyCustomUpdates | ( | ) |
Definition at line 766 of file class.ilDBUpdate.php.
References $GLOBALS, $ilCtrlStructureReader, applyUpdateNr(), array, getCustomUpdatesCurrentVersion(), getCustomUpdatesFileVersion(), loadXMLInfo(), and readCustomUpdatesInfo().
ilDBUpdate::applyHotfix | ( | ) |
Apply hotfix.
Definition at line 647 of file class.ilDBUpdate.php.
References $GLOBALS, $ilCtrlStructureReader, applyUpdateNr(), array, getHotfixCurrentVersion(), getHotfixFileVersion(), loadXMLInfo(), and readHotfixInfo().
ilDBUpdate::applyUpdate | ( | $a_break = 0 | ) |
Apply update.
Definition at line 282 of file class.ilDBUpdate.php.
References $currentVersion, $fileVersion, $GLOBALS, $ilCtrlStructureReader, applyUpdateNr(), array, 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 394 of file class.ilDBUpdate.php.
References $code, $error, $ilCtrlStructureReader, $ilDB, $ilErr, $ilUser, $php, $row, array, clearRunningStatus(), execQuery(), setCurrentVersion(), setCustomUpdatesCurrentVersion(), setHotfixCurrentVersion(), and setRunningStatus().
Referenced by applyCustomUpdates(), applyHotfix(), and applyUpdate().
ilDBUpdate::checkQuery | ( | $q | ) |
check query
Definition at line 274 of file class.ilDBUpdate.php.
Referenced by execQuery().
ilDBUpdate::clearRunningStatus | ( | ) |
Clear running status.
Definition at line 185 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
ilDBUpdate::customUpdatesAvailable | ( | ) |
Definition at line 753 of file class.ilDBUpdate.php.
References readCustomUpdatesInfo().
ilDBUpdate::execQuery | ( | $db, | |
$str | |||
) |
execute a query
object | DB |
string | query |
Definition at line 224 of file class.ilDBUpdate.php.
References $r, checkQuery(), and exit.
Referenced by applyUpdateNr().
ilDBUpdate::getCurrentVersion | ( | ) |
Definition at line 137 of file class.ilDBUpdate.php.
References $currentVersion.
Referenced by __construct().
ilDBUpdate::getCustomUpdatesCurrentVersion | ( | ) |
Definition at line 698 of file class.ilDBUpdate.php.
References readCustomUpdatesInfo().
Referenced by applyCustomUpdates().
ilDBUpdate::getCustomUpdatesFileVersion | ( | ) |
Definition at line 712 of file class.ilDBUpdate.php.
References readCustomUpdatesInfo().
Referenced by applyCustomUpdates().
ilDBUpdate::getDBVersionStatus | ( | ) |
Definition at line 514 of file class.ilDBUpdate.php.
ilDBUpdate::getFileForStep | ( | $a_version | ) |
Get db update file name for db step.
Definition at line 79 of file class.ilDBUpdate.php.
Referenced by __construct(), applyUpdate(), and getUpdateSteps().
ilDBUpdate::getFileVersion | ( | ) |
ilDBUpdate::getHotfixCurrentVersion | ( | ) |
Get current hotfix version.
Definition at line 559 of file class.ilDBUpdate.php.
References readHotfixInfo().
Referenced by applyHotfix(), and getHotfixSteps().
ilDBUpdate::getHotfixFileVersion | ( | ) |
Get current hotfix version.
Definition at line 580 of file class.ilDBUpdate.php.
References readHotfixInfo().
Referenced by applyHotfix(), and getHotfixSteps().
ilDBUpdate::getHotfixSteps | ( | ) |
Get hotfix steps.
Definition at line 861 of file class.ilDBUpdate.php.
References array, getHotfixCurrentVersion(), getHotfixFileVersion(), getUpdateStepNr(), and readHotfixInfo().
ilDBUpdate::getRunningStatus | ( | ) |
Get running status.
Definition at line 173 of file class.ilDBUpdate.php.
ilDBUpdate::getTables | ( | ) |
Definition at line 522 of file class.ilDBUpdate.php.
References $query, $res, $row, array, and getTableStatus().
ilDBUpdate::getTableStatus | ( | $table | ) |
Definition at line 540 of file class.ilDBUpdate.php.
References $query, $res, $row, array, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by getTables().
ilDBUpdate::getUpdateStepNr | ( | $nr, | |
$hotfix = false , |
|||
$custom_update = false |
|||
) |
Get single update step for presentation.
Definition at line 888 of file class.ilDBUpdate.php.
References $ilCtrlStructureReader, $ilDB, $ilErr, $ilUser, and array.
Referenced by getHotfixSteps(), and getUpdateSteps().
ilDBUpdate::getUpdateSteps | ( | $a_break = 0 | ) |
Get update steps as string (for presentation)
Definition at line 822 of file class.ilDBUpdate.php.
References $currentVersion, $fileVersion, $ilCtrlStructureReader, array, getFileForStep(), getUpdateStepNr(), and readDBUpdateFile().
ilDBUpdate::hotfixAvailable | ( | ) |
Get status of hotfix file.
Definition at line 634 of file class.ilDBUpdate.php.
References readHotfixInfo().
ilDBUpdate::initStep | ( | $i | ) |
Init Step.
Definition at line 105 of file class.ilDBUpdate.php.
Referenced by applyUpdate().
ilDBUpdate::loadXMLInfo | ( | ) |
Definition at line 349 of file class.ilDBUpdate.php.
References $ilCtrlStructureReader, ilModule\getAvailableCoreModules(), and ilService\getAvailableCoreServices().
Referenced by applyCustomUpdates(), applyHotfix(), and applyUpdate().
ilDBUpdate::readCustomUpdatesFileVersion | ( | $a_file_content | ) |
Definition at line 718 of file class.ilDBUpdate.php.
References $row, $version, and array.
Referenced by readCustomUpdatesInfo().
ilDBUpdate::readCustomUpdatesInfo | ( | $a_force = false | ) |
Definition at line 734 of file class.ilDBUpdate.php.
References file, and readCustomUpdatesFileVersion().
Referenced by applyCustomUpdates(), customUpdatesAvailable(), getCustomUpdatesCurrentVersion(), getCustomUpdatesFileVersion(), and setCustomUpdatesCurrentVersion().
ilDBUpdate::readDBUpdateFile | ( | ) |
Definition at line 111 of file class.ilDBUpdate.php.
Referenced by ilPluginDBUpdate\__construct(), __construct(), applyUpdate(), and getUpdateSteps().
ilDBUpdate::readFileVersion | ( | ) |
Definition at line 193 of file class.ilDBUpdate.php.
References $fileVersion, $row, $version, and array.
Referenced by ilPluginDBUpdate\__construct(), and __construct().
ilDBUpdate::readHotfixFileVersion | ( | $a_file_content | ) |
Set current hotfix version.
Definition at line 589 of file class.ilDBUpdate.php.
References $row, $version, and array.
Referenced by readHotfixInfo().
ilDBUpdate::readHotfixInfo | ( | $a_force = false | ) |
Get status of hotfix file.
Definition at line 608 of file class.ilDBUpdate.php.
References file, ILIAS_VERSION_NUMERIC, and readHotfixFileVersion().
Referenced by applyHotfix(), getHotfixCurrentVersion(), getHotfixFileVersion(), getHotfixSteps(), hotfixAvailable(), and setHotfixCurrentVersion().
ilDBUpdate::readLastUpdateFile | ( | ) |
Definition at line 124 of file class.ilDBUpdate.php.
Referenced by ilPluginDBUpdate\__construct(), and __construct().
ilDBUpdate::setCurrentVersion | ( | $a_version | ) |
Definition at line 145 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
ilDBUpdate::setCustomUpdatesCurrentVersion | ( | $a_version | ) |
Definition at line 704 of file class.ilDBUpdate.php.
References readCustomUpdatesInfo().
Referenced by applyUpdateNr().
ilDBUpdate::setHotfixCurrentVersion | ( | $a_version | ) |
Set current hotfix version.
Definition at line 568 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 160 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().