ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Public Member Functions | |
getIdentifier () | |
isAvailable () | |
If this function returns false the setting will not be shown, even if it's PropertyAttributes would allow it to be. More... | |
getLabel (Language $lng) | |
getSettingsPage () | |
getSection () | |
getInput (FieldFactory $field_factory, Language $lng, Refinery $refinery, \ilSetting $settings, ?\ilObjUser $user=null) | |
getLegacyInput (Language $lng, \ilSetting $settings, ?\ilObjUser $user=null) | |
You don't need to add a post_var to the input as the User will handle this for you, thus you can also not rely on the post_var anywhere else, as it will be changed. More... | |
getDefaultValueForDisplay (Language $lng, \ilSetting $settings) | |
hasUserPersonalizedSetting (\ilSetting $settings, \ilObjUser $user) | |
persistUserInput (\ilObjUser $user, mixed $input) | |
retrieveValueFromUser (\ilObjUser $user) | |
isAvailable () | |
If this function returns false the setting will not be shown, even if it's PropertyAttributes would allow it to be. More... | |
getSettingsPage () | |
getDefaultValueForDisplay (Language $lng, \ilSetting $settings) | |
hasUserPersonalizedSetting (\ilSetting $settings, \ilObjUser $user) | |
getInput (FieldFactory $field_factory, Language $lng, Refinery $refinery, \ilSetting $settings, ?\ilObjUser $user=null) | |
getLegacyInput (Language $lng, \ilSetting $settings, ?\ilObjUser $user=null) | |
You don't need to add a post_var to the input as the User will handle this for you, thus you can also not rely on the post_var anywhere else, as it will be changed. More... | |
persistUserInput (\ilObjUser $user, mixed $input) | |
getIdentifier () | |
getLabel (Language $lng) | |
getSection () | |
retrieveValueFromUser (\ilObjUser $user) | |
Private Member Functions | |
buildValueForNotificationGroup (\ilSetting $settings, ?\ilObjUser $user) | |
updateChatServer (int $user_id, bool $osc_state) | |
Private Attributes | |
const string | KEY_ENABLE_BROWSER_NOTIFICATIONS = 'chat_osc_browser_notifications' |
Definition at line 31 of file AllowOnScreenChatConversations.php.
|
private |
Definition at line 178 of file AllowOnScreenChatConversations.php.
References ilObjUser\getPref().
ILIAS\Chatroom\UserSettings\AllowOnScreenChatConversations::getDefaultValueForDisplay | ( | Language | $lng, |
\ilSetting | $settings | ||
) |
Implements ILIAS\User\Settings\SettingDefinition.
Definition at line 117 of file AllowOnScreenChatConversations.php.
ILIAS\Chatroom\UserSettings\AllowOnScreenChatConversations::getIdentifier | ( | ) |
Implements ILIAS\User\Property.
Definition at line 35 of file AllowOnScreenChatConversations.php.
ILIAS\Chatroom\UserSettings\AllowOnScreenChatConversations::getInput | ( | FieldFactory | $field_factory, |
Language | $lng, | ||
Refinery | $refinery, | ||
\ilSetting | $settings, | ||
?\ilObjUser | $user = null |
||
) |
Implements ILIAS\User\Settings\SettingDefinition.
Definition at line 60 of file AllowOnScreenChatConversations.php.
References $lng, and ilSetting\get().
ILIAS\Chatroom\UserSettings\AllowOnScreenChatConversations::getLabel | ( | Language | $lng | ) |
Implements ILIAS\User\Property.
Definition at line 45 of file AllowOnScreenChatConversations.php.
References $lng.
ILIAS\Chatroom\UserSettings\AllowOnScreenChatConversations::getLegacyInput | ( | Language | $lng, |
\ilSetting | $settings, | ||
?\ilObjUser | $user = null |
||
) |
You don't need to add a post_var to the input as the User will handle this for you, thus you can also not rely on the post_var anywhere else, as it will be changed.
Implements ILIAS\User\Settings\SettingDefinition.
Definition at line 100 of file AllowOnScreenChatConversations.php.
ILIAS\Chatroom\UserSettings\AllowOnScreenChatConversations::getSection | ( | ) |
Implements ILIAS\User\Property.
Definition at line 55 of file AllowOnScreenChatConversations.php.
ILIAS\Chatroom\UserSettings\AllowOnScreenChatConversations::getSettingsPage | ( | ) |
Implements ILIAS\User\Settings\SettingDefinition.
Definition at line 50 of file AllowOnScreenChatConversations.php.
ILIAS\Chatroom\UserSettings\AllowOnScreenChatConversations::hasUserPersonalizedSetting | ( | \ilSetting | $settings, |
\ilObjUser | $user | ||
) |
Implements ILIAS\User\Settings\SettingDefinition.
Definition at line 124 of file AllowOnScreenChatConversations.php.
ILIAS\Chatroom\UserSettings\AllowOnScreenChatConversations::isAvailable | ( | ) |
If this function returns false
the setting will not be shown, even if it's PropertyAttributes
would allow it to be.
This is meant e.g. to check if the chat server is configured or the badges enabled. Settings that are not available will also not be available on the table to define their PropertyAttributes
Implements ILIAS\User\Settings\SettingDefinition.
Definition at line 40 of file AllowOnScreenChatConversations.php.
ILIAS\Chatroom\UserSettings\AllowOnScreenChatConversations::persistUserInput | ( | \ilObjUser | $user, |
mixed | $input | ||
) |
mixed | $input | Null will be handed in, if the user wants to use the system default. If you are able to set the preference on the user without saving it, you can rely on the User-object being saved after the call to this function. If your input has different structures depending on its provenience (KS-Input, Legacy-Input, ...), the function needs to be able to handle them all. |
Implements ILIAS\User\Settings\SettingDefinition.
Definition at line 132 of file AllowOnScreenChatConversations.php.
References ilObjUser\deletePref(), and ilObject\getId().
ILIAS\Chatroom\UserSettings\AllowOnScreenChatConversations::retrieveValueFromUser | ( | \ilObjUser | $user | ) |
Implements ILIAS\User\Property.
Definition at line 163 of file AllowOnScreenChatConversations.php.
References ilObjUser\getPref().
|
private |
Definition at line 198 of file AllowOnScreenChatConversations.php.
References $message, $user_id, and ilChatroomAdmin\getDefaultConfiguration().
|
private |
Definition at line 33 of file AllowOnScreenChatConversations.php.