|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Database Update class. More...
Inheritance diagram for ilDBUpdate:
Collaboration diagram for ilDBUpdate: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().
Here is the call graph for this function:| ilDBUpdate::applyCustomUpdates | ( | ) |
Definition at line 766 of file class.ilDBUpdate.php.
References $GLOBALS, $ilCtrlStructureReader, applyUpdateNr(), error(), getCustomUpdatesCurrentVersion(), getCustomUpdatesFileVersion(), loadXMLInfo(), and readCustomUpdatesInfo().
Here is the call graph for this function:| ilDBUpdate::applyHotfix | ( | ) |
Apply hotfix.
Definition at line 647 of file class.ilDBUpdate.php.
References $GLOBALS, $ilCtrlStructureReader, applyUpdateNr(), error(), getHotfixCurrentVersion(), getHotfixFileVersion(), loadXMLInfo(), and readHotfixInfo().
Here is the call graph for this function:| ilDBUpdate::applyUpdate | ( | $a_break = 0 | ) |
Apply update.
Definition at line 282 of file class.ilDBUpdate.php.
References $currentVersion, $fileVersion, $GLOBALS, $ilCtrlStructureReader, applyUpdateNr(), error(), getFileForStep(), initStep(), loadXMLInfo(), and readDBUpdateFile().
Here is the call graph for this function:| 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, clearRunningStatus(), error(), execQuery(), 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 274 of file class.ilDBUpdate.php.
Referenced by execQuery().
Here is the caller graph for this function:| ilDBUpdate::clearRunningStatus | ( | ) |
Clear running status.
Definition at line 185 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
Here is the caller graph for this function:| ilDBUpdate::customUpdatesAvailable | ( | ) |
Definition at line 753 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 224 of file class.ilDBUpdate.php.
References $r, 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 137 of file class.ilDBUpdate.php.
References $currentVersion.
Referenced by __construct().
Here is the caller graph for this function:| ilDBUpdate::getCustomUpdatesCurrentVersion | ( | ) |
Definition at line 698 of file class.ilDBUpdate.php.
References 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 712 of file class.ilDBUpdate.php.
References 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 514 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 __construct(), applyUpdate(), and getUpdateSteps().
Here is the caller graph for this function:| ilDBUpdate::getFileVersion | ( | ) |
| ilDBUpdate::getHotfixCurrentVersion | ( | ) |
Get current hotfix version.
Definition at line 559 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 580 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 861 of file class.ilDBUpdate.php.
References getHotfixCurrentVersion(), getHotfixFileVersion(), getUpdateStepNr(), and readHotfixInfo().
Here is the call graph for this function:| 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, and getTableStatus().
Here is the call graph for this function:| ilDBUpdate::getTableStatus | ( | $table | ) |
Definition at line 540 of file class.ilDBUpdate.php.
References $query, $res, $row, 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 888 of file class.ilDBUpdate.php.
References $ilCtrlStructureReader, $ilDB, $ilErr, and $ilUser.
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 822 of file class.ilDBUpdate.php.
References $currentVersion, $fileVersion, $ilCtrlStructureReader, getFileForStep(), getUpdateStepNr(), and readDBUpdateFile().
Here is the call graph for this function:| ilDBUpdate::hotfixAvailable | ( | ) |
Get status of hotfix file.
Definition at line 634 of file class.ilDBUpdate.php.
References readHotfixInfo().
Here is the call graph for this function:| ilDBUpdate::initStep | ( | $i | ) |
Init Step.
Definition at line 105 of file class.ilDBUpdate.php.
Referenced by applyUpdate().
Here is the caller graph for this function:| ilDBUpdate::loadXMLInfo | ( | ) |
Reimplemented in ilPluginDBUpdate.
Definition at line 349 of file class.ilDBUpdate.php.
References $ilCtrlStructureReader, ilModule\getAvailableCoreModules(), and ilService\getAvailableCoreServices().
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 718 of file class.ilDBUpdate.php.
References $row, and $version.
Referenced by readCustomUpdatesInfo().
Here is the caller graph for this function:| ilDBUpdate::readCustomUpdatesInfo | ( | $a_force = false | ) |
Definition at line 734 of file class.ilDBUpdate.php.
References readCustomUpdatesFileVersion().
Referenced by applyCustomUpdates(), 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 111 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 193 of file class.ilDBUpdate.php.
References $fileVersion, $row, and $version.
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 589 of file class.ilDBUpdate.php.
References $row, and $version.
Referenced by readHotfixInfo().
Here is the caller graph for this function:| ilDBUpdate::readHotfixInfo | ( | $a_force = false | ) |
Get status of hotfix file.
Definition at line 608 of file class.ilDBUpdate.php.
References ILIAS_VERSION_NUMERIC, 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 124 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 | ) |
Reimplemented in ilPluginDBUpdate.
Definition at line 145 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
Here is the caller graph for this function:| ilDBUpdate::setCustomUpdatesCurrentVersion | ( | $a_version | ) |
Definition at line 704 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 568 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 160 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
Here is the caller graph for this function:| 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().