|
ILIAS
release_8 Revision v8.24
|
Database Update class. More...
Inheritance diagram for ilPluginDBUpdate:
Collaboration diagram for ilPluginDBUpdate:Public Member Functions | |
| __construct (\ilDBInterface $db, \ilPluginInfo $plugin) | |
| constructor @noinspection 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 () | |
Public Member Functions inherited from ilDBUpdate | |
| __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 |
Protected Attributes inherited from ilDBUpdate | |
| 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 | |
Data Fields inherited from ilDBUpdate | |
| 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 @noinspection 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().
Here is the call graph for this function:| ilPluginDBUpdate::checkQuery | ( | string | $q | ) |
This is a very simple check.
Could be done better.
Reimplemented from ilDBUpdate.
Definition at line 93 of file class.ilPluginDBUpdate.php.
References getTablePrefix().
Here is the call graph for this function:| ilPluginDBUpdate::getCurrentVersion | ( | ) |
Get current DB version.
Reimplemented from ilDBUpdate.
Definition at line 72 of file class.ilPluginDBUpdate.php.
References ilDBUpdate\$currentVersion.
| ilPluginDBUpdate::getDBUpdateScriptName | ( | ) |
Definition at line 104 of file class.ilPluginDBUpdate.php.
References PLUGIN_UPDATE_FILE.
Referenced by __construct().
Here is the caller graph for this function:| ilPluginDBUpdate::getFileForStep | ( | int | $a_version | ) |
FROM ilDBUpdate.
Reimplemented from ilDBUpdate.
Definition at line 64 of file class.ilPluginDBUpdate.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 109 of file class.ilPluginDBUpdate.php.
Referenced by checkQuery().
Here is the caller graph for this function:| ilPluginDBUpdate::loadXMLInfo | ( | ) |
Definition at line 85 of file class.ilPluginDBUpdate.php.
| ilPluginDBUpdate::setCurrentVersion | ( | int | $a_version | ) |
Set current DB version.
Reimplemented from ilDBUpdate.
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.
Referenced by getDBUpdateScriptName().