|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Database Update class. More...
Inheritance diagram for ilPluginDBUpdate:
Collaboration diagram for ilPluginDBUpdate:Public Member Functions | |
| __construct (\ilDBInterface $db, \ilPluginInfo $plugin) | |
| constructor @noinspection MagicMethodsValidityInspection More... | |
| getCurrentVersion () | |
| applyUpdate () | |
| Apply update. More... | |
Public Member Functions inherited from ilDBUpdate | |
| __construct (protected ilDBInterface $db, protected ?ilIniFile $client_ini=null) | |
| getCustomUpdatesCurrentVersion () | |
| getCustomUpdatesFileVersion () | |
| applyCustomUpdates () | |
Protected Member Functions | |
| setCurrentVersion (?int $a_version) | |
| checkQuery (string $q) | |
Protected Member Functions inherited from ilDBUpdate | |
| checkQuery (string $q) | |
| initGlobalsRequiredForUpdateSteps (?ilCtrlStructureReader &$ilCtrlStructureReader, ?ilDBInterface &$ilDB) | |
| applyUpdateNr (int $nr, bool $custom_update=false) | |
| Apply a custom database update or a plugin update. More... | |
| setCurrentVersion (?int $a_version) | |
Protected Attributes | |
| const | PLUGIN_UPDATE_FILE = "/sql/dbupdate.php" |
| string | $error = '' |
Protected Attributes inherited from ilDBUpdate | |
| string | $updateMsg |
| Iterator | $ctrl_structure_iterator |
| string | $error |
| string | $PATH = "./" |
| array | $filecontent |
Private Member Functions | |
| readDBUpdateFile () | |
| readFileVersion () | |
| getTablePrefix () | |
| getDBUpdateScriptName () | |
Private Attributes | |
| ilPluginInfo | $plugin |
| string | $db_update_file |
| int | $current_version |
| int | $file_version = null |
Database Update class.
Definition at line 30 of file class.ilPluginDBUpdate.php.
| ilPluginDBUpdate::__construct | ( | \ilDBInterface | $db, |
| \ilPluginInfo | $plugin | ||
| ) |
constructor @noinspection MagicMethodsValidityInspection
Definition at line 46 of file class.ilPluginDBUpdate.php.
References $plugin, ilPluginInfo\getCurrentDBVersion(), getDBUpdateScriptName(), readDBUpdateFile(), and readFileVersion().
Here is the call graph for this function:| ilPluginDBUpdate::applyUpdate | ( | ) |
Apply update.
Definition at line 128 of file class.ilPluginDBUpdate.php.
References $current_version, $file_version, $ilDB, ilDBUpdate\applyUpdateNr(), error(), and ilDBUpdate\initGlobalsRequiredForUpdateSteps().
Here is the call graph for this function:
|
protected |
Reimplemented from ilDBUpdate.
Definition at line 101 of file class.ilPluginDBUpdate.php.
References $q, and getTablePrefix().
Here is the call graph for this function:| ilPluginDBUpdate::getCurrentVersion | ( | ) |
Definition at line 91 of file class.ilPluginDBUpdate.php.
References $current_version.
|
private |
Definition at line 119 of file class.ilPluginDBUpdate.php.
References PLUGIN_UPDATE_FILE.
Referenced by __construct().
Here is the caller graph for this function:
|
private |
Definition at line 112 of file class.ilPluginDBUpdate.php.
Referenced by checkQuery().
Here is the caller graph for this function:
|
private |
Definition at line 65 of file class.ilPluginDBUpdate.php.
References error().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 76 of file class.ilPluginDBUpdate.php.
References $version, and ILIAS\Repository\int().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Reimplemented from ilDBUpdate.
Definition at line 96 of file class.ilPluginDBUpdate.php.
|
private |
Definition at line 37 of file class.ilPluginDBUpdate.php.
Referenced by applyUpdate(), and getCurrentVersion().
|
private |
Definition at line 36 of file class.ilPluginDBUpdate.php.
|
protected |
Definition at line 40 of file class.ilPluginDBUpdate.php.
|
private |
Definition at line 38 of file class.ilPluginDBUpdate.php.
Referenced by applyUpdate().
|
private |
Definition at line 34 of file class.ilPluginDBUpdate.php.
Referenced by __construct().
|
protected |
Definition at line 32 of file class.ilPluginDBUpdate.php.
Referenced by getDBUpdateScriptName().