|
ILIAS
Release_4_0_x_branch Revision 61816
|
Database Update class. More...
Inheritance diagram for ilDBUpdate:
Collaboration diagram for ilDBUpdate:Public Member Functions | |
| ilDBUpdate ($a_db_handler=0, $tmp_flag=false) | |
| constructor | |
| getFileForStep ($a_version) | |
| Get db update file name for db step. | |
| initStep ($i) | |
| Init Step. | |
| _DBUpdate () | |
| destructor | |
| readDBUpdateFile () | |
| readLastUpdateFile () | |
| getCurrentVersion () | |
| setCurrentVersion ($a_version) | |
| setRunningStatus ($a_nr) | |
| Set running status for a step. | |
| getRunningStatus () | |
| Get running status. | |
| clearRunningStatus () | |
| Clear running status. | |
| readFileVersion () | |
| getFileVersion () | |
| Get Version of file. | |
| execQuery ($db, $str) | |
| execute a query | |
| checkQuery ($q) | |
| check query | |
| applyUpdate ($a_break=0) | |
| Apply update. | |
| loadXMLInfo () | |
| applyUpdateNr ($nr, $hotfix=false) | |
| apply an update | |
| getDBVersionStatus () | |
| getTables () | |
| getTableStatus ($table) | |
| optimizeTables ($tables) | |
| getHotfixCurrentVersion () | |
| Get current hotfix version. | |
| setHotfixCurrentVersion ($a_version) | |
| Set current hotfix version. | |
| getHotfixFileVersion () | |
| Get current hotfix version. | |
| readHotfixFileVersion ($a_file_content) | |
| Set current hotfix version. | |
| readHotfixInfo ($a_force=false) | |
| Get status of hotfix file. | |
| hotfixAvailable () | |
| Get status of hotfix file. | |
| applyHotfix () | |
| Apply hotfix. | |
Data Fields | |
| $DB_UPDATE_FILE | |
| db update file | |
| $currentVersion | |
| $fileVersion | |
Database Update class.
Definition at line 12 of file class.ilDBUpdate.php.
| ilDBUpdate::_DBUpdate | ( | ) |
destructor
Reimplemented in ilPluginDBUpdate.
Definition at line 107 of file class.ilDBUpdate.php.
| ilDBUpdate::applyHotfix | ( | ) |
Apply hotfix.
Definition at line 649 of file class.ilDBUpdate.php.
References $f, $GLOBALS, $ilCtrlStructureReader, applyUpdateNr(), 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, $f, $fileVersion, $GLOBALS, $ilCtrlStructureReader, applyUpdateNr(), getFileForStep(), initStep(), loadXMLInfo(), and readDBUpdateFile().
Here is the call graph for this function:| ilDBUpdate::applyUpdateNr | ( | $nr, | |
$hotfix = false |
|||
| ) |
apply an update
| int | nr number what patch to apply |
Definition at line 392 of file class.ilDBUpdate.php.
References $error, $ilCtrlStructureReader, $ilDB, $ilErr, $row, clearRunningStatus(), elseif(), execQuery(), setCurrentVersion(), setHotfixCurrentVersion(), and setRunningStatus().
Referenced by 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 188 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
Here is the caller graph for this function:| ilDBUpdate::execQuery | ( | $db, | |
| $str | |||
| ) |
execute a query
| object | DB |
| string | query |
Definition at line 227 of file class.ilDBUpdate.php.
References $q, checkQuery(), 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 138 of file class.ilDBUpdate.php.
References $currentVersion, and $GLOBALS.
Referenced by ilDBUpdate().
Here is the caller graph for this function:| ilDBUpdate::getDBVersionStatus | ( | ) |
Definition at line 504 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(), and ilDBUpdate().
Here is the caller graph for this function:| ilDBUpdate::getFileVersion | ( | ) |
| ilDBUpdate::getHotfixCurrentVersion | ( | ) |
Get current hotfix version.
Definition at line 560 of file class.ilDBUpdate.php.
References readHotfixInfo().
Referenced by applyHotfix().
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 581 of file class.ilDBUpdate.php.
References readHotfixInfo().
Referenced by applyHotfix().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::getRunningStatus | ( | ) |
Get running status.
Definition at line 176 of file class.ilDBUpdate.php.
| ilDBUpdate::getTables | ( | ) |
Definition at line 512 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 530 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::hotfixAvailable | ( | ) |
Get status of hotfix file.
Definition at line 636 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 97 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, ilModuleReader\clearTables(), ilServiceReader\clearTables(), ilModule\getAvailableCoreModules(), ilService\getAvailableCoreServices(), and ILIAS_ABSOLUTE_PATH.
Referenced by applyHotfix(), and applyUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::optimizeTables | ( | $tables | ) |
| ilDBUpdate::readDBUpdateFile | ( | ) |
Definition at line 112 of file class.ilDBUpdate.php.
Referenced by applyUpdate(), ilDBUpdate(), and ilPluginDBUpdate\ilPluginDBUpdate().
Here is the caller graph for this function:| ilDBUpdate::readFileVersion | ( | ) |
Definition at line 196 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 590 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 609 of file class.ilDBUpdate.php.
References $GLOBALS, ILIAS_VERSION_NUMERIC, and readHotfixFileVersion().
Referenced by applyHotfix(), getHotfixCurrentVersion(), getHotfixFileVersion(), hotfixAvailable(), and setHotfixCurrentVersion().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBUpdate::readLastUpdateFile | ( | ) |
Definition at line 125 of file class.ilDBUpdate.php.
Referenced by ilDBUpdate(), and ilPluginDBUpdate\ilPluginDBUpdate().
Here is the caller graph for this function:| ilDBUpdate::setCurrentVersion | ( | $a_version | ) |
Reimplemented in ilPluginDBUpdate.
Definition at line 148 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
Here is the caller graph for this function:| ilDBUpdate::setHotfixCurrentVersion | ( | $a_version | ) |
Set current hotfix version.
Definition at line 569 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 163 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(), and getCurrentVersion().
| 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(), and readFileVersion().