Class ilOnScreenChatAppEventListener.
More...
|
static | handleEvent ($a_component, $a_event, $a_parameter) |
| Handle an event in a listener.- Parameters
-
string | $a_component | component, e.g. "Modules/Forum" or "Services/User" |
string | $a_event | event e.g. "createUser", "updateUser", "deleteUser", ... |
array | $a_parameter | parameter array (assoc), array("name" => ..., "phone_office" => ...) |
More...
|
|
◆ handleEvent()
static ilOnScreenChatAppEventListener::handleEvent |
( |
|
$a_component, |
|
|
|
$a_event, |
|
|
|
$a_parameter |
|
) |
| |
|
static |
Handle an event in a listener.
- Parameters
-
string | $a_component | component, e.g. "Modules/Forum" or "Services/User" |
string | $a_event | event e.g. "createUser", "updateUser", "deleteUser", ... |
array | $a_parameter | parameter array (assoc), array("name" => ..., "phone_office" => ...) |
Implements ilAppEventListener.
Definition at line 14 of file class.ilOnScreenChatAppEventListener.php.
References $GLOBALS, $message, ilChatroomAdmin\getDefaultConfiguration(), and ilUtil\yn2tf().
16 switch ($a_component) {
17 case 'Modules/Chatroom':
19 case 'chatSettingsChanged':
20 $GLOBALS[
'ilLog']->info(
"Received event: chatSettingsChanged");
23 $a_parameter[
'user']->getId() => [
24 'acceptsMessages' => (bool)
ilUtil::yn2tf($a_parameter[
'user']->getPref(
'chat_osc_accept_msg')),
28 require_once
'Modules/Chatroom/classes/class.ilChatroomServerConnector.php';
29 require_once
'Modules/Chatroom/classes/class.ilChatroomAdmin.php';
33 $connector->sendUserConfigChange(json_encode(
$message));
static getDefaultConfiguration()
Instantiates and returns ilChatroomAdmin object using instance_id and settings from settingsTable...
catch(Exception $e) $message
Class ilChatroomServerConnector.
static yn2tf($a_yn)
convert "y"/"n" to true/false
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
The documentation for this class was generated from the following file: