ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Database Update class. More...
Public Member Functions | |
__construct ($a_db_handler=0, $client_ini=null) | |
ilDBUpdate constructor. More... | |
getFileForStep ($a_version) | |
Get db update file name for db step. More... | |
initStep ($i) | |
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 | |
$updateMsg | |
Private Member Functions | |
initGlobalsRequiredForUpdateSteps (&$ilCtrlStructureReader, &$ilMySQLAbstraction, &$ilDB) | |
ilDBUpdate::__construct | ( | $a_db_handler = 0 , |
|
$client_ini = null |
|||
) |
ilDBUpdate constructor.
ilDBInterface | $a_db_handler | |
bool | $tmp_flag |
Definition at line 43 of file class.ilDBUpdate.php.
References $DIC, getCurrentVersion(), getFileForStep(), PATH, readDBUpdateFile(), readFileVersion(), and readLastUpdateFile().
ilDBUpdate::applyCustomUpdates | ( | ) |
Definition at line 812 of file class.ilDBUpdate.php.
References $c, $f, $GLOBALS, $i, $ilCtrlStructureReader, $ilDB, applyUpdateNr(), getCustomUpdatesCurrentVersion(), getCustomUpdatesFileVersion(), initGlobalsRequiredForUpdateSteps(), loadXMLInfo(), and readCustomUpdatesInfo().
Referenced by ilSetupGUI\applyCustomUpdates().
ilDBUpdate::applyHotfix | ( | ) |
Apply hotfix.
Definition at line 694 of file class.ilDBUpdate.php.
References $c, $f, $GLOBALS, $i, $ilCtrlStructureReader, $ilDB, applyUpdateNr(), getHotfixCurrentVersion(), getHotfixFileVersion(), initGlobalsRequiredForUpdateSteps(), loadXMLInfo(), and readHotfixInfo().
Referenced by ilSetupGUI\applyHotfix().
ilDBUpdate::applyUpdate | ( | $a_break = 0 | ) |
Apply update.
Definition at line 340 of file class.ilDBUpdate.php.
References $c, $currentVersion, $f, $fileVersion, $i, $ilCtrlStructureReader, $ilDB, applyUpdateNr(), getFileForStep(), initGlobalsRequiredForUpdateSteps(), initStep(), loadXMLInfo(), PATH, and readDBUpdateFile().
Referenced by ilSetupGUI\updateDatabase().
ilDBUpdate::applyUpdateNr | ( | $nr, | |
$hotfix = false , |
|||
$custom_update = false |
|||
) |
apply an update
int | nr number what patch to apply |
Definition at line 449 of file class.ilDBUpdate.php.
References $code, $i, $ilCtrlStructureReader, $ilDB, $row, clearRunningStatus(), execQuery(), initGlobalsRequiredForUpdateSteps(), setCurrentVersion(), setCustomUpdatesCurrentVersion(), setHotfixCurrentVersion(), and setRunningStatus().
Referenced by applyCustomUpdates(), applyHotfix(), and applyUpdate().
ilDBUpdate::checkQuery | ( | $q | ) |
check query
Definition at line 292 of file class.ilDBUpdate.php.
Referenced by execQuery().
ilDBUpdate::clearRunningStatus | ( | ) |
Clear running status.
Definition at line 203 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
ilDBUpdate::customUpdatesAvailable | ( | ) |
Definition at line 798 of file class.ilDBUpdate.php.
References readCustomUpdatesInfo().
ilDBUpdate::execQuery | ( | $db, | |
$str | |||
) |
execute a query
object | DB |
string | query |
Definition at line 246 of file class.ilDBUpdate.php.
References $i, $r, checkQuery(), and exit.
Referenced by applyUpdateNr().
ilDBUpdate::getCurrentVersion | ( | ) |
Definition at line 145 of file class.ilDBUpdate.php.
References $currentVersion.
Referenced by __construct().
ilDBUpdate::getCustomUpdatesCurrentVersion | ( | ) |
Definition at line 739 of file class.ilDBUpdate.php.
References readCustomUpdatesInfo().
Referenced by applyCustomUpdates().
ilDBUpdate::getCustomUpdatesFileVersion | ( | ) |
Definition at line 757 of file class.ilDBUpdate.php.
References readCustomUpdatesInfo().
Referenced by applyCustomUpdates().
ilDBUpdate::getDBVersionStatus | ( | ) |
Definition at line 552 of file class.ilDBUpdate.php.
ilDBUpdate::getFileForStep | ( | $a_version | ) |
Get db update file name for db step.
int | $a_version |
Definition at line 85 of file class.ilDBUpdate.php.
Referenced by __construct(), applyUpdate(), and getUpdateSteps().
ilDBUpdate::getFileVersion | ( | ) |
ilDBUpdate::getHotfixCurrentVersion | ( | ) |
Get current hotfix version.
Definition at line 598 of file class.ilDBUpdate.php.
References readHotfixInfo().
Referenced by applyHotfix(), and getHotfixSteps().
ilDBUpdate::getHotfixFileVersion | ( | ) |
Get current hotfix version.
Definition at line 625 of file class.ilDBUpdate.php.
References readHotfixInfo().
Referenced by applyHotfix(), and getHotfixSteps().
ilDBUpdate::getHotfixSteps | ( | ) |
Get hotfix steps.
Definition at line 900 of file class.ilDBUpdate.php.
References $c, $f, $i, getHotfixCurrentVersion(), getHotfixFileVersion(), getUpdateStepNr(), and readHotfixInfo().
ilDBUpdate::getRunningStatus | ( | ) |
Get running status.
Definition at line 190 of file class.ilDBUpdate.php.
ilDBUpdate::getTables | ( | ) |
Definition at line 562 of file class.ilDBUpdate.php.
References $query, $res, $row, and getTableStatus().
ilDBUpdate::getTableStatus | ( | $table | ) |
Definition at line 579 of file class.ilDBUpdate.php.
References $query, $res, $row, $table, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by getTables().
ilDBUpdate::getUpdateStepNr | ( | $nr, | |
$hotfix = false , |
|||
$custom_update = false |
|||
) |
Get single update step for presentation.
Definition at line 925 of file class.ilDBUpdate.php.
References $i.
Referenced by getHotfixSteps(), and getUpdateSteps().
ilDBUpdate::getUpdateSteps | ( | $a_break = 0 | ) |
Get update steps as string (for presentation)
Definition at line 860 of file class.ilDBUpdate.php.
References $c, $currentVersion, $f, $fileVersion, $i, $ilCtrlStructureReader, $ilDB, getFileForStep(), getUpdateStepNr(), initGlobalsRequiredForUpdateSteps(), PATH, and readDBUpdateFile().
ilDBUpdate::hotfixAvailable | ( | ) |
Get status of hotfix file.
Definition at line 680 of file class.ilDBUpdate.php.
References readHotfixInfo().
|
private |
$ilCtrlStructureReader | |
$ilMySQLAbstraction | |
$ilDB |
Definition at line 303 of file class.ilDBUpdate.php.
References $DIC, $GLOBALS, $ilCtrlStructureReader, and $ilDB.
Referenced by applyCustomUpdates(), applyHotfix(), applyUpdate(), applyUpdateNr(), getUpdateSteps(), and loadXMLInfo().
ilDBUpdate::initStep | ( | $i | ) |
int | $i |
Definition at line 106 of file class.ilDBUpdate.php.
Referenced by applyUpdate().
ilDBUpdate::loadXMLInfo | ( | ) |
Definition at line 392 of file class.ilDBUpdate.php.
References $ilCtrlStructureReader, $ilDB, $module, ilModule\getAvailableCoreModules(), ilService\getAvailableCoreServices(), and initGlobalsRequiredForUpdateSteps().
Referenced by applyCustomUpdates(), applyHotfix(), and applyUpdate().
ilDBUpdate::readCustomUpdatesFileVersion | ( | $a_file_content | ) |
Definition at line 765 of file class.ilDBUpdate.php.
References $row, and $version.
Referenced by readCustomUpdatesInfo().
ilDBUpdate::readCustomUpdatesInfo | ( | $a_force = false | ) |
Definition at line 780 of file class.ilDBUpdate.php.
References PATH, and readCustomUpdatesFileVersion().
Referenced by applyCustomUpdates(), customUpdatesAvailable(), getCustomUpdatesCurrentVersion(), getCustomUpdatesFileVersion(), and setCustomUpdatesCurrentVersion().
ilDBUpdate::readDBUpdateFile | ( | ) |
Definition at line 112 of file class.ilDBUpdate.php.
Referenced by ilPluginDBUpdate\__construct(), __construct(), applyUpdate(), and getUpdateSteps().
ilDBUpdate::readFileVersion | ( | ) |
Definition at line 212 of file class.ilDBUpdate.php.
References $fileVersion, $row, and $version.
Referenced by ilPluginDBUpdate\__construct(), and __construct().
ilDBUpdate::readHotfixFileVersion | ( | $a_file_content | ) |
Set current hotfix version.
Definition at line 636 of file class.ilDBUpdate.php.
References $row, and $version.
Referenced by readHotfixInfo().
ilDBUpdate::readHotfixInfo | ( | $a_force = false | ) |
Get status of hotfix file.
Definition at line 654 of file class.ilDBUpdate.php.
References ILIAS_VERSION_NUMERIC, PATH, and readHotfixFileVersion().
Referenced by applyHotfix(), getHotfixCurrentVersion(), getHotfixFileVersion(), getHotfixSteps(), hotfixAvailable(), and setHotfixCurrentVersion().
ilDBUpdate::readLastUpdateFile | ( | ) |
Definition at line 127 of file class.ilDBUpdate.php.
Referenced by ilPluginDBUpdate\__construct(), and __construct().
ilDBUpdate::setCurrentVersion | ( | $a_version | ) |
int | $a_version |
Definition at line 160 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
ilDBUpdate::setCustomUpdatesCurrentVersion | ( | $a_version | ) |
Definition at line 747 of file class.ilDBUpdate.php.
References readCustomUpdatesInfo().
Referenced by applyUpdateNr().
ilDBUpdate::setHotfixCurrentVersion | ( | $a_version | ) |
Set current hotfix version.
Definition at line 609 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 176 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
ilDBUpdate::$currentVersion |
Definition at line 24 of file class.ilDBUpdate.php.
Referenced by applyUpdate(), ilPluginDBUpdate\getCurrentVersion(), getCurrentVersion(), and getUpdateSteps().
ilDBUpdate::$DB_UPDATE_FILE |
db update file
Definition at line 18 of file class.ilDBUpdate.php.
ilDBUpdate::$fileVersion |
Definition at line 30 of file class.ilDBUpdate.php.
Referenced by applyUpdate(), getFileVersion(), getUpdateSteps(), and readFileVersion().
ilDBUpdate::$updateMsg |
Definition at line 34 of file class.ilDBUpdate.php.