|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Database Update class. More...
Inheritance diagram for ilDBUpdate:
Collaboration diagram for ilDBUpdate: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 | |
Protected Attributes | |
| $client_ini | |
| $custom_updates_current_version | |
| $custom_updates_file_version | |
| $custom_updates_info_read | |
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 51 of file class.ilDBUpdate.php.
References $client_ini, $DIC, getCurrentVersion(), getFileForStep(), PATH, readDBUpdateFile(), readFileVersion(), and readLastUpdateFile().
Here is the call graph for this function:| ilDBUpdate::applyCustomUpdates | ( | ) |
Definition at line 806 of file class.ilDBUpdate.php.
References $c, Vendor\Package\$f, $GLOBALS, $i, $ilDB, applyUpdateNr(), error(), getCustomUpdatesCurrentVersion(), getCustomUpdatesFileVersion(), initGlobalsRequiredForUpdateSteps(), loadXMLInfo(), and readCustomUpdatesInfo().
Here is the call graph for this function:| ilDBUpdate::applyHotfix | ( | ) |
Apply hotfix.
Definition at line 691 of file class.ilDBUpdate.php.
References $c, Vendor\Package\$f, $GLOBALS, $i, $ilDB, applyUpdateNr(), error(), getHotfixCurrentVersion(), getHotfixFileVersion(), initGlobalsRequiredForUpdateSteps(), loadXMLInfo(), and readHotfixInfo().
Here is the call graph for this function:| ilDBUpdate::applyUpdate | ( | $a_break = 0 | ) |
Apply update.
Definition at line 344 of file class.ilDBUpdate.php.
References $c, $currentVersion, Vendor\Package\$f, $fileVersion, $i, $ilDB, applyUpdateNr(), error(), getFileForStep(), initGlobalsRequiredForUpdateSteps(), initStep(), loadXMLInfo(), PATH, and readDBUpdateFile().
Referenced by ilDatabaseUpdatedObjective\achieve().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::applyUpdateNr | ( | & | $nr, |
$hotfix = false, |
|||
$custom_update = false |
|||
| ) |
apply an update
| int | nr number what patch to apply (Reference: Patch for https://mantis.ilias.de/view.php?id=28550) |
Definition at line 447 of file class.ilDBUpdate.php.
References $i, $ilDB, clearRunningStatus(), error(), execQuery(), initGlobalsRequiredForUpdateSteps(), setCurrentVersion(), setCustomUpdatesCurrentVersion(), setHotfixCurrentVersion(), and setRunningStatus().
Referenced by applyCustomUpdates(), applyHotfix(), and applyUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::checkQuery | ( | $q | ) |
check query
Reimplemented in ilPluginDBUpdate.
Definition at line 298 of file class.ilDBUpdate.php.
Referenced by execQuery().
Here is the caller graph for this function:| ilDBUpdate::clearRunningStatus | ( | ) |
Clear running status.
Definition at line 209 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
Here is the caller graph for this function:| ilDBUpdate::customUpdatesAvailable | ( | ) |
Definition at line 792 of file class.ilDBUpdate.php.
References readCustomUpdatesInfo().
Here is the call graph for this function:| ilDBUpdate::execQuery | ( | $db, | |
| $str | |||
| ) |
execute a query
| object | DB |
| string | query |
Definition at line 252 of file class.ilDBUpdate.php.
References Vendor\Package\$e, $i, checkQuery(), error(), and exit.
Referenced by applyUpdateNr().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::getCurrentVersion | ( | ) |
Reimplemented in ilPluginDBUpdate.
Definition at line 155 of file class.ilDBUpdate.php.
References $currentVersion.
Referenced by __construct().
Here is the caller graph for this function:| ilDBUpdate::getCustomUpdatesCurrentVersion | ( | ) |
Definition at line 734 of file class.ilDBUpdate.php.
References $custom_updates_current_version, and readCustomUpdatesInfo().
Referenced by applyCustomUpdates().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::getCustomUpdatesFileVersion | ( | ) |
Definition at line 752 of file class.ilDBUpdate.php.
References $custom_updates_file_version, and readCustomUpdatesInfo().
Referenced by applyCustomUpdates().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::getDBVersionStatus | ( | ) |
Definition at line 550 of file class.ilDBUpdate.php.
| ilDBUpdate::getFileForStep | ( | $a_version | ) |
Get db update file name for db step.
| int | $a_version |
Reimplemented in ilPluginDBUpdate.
Definition at line 93 of file class.ilDBUpdate.php.
Referenced by __construct(), applyUpdate(), and getUpdateSteps().
Here is the caller graph for this function:| ilDBUpdate::getFileVersion | ( | ) |
| ilDBUpdate::getHotfixCurrentVersion | ( | ) |
Get current hotfix version.
Definition at line 596 of file class.ilDBUpdate.php.
References readHotfixInfo().
Referenced by applyHotfix(), and getHotfixSteps().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::getHotfixFileVersion | ( | ) |
Get current hotfix version.
Definition at line 623 of file class.ilDBUpdate.php.
References readHotfixInfo().
Referenced by applyHotfix(), and getHotfixSteps().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::getHotfixSteps | ( | ) |
Get hotfix steps.
Definition at line 892 of file class.ilDBUpdate.php.
References $c, Vendor\Package\$f, $i, getHotfixCurrentVersion(), getHotfixFileVersion(), getUpdateStepNr(), and readHotfixInfo().
Here is the call graph for this function:| ilDBUpdate::getRunningStatus | ( | ) |
Get running status.
Definition at line 197 of file class.ilDBUpdate.php.
| ilDBUpdate::getTables | ( | ) |
Definition at line 560 of file class.ilDBUpdate.php.
References Vendor\Package\$a, $query, $res, and getTableStatus().
Here is the call graph for this function:| ilDBUpdate::getTableStatus | ( | $table | ) |
Definition at line 577 of file class.ilDBUpdate.php.
References Vendor\Package\$a, $query, $res, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by getTables().
Here is the caller graph for this function:| ilDBUpdate::getUpdateStepNr | ( | $nr, | |
$hotfix = false, |
|||
$custom_update = false |
|||
| ) |
Get single update step for presentation.
Definition at line 917 of file class.ilDBUpdate.php.
References $i.
Referenced by getHotfixSteps(), and getUpdateSteps().
Here is the caller graph for this function:| ilDBUpdate::getUpdateSteps | ( | $a_break = 0 | ) |
Get update steps as string (for presentation)
Definition at line 852 of file class.ilDBUpdate.php.
References $c, $currentVersion, Vendor\Package\$f, $fileVersion, $i, $ilDB, getFileForStep(), getUpdateStepNr(), initGlobalsRequiredForUpdateSteps(), PATH, and readDBUpdateFile().
Here is the call graph for this function:| ilDBUpdate::hotfixAvailable | ( | ) |
Get status of hotfix file.
Definition at line 677 of file class.ilDBUpdate.php.
References readHotfixInfo().
Here is the call graph for this function:
|
private |
| $ilCtrlStructureReader | |
| $ilMySQLAbstraction | |
| $ilDB |
Definition at line 309 of file class.ilDBUpdate.php.
References $DIC, $GLOBALS, and $ilDB.
Referenced by applyCustomUpdates(), applyHotfix(), applyUpdate(), applyUpdateNr(), getUpdateSteps(), and loadXMLInfo().
Here is the caller graph for this function:| ilDBUpdate::initStep | ( | $i | ) |
| int | $i |
Definition at line 116 of file class.ilDBUpdate.php.
Referenced by applyUpdate().
Here is the caller graph for this function:| ilDBUpdate::loadXMLInfo | ( | ) |
Reimplemented in ilPluginDBUpdate.
Definition at line 396 of file class.ilDBUpdate.php.
References $ilDB, $service, ilModule\getAvailableCoreModules(), ilService\getAvailableCoreServices(), and initGlobalsRequiredForUpdateSteps().
Referenced by applyCustomUpdates(), applyHotfix(), and applyUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::readCustomUpdatesFileVersion | ( | $a_file_content | ) |
Definition at line 760 of file class.ilDBUpdate.php.
Referenced by readCustomUpdatesInfo().
Here is the caller graph for this function:| ilDBUpdate::readCustomUpdatesInfo | ( | $a_force = false | ) |
Definition at line 775 of file class.ilDBUpdate.php.
References PATH, and readCustomUpdatesFileVersion().
Referenced by applyCustomUpdates(), ilDatabaseMetricsCollectedObjective\collectFrom(), customUpdatesAvailable(), getCustomUpdatesCurrentVersion(), getCustomUpdatesFileVersion(), and setCustomUpdatesCurrentVersion().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::readDBUpdateFile | ( | ) |
Definition at line 122 of file class.ilDBUpdate.php.
References error().
Referenced by ilPluginDBUpdate\__construct(), __construct(), applyUpdate(), and getUpdateSteps().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::readFileVersion | ( | ) |
Definition at line 217 of file class.ilDBUpdate.php.
References $fileVersion.
Referenced by ilPluginDBUpdate\__construct(), and __construct().
Here is the caller graph for this function:| ilDBUpdate::readHotfixFileVersion | ( | $a_file_content | ) |
Set current hotfix version.
Definition at line 634 of file class.ilDBUpdate.php.
Referenced by readHotfixInfo().
Here is the caller graph for this function:| ilDBUpdate::readHotfixInfo | ( | $a_force = false | ) |
Get status of hotfix file.
Definition at line 652 of file class.ilDBUpdate.php.
References ILIAS_VERSION_NUMERIC, PATH, and readHotfixFileVersion().
Referenced by applyHotfix(), getHotfixCurrentVersion(), getHotfixFileVersion(), getHotfixSteps(), hotfixAvailable(), and setHotfixCurrentVersion().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::readLastUpdateFile | ( | ) |
Definition at line 137 of file class.ilDBUpdate.php.
References error().
Referenced by ilPluginDBUpdate\__construct(), and __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::setCurrentVersion | ( | $a_version | ) |
| int | $a_version |
Reimplemented in ilPluginDBUpdate.
Definition at line 169 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
Here is the caller graph for this function:| ilDBUpdate::setCustomUpdatesCurrentVersion | ( | $a_version | ) |
Definition at line 742 of file class.ilDBUpdate.php.
References readCustomUpdatesInfo().
Referenced by applyUpdateNr().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::setHotfixCurrentVersion | ( | $a_version | ) |
Set current hotfix version.
Definition at line 607 of file class.ilDBUpdate.php.
References readHotfixInfo().
Referenced by applyUpdateNr().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::setRunningStatus | ( | $a_nr | ) |
Set running status for a step.
| int | step number |
Definition at line 184 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
Here is the caller graph for this function:
|
protected |
Definition at line 38 of file class.ilDBUpdate.php.
Referenced by __construct().
| ilDBUpdate::$currentVersion |
Definition at line 24 of file class.ilDBUpdate.php.
Referenced by applyUpdate(), ilPluginDBUpdate\getCurrentVersion(), getCurrentVersion(), and getUpdateSteps().
|
protected |
Definition at line 40 of file class.ilDBUpdate.php.
Referenced by getCustomUpdatesCurrentVersion().
|
protected |
Definition at line 41 of file class.ilDBUpdate.php.
Referenced by getCustomUpdatesFileVersion().
|
protected |
Definition at line 42 of file class.ilDBUpdate.php.
| 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.