19declare(strict_types=1);
35 return 'allow_contact_request';
40 return \ilBuddySystem::getInstance()->isEnabled();
45 return $lng->txt(
'buddy_allow_to_contact_me');
50 return AvailablePages::PrivacySettings;
55 return AvailableSections::Main;
59 FieldFactory $field_factory,
65 $lng->loadLanguageModule(
'buddysystem');
66 return $field_factory->checkbox(
67 $lng->txt(
'buddy_allow_to_contact_me'),
68 $lng->txt(
'buddy_allow_to_contact_me_info')
71 ? $user->getPref(
'bs_allow_to_contact_me') ===
'y'
72 : $settings->
get(
'bs_allow_to_contact_me') ===
'y'
81 $lng->loadLanguageModule(
'buddysystem');
82 $input = new \ilCheckboxInputGUI(
$lng->txt(
'buddy_allow_to_contact_me'));
85 ? $user->getPref(
'bs_allow_to_contact_me') ===
'y'
86 : $settings->
get(
'bs_allow_to_contact_me') ===
'y'
95 return $settings->
get(
'bs_allow_to_contact_me') ===
'y'
96 ?
$lng->txt(
'buddy_allow_to_contact_me_yes')
97 :
$lng->txt(
'buddy_allow_to_contact_me_no');
104 return $this->retrieveValueFromUser($user) !== $settings->
get(
'bs_allow_to_contact_me');
111 if ($input === null) {
115 $user->
setPref(
'bs_allow_to_contact_me', $input ?
'y' :
'n');
121 $value = $user->
getPref(
'bs_allow_to_contact_me');
122 return $value !==
null ? $value ===
'y' :
null;
setPref(string $a_keyword, ?string $a_value)
getPref(string $a_keyword)
deletePref(string $keyword)
get(string $a_keyword, ?string $a_default_value=null)
get setting
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists('../ilias.ini.php'))