ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.AbandonAuthRichTextEditorDatabaseUpdateSteps.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 {
23  protected ilDBInterface $db;
24 
25  public function prepare(ilDBInterface $db): void
26  {
27  $this->db = $db;
28  }
29 
30  public function step_1(): void
31  {
32  if ($this->db->tableExists('settings')) {
33  $query = 'DELETE FROM settings WHERE module = ' . $this->db->quote('login_settings', 'text')
34  . ' AND ' . $this->db->like('keyword', ilDBConstants::T_TEXT, 'login_message_%');
35 
36  $this->db->manipulate($query);
37  }
38  }
39 }