ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ilMailGlobalAddressSettingsChangedCommand Class Reference
+ 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 23 of file class.ilMailGlobalAddressSettingsChangedCommand.php.

24  {
25  }

Member Function Documentation

◆ execute()

ilMailGlobalAddressSettingsChangedCommand::execute ( )

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

Referenced by ilMailAppEventListener\handle().

27  : 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  }
+ Here is the caller graph for this function:

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