Home
last modified time | relevance | path

Searched refs:getPreference (Results 1 – 25 of 194) sorted by relevance

12345678

/webtrees/resources/views/admin/
H A Dtags.phtml70 …_NPFX', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_NPF…
84 …_SPFX', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_SPF…
98 …_NSFX', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_NSF…
110 …_NICK', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_NIC…
124 …_FONE', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_FON…
138 …_ROMN', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_ROM…
152 …_NOTE', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_NOT…
166 …_SOUR', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_NAME_SOU…
200 …C_MAP', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_PLAC_MAP…
214 …_FONE', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HIDE_PLAC_FON…
[all …]
H A Dtrees-preferences.phtml61 value="<?= e($tree->getPreference('title')) ?>"
143 …:translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('GENERATE_UIDS…
161 …<option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('CONTACT_USER_ID') === $member…
181 …<option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('WEBMASTER_USER_ID') === $memb…
206 value="<?= e($tree->getPreference('META_TITLE')) ?>"
226 value="<?= e($tree->getPreference('META_DESCRIPTION')) ?>"
248 …axlength="255" name="MEDIA_DIRECTORY" type="text" value="<?= e($tree->getPreference('MEDIA_DIRECTO…
268 …('components/select', ['name' => 'MEDIA_UPLOAD', 'selected' => $tree->getPreference('MEDIA_UPLOAD'…
281 …nents/select', ['name' => 'SHOW_MEDIA_DOWNLOAD', 'selected' => $tree->getPreference('SHOW_MEDIA_DO…
296 …anslate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_HIGHLIGH…
[all …]
H A Dusers-edit.phtml101 …<input type="checkbox" name="verified" value="1" <?= $user->getPreference(UserInterface::PREF_IS_E…
105 …<input type="checkbox" name="approved" value="1" <?= $user->getPreference(UserInterface::PREF_IS_A…
130 …<?= view('components/select', ['name' => 'language', 'selected' => $user->getPreference(UserInterf…
140 …<?= view('components/select', ['name' => 'timezone', 'selected' => $user->getPreference(UserInterf…
155 …<input type="checkbox" name="auto_accept" value="1" <?= $user->getPreference(UserInterface::PREF_A…
173 …ckbox" id="visible-online" name="visible-online" value="1" <?= $user->getPreference(UserInterface:…
189 …=> 'contact-method', 'name' => 'contact-method', 'selected' => $user->getPreference(UserInterface:…
203 …<?= view('components/select', ['name' => 'theme', 'selected' => $user->getPreference(UserInterface…
213 …ment" name="comment" rows="4" dir="auto" maxlength="255"><?= e($user->getPreference(UserInterface:…
224 …input type="checkbox" id="admin" name="canadmin" value="1" <?= $user->getPreference(UserInterface:…
H A Dtrees-privacy.phtml41 …ts/select', ['name' => 'REQUIRE_AUTHENTICATION', 'selected' => $tree->getPreference('REQUIRE_AUTHE…
60 …mponents/select', ['name' => 'SHOW_DEAD_PEOPLE', 'selected' => $tree->getPreference('SHOW_DEAD_PEO…
74 …9999" name="MAX_ALIVE_AGE" required type="number" value="<?= e($tree->getPreference('MAX_ALIVE_AGE…
92 …mponents/select', ['name' => 'HIDE_LIVE_PEOPLE', 'selected' => $tree->getPreference('HIDE_LIVE_PEO…
109 …'<input type="text" name="KEEP_ALIVE_YEARS_BIRTH" value="' . $tree->getPreference('KEEP_ALIVE_YEAR…
110 …'<input type="text" name="KEEP_ALIVE_YEARS_DEATH" value="' . $tree->getPreference('KEEP_ALIVE_YEAR…
131 …ponents/select', ['name' => 'SHOW_LIVING_NAMES', 'selected' => $tree->getPreference('SHOW_LIVING_N…
150 …elect', ['name' => 'SHOW_PRIVATE_RELATIONSHIPS', 'selected' => $tree->getPreference('SHOW_PRIVATE_…
H A Dsite-registration.phtml29 …nts/select', ['name' => 'WELCOME_TEXT_AUTH_MODE', 'selected' => Site::getPreference('WELCOME_TEXT_…
41 …ME_TEXT_AUTH_MODE_4" rows="5" dir="auto" maxlength="2000"><?= e(Site::getPreference('WELCOME_TEXT_…
54 …::translate('no'), I18N::translate('yes')], 'selected' => (int) Site::getPreference('USE_REGISTRAT…
69 …::translate('no'), I18N::translate('yes')], 'selected' => (int) Site::getPreference('SHOW_REGISTER…
H A Dsite-preferences.phtml54 …<?= view('components/select', ['name' => 'TIMEZONE', 'selected' => Site::getPreference('TIMEZONE')…
68 …<?= view('components/select', ['name' => 'THEME_DIR', 'selected' => Site::getPreference('THEME_DIR…
84 …<option value="<?= $active_locale->languageTag() ?>" <?= Site::getPreference('LANGUAGE') === $acti…
102 …::translate('no'), I18N::translate('yes')], 'selected' => (int) Site::getPreference('ALLOW_CHANGE_…
/webtrees/app/Http/RequestHandlers/
H A DEmailPreferencesPage.php67 $SMTP_ACTIVE = Site::getPreference('SMTP_ACTIVE');
68 $SMTP_AUTH = Site::getPreference('SMTP_AUTH');
69 $SMTP_AUTH_USER = Site::getPreference('SMTP_AUTH_USER');
70 $SMTP_DISP_NAME = Site::getPreference('SMTP_DISP_NAME');
71 $SMTP_FROM_NAME = Site::getPreference('SMTP_FROM_NAME');
72 $SMTP_HELO = Site::getPreference('SMTP_HELO');
73 $SMTP_HOST = Site::getPreference('SMTP_HOST');
74 $SMTP_PORT = Site::getPreference('SMTP_PORT');
75 $SMTP_SSL = Site::getPreference('SMTP_SSL');
76 $DKIM_DOMAIN = Site::getPreference('DKIM_DOMAIN');
[all …]
H A DSiteTagsPage.php50 $custom_family_tags = explode(',', Site::getPreference('CUSTOM_FAMILY_TAGS'));
51 $custom_individual_tags = explode(',', Site::getPreference('CUSTOM_INDIVIDUAL_TAGS'));
64 $custom_gedcom_l_tags = (bool) Site::getPreference('CUSTOM_GEDCOM_L_TAGS');
67 $custom_fam_fact = (bool) Site::getPreference('CUSTOM_FAM_FACT');
68 $custom_fam_nchi = (bool) Site::getPreference('CUSTOM_FAM_NCHI');
69 $custom_resi_value = (bool) Site::getPreference('CUSTOM_RESI_VALUE');
70 $custom_time_tags = (bool) Site::getPreference('CUSTOM_TIME_TAGS');
H A DLoginPage.php70 $default = Site::getPreference('DEFAULT_GEDCOM');
80 switch (Site::getPreference('WELCOME_TEXT_AUTH_MODE')) {
92 $welcome = Site::getPreference('WELCOME_TEXT_AUTH_MODE_' . I18N::languageTag());
96 if (Site::getPreference('USE_REGISTRATION_MODULE') === '1') {
100 $can_register = Site::getPreference('USE_REGISTRATION_MODULE') === '1';
H A DLoginAction.php123 if ($user->getPreference(UserInterface::PREF_IS_EMAIL_VERIFIED) !== '1') {
128 if ($user->getPreference(UserInterface::PREF_IS_ACCOUNT_APPROVED) !== '1') {
137 Session::put('language', Auth::user()->getPreference(UserInterface::PREF_LANGUAGE));
138 Session::put('theme', Auth::user()->getPreference(UserInterface::PREF_THEME));
139 I18N::init(Auth::user()->getPreference(UserInterface::PREF_LANGUAGE));
/webtrees/app/Services/
H A DEmailService.php111 $dkim_domain = Site::getPreference('DKIM_DOMAIN');
112 $dkim_selector = Site::getPreference('DKIM_SELECTOR');
113 $dkim_key = Site::getPreference('DKIM_KEY');
137 switch (Site::getPreference('SMTP_ACTIVE')) {
147 $smtp_helo = Site::getPreference('SMTP_HELO');
148 $smtp_host = Site::getPreference('SMTP_HOST');
149 $smtp_port = (int) Site::getPreference('SMTP_PORT');
150 $smtp_auth = (bool) Site::getPreference('SMTP_AUTH');
151 $smtp_user = Site::getPreference('SMTP_AUTH_USER');
152 $smtp_pass = Site::getPreference('SMTP_AUTH_PASS');
[all …]
H A DMessageService.php76 $this->user_service->find((int) $tree->getPreference('CONTACT_USER_ID')),
77 $this->user_service->find((int) $tree->getPreference('WEBMASTER_USER_ID')),
101 I18N::init($recipient->getPreference(UserInterface::PREF_LANGUAGE));
154 return in_array($user->getPreference(UserInterface::PREF_CONTACT_METHOD), [
171 return in_array($user->getPreference(UserInterface::PREF_CONTACT_METHOD), [
194 …>getPreference(UserInterface::PREF_IS_ACCOUNT_APPROVED) === '1' && $user->getPreference(UserInterf…
199 … $session_time = (int) $user->getPreference(UserInterface::PREF_TIMESTAMP_ACTIVE);
H A DUserService.php140 $registered_at1 = (int) $user1->getPreference(UserInterface::PREF_TIMESTAMP_REGISTERED);
141 $logged_in_at1 = (int) $user1->getPreference(UserInterface::PREF_TIMESTAMP_ACTIVE);
142 $registered_at2 = (int) $user2->getPreference(UserInterface::PREF_TIMESTAMP_REGISTERED);
143 $logged_in_at2 = (int) $user2->getPreference(UserInterface::PREF_TIMESTAMP_ACTIVE);
159 $registered_at = (int) $user->getPreference(UserInterface::PREF_TIMESTAMP_REGISTERED);
160 $logged_in_at = (int) $user->getPreference(UserInterface::PREF_TIMESTAMP_ACTIVE);
377 …if ($contact_user->getPreference(UserInterface::PREF_CONTACT_METHOD) === MessageService::CONTACT_M…
/webtrees/app/Cli/Commands/
H A DUserList.php54 … $registered = (int) $user->getPreference(setting_name: UserInterface::PREF_TIMESTAMP_REGISTERED);
55 … $last_login = (int) $user->getPreference(setting_name: UserInterface::PREF_TIMESTAMP_ACTIVE);
75 … $user->getPreference(setting_name: UserInterface::PREF_IS_ACCOUNT_APPROVED) ? 'Yes' : 'No',
76 … $user->getPreference(setting_name: UserInterface::PREF_IS_EMAIL_VERIFIED) ? 'Yes' : 'No',
77 $user->getPreference(setting_name: UserInterface::PREF_LANGUAGE),
78 $user->getPreference(setting_name: UserInterface::PREF_TIME_ZONE),
79 $user->getPreference(setting_name: UserInterface::PREF_CONTACT_METHOD),
/webtrees/app/
H A DTree.php174 if ($setting_value !== $this->getPreference($setting_name)) {
198 public function getPreference(string $setting_name, string|null $default = null): string function in Fisharebest\\Webtrees\\Tree
382 if (Auth::user()->getPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS) === '1') {
427 if (Auth::user()->getPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS) === '1') {
472 if (Auth::user()->getPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS) === '1') {
517 if (Auth::user()->getPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS) === '1') {
561 if ($individual === null && $this->getPreference('PEDIGREE_ROOT_ID') !== '') {
562 …$individual = Registry::individualFactory()->make($this->getPreference('PEDIGREE_ROOT_ID'), $this);
588 return Registry::filesystem()->data($this->getPreference('MEDIA_DIRECTORY'));
H A DIndividual.php85 …return (int) $this->tree->getPreference('SHOW_LIVING_NAMES') >= $access_level || $this->canShow($a…
98 … if ((int) $this->tree->getPreference('SHOW_DEAD_PEOPLE') >= $access_level && $this->isDead()) {
100 $KEEP_ALIVE_YEARS_BIRTH = (int) $this->tree->getPreference('KEEP_ALIVE_YEARS_BIRTH');
111 $KEEP_ALIVE_YEARS_DEATH = (int) $this->tree->getPreference('KEEP_ALIVE_YEARS_DEATH');
222 $MAX_ALIVE_AGE = (int) $this->tree->getPreference('MAX_ALIVE_AGE');
350 if ($this->tree->getPreference('USE_SILHOUETTE') === '1') {
547 … $min[] = $tmp->minimumJulianDay() - 365 * (int) $this->tree->getPreference('MAX_ALIVE_AGE');
632 $max_alive_age = (int) $this->tree->getPreference('MAX_ALIVE_AGE');
670 if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') {
736 if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') {
/webtrees/tests/app/
H A DSiteTest.php33 self::assertSame('', Site::getPreference('no-such-setting'));
34 self::assertSame('UTC', Site::getPreference('TIMEZONE'));
41 self::assertSame('foo', Site::getPreference('setting'));
51 self::assertSame($expected, Site::getPreference('setting'));
H A DNoReplyUserTest.php45 self::assertSame('', $user->getPreference('foo'));
46 self::assertSame('', $user->getPreference('foo'));
47 self::assertSame('bar', $user->getPreference('foo', 'bar'));
52 self::assertSame('', $user->getPreference('foo'));
H A DSiteUserTest.php47 self::assertSame('', $user->getPreference('foo'));
48 self::assertSame('', $user->getPreference('foo'));
49 self::assertSame('bar', $user->getPreference('foo', 'bar'));
54 self::assertSame('', $user->getPreference('foo'));
H A DGuestUserTest.php54 self::assertSame('', $user->getPreference('foo'));
55 self::assertSame('', $user->getPreference('foo'));
56 self::assertSame('bar', $user->getPreference('foo', 'bar'));
61 self::assertSame('bar', $user->getPreference('foo'));
H A DDefaultUserTest.php59 self::assertSame('', $user->getPreference('foo'));
60 self::assertSame('', $user->getPreference('foo'));
61 self::assertSame('bar', $user->getPreference('foo', 'bar'));
66 self::assertSame('bar', $user->getPreference('foo'));
H A DTreeUserTest.php53 self::assertSame('', $user->getPreference('foo'));
54 self::assertSame('', $user->getPreference('foo'));
55 self::assertSame('bar', $user->getPreference('foo', 'bar'));
60 self::assertSame('', $user->getPreference('foo'));
/webtrees/app/Module/
H A DCustomCssJsModule.php65 'head' => $this->getPreference('head'),
66 'body' => $this->getPreference('body'),
110 return $this->getPreference('body');
121 return $this->getPreference('head');
H A DGeonamesAutocomplete.php90 $default = Site::getPreference('geonames');
91 $username = $this->getPreference('username', $default);
123 $default = Site::getPreference('geonames');
124 $username = $this->getPreference('username', $default);
/webtrees/tests/app/Services/
H A DRateLimitServiceTest.php54 $history = $user->getPreference('rate-limit');
58 $history = $user->getPreference('rate-limit');
62 $history = $user->getPreference('rate-limit');
76 $history = $user->getPreference('rate-limit');

12345678