ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilMailGlobalAddressSettingsChangedCommand Class Reference

Class ilMailGlobalAddressSettingsChangedCommand. More...

+ Collaboration diagram for ilMailGlobalAddressSettingsChangedCommand:

Public Member Functions

 __construct (private readonly ilDBInterface $db, private readonly int $option)
 
 execute ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMailGlobalAddressSettingsChangedCommand::__construct ( private readonly ilDBInterface  $db,
private readonly int  $option 
)

Definition at line 27 of file class.ilMailGlobalAddressSettingsChangedCommand.php.

28  {
29  }

Member Function Documentation

◆ execute()

ilMailGlobalAddressSettingsChangedCommand::execute ( )

Definition at line 31 of file class.ilMailGlobalAddressSettingsChangedCommand.php.

Referenced by ilMailAppEventListener\handle().

31  : void
32  {
33  $this->db->manipulateF(
34  "UPDATE settings SET value = %s WHERE module = 'common' AND keyword = 'mail_address_option'",
35  ["integer"],
36  [$this->option]
37  );
38  $this->db->manipulateF(
39  "UPDATE mail_options SET mail_address_option = %s",
40  ["integer"],
41  [$this->option]
42  );
43  }
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: