|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Database Update class. More...
Inheritance diagram for ilDBUpdate:
Collaboration diagram for ilDBUpdate:Public Member Functions | |
| ilDBUpdate ($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... | |
| _DBUpdate () | |
| destructor 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) | |
| optimizeTables ($tables) | |
| 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::_DBUpdate | ( | ) |
destructor
Reimplemented in ilPluginDBUpdate.
Definition at line 115 of file class.ilDBUpdate.php.
| ilDBUpdate::applyCustomUpdates | ( | ) |
Definition at line 785 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 666 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 289 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 401 of file class.ilDBUpdate.php.
References $ilCtrlStructureReader, $ilDB, $ilErr, $ilUser, $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 281 of file class.ilDBUpdate.php.
Referenced by execQuery().
Here is the caller graph for this function:| ilDBUpdate::clearRunningStatus | ( | ) |
Clear running status.
Definition at line 195 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
Here is the caller graph for this function:| ilDBUpdate::customUpdatesAvailable | ( | ) |
Definition at line 772 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 234 of file class.ilDBUpdate.php.
References checkQuery(), error(), and MDB2\isError().
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 146 of file class.ilDBUpdate.php.
References $currentVersion, and $GLOBALS.
Referenced by ilDBUpdate().
Here is the caller graph for this function:| ilDBUpdate::getCustomUpdatesCurrentVersion | ( | ) |
Definition at line 717 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 731 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 521 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().
Here is the caller graph for this function:| ilDBUpdate::getFileVersion | ( | ) |
| ilDBUpdate::getHotfixCurrentVersion | ( | ) |
Get current hotfix version.
Definition at line 577 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 598 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 880 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 183 of file class.ilDBUpdate.php.
| ilDBUpdate::getTables | ( | ) |
Definition at line 529 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 547 of file class.ilDBUpdate.php.
References $query, $res, $row, and DB_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 907 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 841 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 653 of file class.ilDBUpdate.php.
References readHotfixInfo().
Here is the call graph for this function:| 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().
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 356 of file class.ilDBUpdate.php.
References $ilCtrlStructureReader, ilModule\getAvailableCoreModules(), ilService\getAvailableCoreServices(), and ILIAS_ABSOLUTE_PATH.
Referenced by applyCustomUpdates(), applyHotfix(), and applyUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::optimizeTables | ( | $tables | ) |
Definition at line 557 of file class.ilDBUpdate.php.
| ilDBUpdate::readCustomUpdatesFileVersion | ( | $a_file_content | ) |
Definition at line 737 of file class.ilDBUpdate.php.
References $row.
Referenced by readCustomUpdatesInfo().
Here is the caller graph for this function:| ilDBUpdate::readCustomUpdatesInfo | ( | $a_force = false | ) |
Definition at line 753 of file class.ilDBUpdate.php.
References $GLOBALS, and 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 120 of file class.ilDBUpdate.php.
References error().
Referenced by applyUpdate(), getUpdateSteps(), ilDBUpdate(), and ilPluginDBUpdate\ilPluginDBUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::readFileVersion | ( | ) |
Definition at line 203 of file class.ilDBUpdate.php.
References $fileVersion, and $row.
Referenced by ilDBUpdate(), and ilPluginDBUpdate\ilPluginDBUpdate().
Here is the caller graph for this function:| ilDBUpdate::readHotfixFileVersion | ( | $a_file_content | ) |
Set current hotfix version.
Definition at line 607 of file class.ilDBUpdate.php.
References $row.
Referenced by readHotfixInfo().
Here is the caller graph for this function:| ilDBUpdate::readHotfixInfo | ( | $a_force = false | ) |
Get status of hotfix file.
Definition at line 626 of file class.ilDBUpdate.php.
References $GLOBALS, 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 133 of file class.ilDBUpdate.php.
References error().
Referenced by ilDBUpdate(), and ilPluginDBUpdate\ilPluginDBUpdate().
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 155 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
Here is the caller graph for this function:| ilDBUpdate::setCustomUpdatesCurrentVersion | ( | $a_version | ) |
Definition at line 723 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 586 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 170 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().