ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilMailGlobalAddressSettingsChangedCommand.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 {
23  public function __construct(private readonly ilDBInterface $db, private readonly int $option)
24  {
25  }
26 
27  public function execute(): void
28  {
29  $this->db->manipulateF(
30  "UPDATE settings SET value = %s WHERE module = 'common' AND keyword = 'mail_address_option'",
31  ['integer'],
32  [$this->option]
33  );
34  $this->db->manipulateF(
35  'UPDATE mail_options SET mail_address_option = %s',
36  ['integer'],
37  [$this->option]
38  );
39  }
40 }
__construct(private readonly ilDBInterface $db, private readonly int $option)