| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
Database Update class. More...
 Inheritance diagram for ilDBUpdate:
 Collaboration diagram for ilDBUpdate:Public Member Functions | |
| __construct (ilDBInterface $a_db_handler, ilIniFile $client_ini=null) | |
| getCustomUpdatesCurrentVersion () | |
| getCustomUpdatesFileVersion () | |
| applyCustomUpdates () | |
Protected Member Functions | |
| 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 | |
| string | $updateMsg | 
| ilDBInterface | $db | 
| ilIniFile | $client_ini = null | 
| Iterator | $ctrl_structure_iterator | 
| string | $error | 
| string | $PATH = './' | 
| array | $filecontent | 
Private Member Functions | |
| execQuery (ilDBInterface $db, string $str) | |
| setCustomUpdatesCurrentVersion (?int $a_version) | |
| readCustomUpdatesFileVersion (array $a_file_content) | |
| readCustomUpdatesInfo (bool $a_force=false) | |
Private Attributes | |
| int | $custom_updates_current_version = 0 | 
| int | $custom_updates_file_version = null | 
| bool | $custom_updates_info_read = null | 
| ilSetting | $custom_updates_setting | 
| array | $custom_updates_content = [] | 
| ilDBUpdate::__construct | ( | ilDBInterface | $a_db_handler, | 
| ilIniFile | $client_ini = null  | 
        ||
| ) | 
Definition at line 46 of file class.ilDBUpdate.php.
References $client_ini.
| ilDBUpdate::applyCustomUpdates | ( | ) | 
Definition at line 268 of file class.ilDBUpdate.php.
References $custom_updates_content, $error, $ilDB, applyUpdateNr(), getCustomUpdatesCurrentVersion(), getCustomUpdatesFileVersion(), initGlobalsRequiredForUpdateSteps(), and readCustomUpdatesInfo().
 Here is the call graph for this function:
      
  | 
  protected | 
Apply a custom database update or a plugin update.
| int | $nr | number what patch to apply (Reference: Patch for https://mantis.ilias.de/view.php?id=28550) private | 
Definition at line 129 of file class.ilDBUpdate.php.
References $error, $ilDB, execQuery(), initGlobalsRequiredForUpdateSteps(), setCurrentVersion(), and setCustomUpdatesCurrentVersion().
Referenced by applyCustomUpdates(), and ilPluginDBUpdate\applyUpdate().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 91 of file class.ilDBUpdate.php.
Referenced by execQuery().
 Here is the caller graph for this function:
      
  | 
  private | 
PhpUndefinedVariableInspection
PhpUndefinedVariableInspection
Definition at line 56 of file class.ilDBUpdate.php.
References $check, $q, checkQuery(), and ilDBInterface\query().
Referenced by applyUpdateNr().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBUpdate::getCustomUpdatesCurrentVersion | ( | ) | 
Definition at line 212 of file class.ilDBUpdate.php.
References $custom_updates_current_version, and readCustomUpdatesInfo().
Referenced by applyCustomUpdates().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilDBUpdate::getCustomUpdatesFileVersion | ( | ) | 
Definition at line 230 of file class.ilDBUpdate.php.
References $custom_updates_file_version, and readCustomUpdatesInfo().
Referenced by applyCustomUpdates().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 96 of file class.ilDBUpdate.php.
References $DIC, and $GLOBALS.
Referenced by applyCustomUpdates(), ilPluginDBUpdate\applyUpdate(), and applyUpdateNr().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 237 of file class.ilDBUpdate.php.
References $version.
Referenced by readCustomUpdatesInfo().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 252 of file class.ilDBUpdate.php.
References ILIAS\Repository\int(), and readCustomUpdatesFileVersion().
Referenced by applyCustomUpdates(), getCustomUpdatesCurrentVersion(), getCustomUpdatesFileVersion(), and setCustomUpdatesCurrentVersion().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 226 of file class.ilDBUpdate.php.
Referenced by applyUpdateNr().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 219 of file class.ilDBUpdate.php.
References readCustomUpdatesInfo().
Referenced by applyUpdateNr().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 32 of file class.ilDBUpdate.php.
Referenced by __construct().
      
  | 
  protected | 
Definition at line 33 of file class.ilDBUpdate.php.
      
  | 
  private | 
Definition at line 44 of file class.ilDBUpdate.php.
Referenced by applyCustomUpdates().
      
  | 
  private | 
Definition at line 40 of file class.ilDBUpdate.php.
Referenced by getCustomUpdatesCurrentVersion().
      
  | 
  private | 
Definition at line 41 of file class.ilDBUpdate.php.
Referenced by getCustomUpdatesFileVersion().
      
  | 
  private | 
Definition at line 42 of file class.ilDBUpdate.php.
      
  | 
  private | 
Definition at line 43 of file class.ilDBUpdate.php.
      
  | 
  protected | 
Definition at line 31 of file class.ilDBUpdate.php.
Referenced by ilPluginDBUpdate\__construct().
      
  | 
  protected | 
Definition at line 35 of file class.ilDBUpdate.php.
Referenced by applyCustomUpdates(), and applyUpdateNr().
      
  | 
  protected | 
Definition at line 38 of file class.ilDBUpdate.php.
      
  | 
  protected | 
Definition at line 36 of file class.ilDBUpdate.php.
      
  | 
  protected | 
Definition at line 30 of file class.ilDBUpdate.php.