ILIAS
Release_3_10_x_branch Revision 61812
|
Database Update class. More...
Public Member Functions | |
ilDBUpdate ($a_db_handler=0, $tmp_flag=false) | |
constructor | |
getFileForStep ($a_version) | |
Get db update file name for db step. | |
_DBUpdate () | |
destructor | |
readDBUpdateFile () | |
readLastUpdateFile () | |
getCurrentVersion () | |
setCurrentVersion ($a_version) | |
readFileVersion () | |
getFileVersion () | |
Get Version of file. | |
execQuery ($db, $str) | |
execute a query | |
checkQuery ($q) | |
check query | |
applyUpdate () | |
Apply update. | |
loadXMLInfo () | |
applyUpdateNr ($nr) | |
apply an update | |
getDBVersionStatus () | |
getTables () | |
getTableStatus ($table) | |
optimizeTables ($tables) |
Data Fields | |
$DB_UPDATE_FILE | |
db update file | |
$currentVersion | |
$fileVersion |
Database Update class.
Definition at line 34 of file class.ilDBUpdate.php.
ilDBUpdate::_DBUpdate | ( | ) |
destructor
Reimplemented in ilPluginDBUpdate.
Definition at line 120 of file class.ilDBUpdate.php.
ilDBUpdate::applyUpdate | ( | ) |
Apply update.
Definition at line 264 of file class.ilDBUpdate.php.
References $currentVersion, $fileVersion, $ilCtrlStructureReader, applyUpdateNr(), getFileForStep(), loadXMLInfo(), and readDBUpdateFile().
ilDBUpdate::applyUpdateNr | ( | $nr | ) |
apply an update
int | nr number what patch to apply |
Definition at line 357 of file class.ilDBUpdate.php.
References $ilCtrlStructureReader, $ilErr, execQuery(), and setCurrentVersion().
Referenced by applyUpdate().
ilDBUpdate::checkQuery | ( | $q | ) |
check query
Reimplemented in ilPluginDBUpdate.
Definition at line 256 of file class.ilDBUpdate.php.
Referenced by execQuery().
ilDBUpdate::execQuery | ( | $db, | |
$str | |||
) |
execute a query
object | DB |
string | query |
Definition at line 209 of file class.ilDBUpdate.php.
References checkQuery().
Referenced by applyUpdateNr().
ilDBUpdate::getCurrentVersion | ( | ) |
Reimplemented in ilPluginDBUpdate.
Definition at line 151 of file class.ilDBUpdate.php.
References DB_FETCHMODE_OBJECT.
Referenced by ilDBUpdate().
ilDBUpdate::getDBVersionStatus | ( | ) |
Definition at line 451 of file class.ilDBUpdate.php.
ilDBUpdate::getFileForStep | ( | $a_version | ) |
Get db update file name for db step.
Reimplemented in ilPluginDBUpdate.
Definition at line 100 of file class.ilDBUpdate.php.
Referenced by applyUpdate(), and ilDBUpdate().
ilDBUpdate::getFileVersion | ( | ) |
ilDBUpdate::getTables | ( | ) |
Definition at line 459 of file class.ilDBUpdate.php.
References $res, and getTableStatus().
ilDBUpdate::getTableStatus | ( | $table | ) |
Definition at line 477 of file class.ilDBUpdate.php.
References $res, and DB_FETCHMODE_ASSOC.
Referenced by getTables().
ilDBUpdate::ilDBUpdate | ( | $a_db_handler = 0 , |
|
$tmp_flag = false |
|||
) |
constructor
Definition at line 56 of file class.ilDBUpdate.php.
References getCurrentVersion(), getFileForStep(), readDBUpdateFile(), readFileVersion(), and readLastUpdateFile().
ilDBUpdate::loadXMLInfo | ( | ) |
Reimplemented in ilPluginDBUpdate.
Definition at line 312 of file class.ilDBUpdate.php.
References $ilCtrlStructureReader, ilModuleReader\clearTables(), ilServiceReader\clearTables(), ilModule\getAvailableCoreModules(), ilService\getAvailableCoreServices(), and ILIAS_ABSOLUTE_PATH.
Referenced by applyUpdate().
ilDBUpdate::optimizeTables | ( | $tables | ) |
Definition at line 487 of file class.ilDBUpdate.php.
References $res.
ilDBUpdate::readDBUpdateFile | ( | ) |
Definition at line 125 of file class.ilDBUpdate.php.
Referenced by applyUpdate(), ilDBUpdate(), and ilPluginDBUpdate\ilPluginDBUpdate().
ilDBUpdate::readFileVersion | ( | ) |
Definition at line 178 of file class.ilDBUpdate.php.
References $fileVersion.
Referenced by ilDBUpdate(), and ilPluginDBUpdate\ilPluginDBUpdate().
ilDBUpdate::readLastUpdateFile | ( | ) |
Definition at line 138 of file class.ilDBUpdate.php.
Referenced by ilDBUpdate(), and ilPluginDBUpdate\ilPluginDBUpdate().
ilDBUpdate::setCurrentVersion | ( | $a_version | ) |
Reimplemented in ilPluginDBUpdate.
Definition at line 164 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
ilDBUpdate::$currentVersion |
Definition at line 45 of file class.ilDBUpdate.php.
Referenced by applyUpdate(), and ilPluginDBUpdate\getCurrentVersion().
ilDBUpdate::$DB_UPDATE_FILE |
db update file
Definition at line 39 of file class.ilDBUpdate.php.
ilDBUpdate::$fileVersion |
Definition at line 51 of file class.ilDBUpdate.php.
Referenced by applyUpdate(), getFileVersion(), and readFileVersion().