ILIAS
release_8 Revision v8.19
|
Database Update class. More...
Public Member Functions | |
__construct (\ilDBInterface $db, \ilPluginInfo $plugin) | |
constructor MagicMethodsValidityInspection More... | |
getFileForStep (int $a_version) | |
FROM ilDBUpdate. More... | |
getCurrentVersion () | |
Get current DB version. More... | |
setCurrentVersion (int $a_version) | |
Set current DB version. More... | |
loadXMLInfo () | |
checkQuery (string $q) | |
This is a very simple check. More... | |
getDBUpdateScriptName () | |
![]() | |
__construct (ilDBInterface $a_db_handler, ilIniFile $client_ini=null) | |
getFileForStep (int $a_version) | |
Get db update file name for db step. More... | |
initStep (int $i) | |
readDBUpdateFile () | |
readLastUpdateFile () | |
getCurrentVersion () | |
setCurrentVersion (int $a_version) | |
setRunningStatus (int $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 (ilDBInterface $db, string $str) | |
execute a query More... | |
checkQuery (string $q) | |
check query More... | |
applyUpdate (int $a_break=0) | |
Apply update. More... | |
applyUpdateNr (int $nr, $hotfix=false, $custom_update=false) | |
apply an update More... | |
getDBVersionStatus () | |
getTables () | |
getTableStatus (string $table) | |
getHotfixCurrentVersion () | |
Get current hotfix version. More... | |
setHotfixCurrentVersion (int $a_version) | |
Set current hotfix version. More... | |
getHotfixFileVersion () | |
Get current hotfix version. More... | |
readHotfixFileVersion (array $a_file_content) | |
Set current hotfix version. More... | |
readHotfixInfo (bool $a_force=false) | |
Get status of hotfix file. More... | |
hotfixAvailable () | |
Get status of hotfix file. More... | |
applyHotfix () | |
Apply hotfix. More... | |
getCustomUpdatesCurrentVersion () | |
setCustomUpdatesCurrentVersion (?int $a_version) | |
getCustomUpdatesFileVersion () | |
readCustomUpdatesFileVersion (array $a_file_content) | |
readCustomUpdatesInfo (bool $a_force=false) | |
customUpdatesAvailable () | |
applyCustomUpdates () | |
getUpdateSteps (int $a_break=0) | |
Get update steps as string (for presentation) More... | |
getHotfixSteps () | |
Get hotfix steps. More... | |
getUpdateStepNr (int $nr, bool $hotfix=false, bool $custom_update=false) | |
Get single update step for presentation. More... | |
Protected Member Functions | |
getTablePrefix () | |
Protected Attributes | |
const | PLUGIN_UPDATE_FILE = "/sql/dbupdate.php" |
ilDBInterface | $db |
ilPluginInfo | $plugin |
![]() | |
ilIniFile | $client_ini = null |
int | $custom_updates_current_version = 0 |
int | $custom_updates_file_version = null |
bool | $custom_updates_info_read = null |
string | $error |
string | $PATH = './' |
ilDBInterface | $db |
string | $current_file |
string | $LAST_UPDATE_FILE |
array | $filecontent |
array | $lastfilecontent |
int | $db_update_running |
int | $hotfix_current_version |
ilSetting | $hotfix_setting |
array | $hotfix_version |
array | $hotfix_content |
int | $hotfix_file_version |
ilSetting | $custom_updates_setting |
array | $custom_updates_content |
Iterator | $ctrl_structure_iterator |
Additional Inherited Members | |
![]() | |
string | $DB_UPDATE_FILE |
int | $currentVersion = null |
int | $fileVersion = null |
string | $updateMsg |
Database Update class.
Definition at line 28 of file class.ilPluginDBUpdate.php.
ilPluginDBUpdate::__construct | ( | \ilDBInterface | $db, |
\ilPluginInfo | $plugin | ||
) |
constructor MagicMethodsValidityInspection
Definition at line 39 of file class.ilPluginDBUpdate.php.
References $db, ilDBUpdate\$DB_UPDATE_FILE, $plugin, ilPluginInfo\getCurrentDBVersion(), getDBUpdateScriptName(), getFileForStep(), PATH, ilDBUpdate\readDBUpdateFile(), ilDBUpdate\readFileVersion(), and ilDBUpdate\readLastUpdateFile().
ilPluginDBUpdate::checkQuery | ( | string | $q | ) |
This is a very simple check.
Could be done better.
Definition at line 93 of file class.ilPluginDBUpdate.php.
References getTablePrefix().
ilPluginDBUpdate::getCurrentVersion | ( | ) |
Get current DB version.
Definition at line 72 of file class.ilPluginDBUpdate.php.
References ilDBUpdate\$currentVersion.
ilPluginDBUpdate::getDBUpdateScriptName | ( | ) |
Definition at line 104 of file class.ilPluginDBUpdate.php.
Referenced by __construct().
ilPluginDBUpdate::getFileForStep | ( | int | $a_version | ) |
FROM ilDBUpdate.
Definition at line 64 of file class.ilPluginDBUpdate.php.
Referenced by __construct().
|
protected |
Definition at line 109 of file class.ilPluginDBUpdate.php.
Referenced by checkQuery().
ilPluginDBUpdate::loadXMLInfo | ( | ) |
Definition at line 85 of file class.ilPluginDBUpdate.php.
ilPluginDBUpdate::setCurrentVersion | ( | int | $a_version | ) |
Set current DB version.
Definition at line 80 of file class.ilPluginDBUpdate.php.
|
protected |
Definition at line 32 of file class.ilPluginDBUpdate.php.
Referenced by __construct().
|
protected |
Definition at line 33 of file class.ilPluginDBUpdate.php.
Referenced by __construct().
|
protected |
Definition at line 30 of file class.ilPluginDBUpdate.php.