Home
last modified time | relevance | path

Searched refs:setPreference (Results 1 – 25 of 85) sorted by relevance

1234

/webtrees/app/Http/RequestHandlers/
H A DTreePreferencesAction.php97 $tree->setPreference('CALENDAR_FORMAT', $calendar_format);
98 $tree->setPreference('CHART_BOX_TAGS', implode(',', $chart_box_tags));
99 $tree->setPreference('CONTACT_USER_ID', $contact_user_id);
100 $tree->setPreference('EXPAND_NOTES', (string) $expand_notes);
101 $tree->setPreference('EXPAND_SOURCES', (string) $expand_sources);
102 $tree->setPreference('FAM_FACTS_QUICK', implode(',', $fam_facts_quick));
103 $tree->setPreference('FORMAT_TEXT', $format_text);
104 $tree->setPreference('GENERATE_UIDS', (string) $generate_uuids);
105 $tree->setPreference('HIDE_GEDCOM_ERRORS', (string) $hide_gedcom_errors);
106 $tree->setPreference('INDI_FACTS_QUICK', implode(',', $indi_facts_quick));
[all …]
H A DEmailPreferencesAction.php74 Site::setPreference('SMTP_ACTIVE', $active);
75 Site::setPreference('SMTP_DISP_NAME', $disp_name);
76 Site::setPreference('SMTP_FROM_NAME', $from_name);
77 Site::setPreference('SMTP_HOST', $host);
78 Site::setPreference('SMTP_PORT', $port);
79 Site::setPreference('SMTP_AUTH', $auth);
80 Site::setPreference('SMTP_AUTH_USER', $auth_user);
81 Site::setPreference('SMTP_SSL', $ssl);
82 Site::setPreference('SMTP_HELO', $helo);
83 Site::setPreference('DKIM_DOMAIN', $dkim_domain);
[all …]
H A DRegisterAction.php129 $user->setPreference(UserInterface::PREF_LANGUAGE, I18N::languageTag());
130 $user->setPreference(UserInterface::PREF_TIME_ZONE, Site::getPreference('TIMEZONE'));
131 $user->setPreference(UserInterface::PREF_IS_EMAIL_VERIFIED, '');
132 $user->setPreference(UserInterface::PREF_IS_ACCOUNT_APPROVED, '');
133 $user->setPreference(UserInterface::PREF_TIMESTAMP_REGISTERED, date('U'));
134 $user->setPreference(UserInterface::PREF_VERIFICATION_TOKEN, $token);
135 …$user->setPreference(UserInterface::PREF_CONTACT_METHOD, MessageService::CONTACT_METHOD_INTERNAL_A…
136 $user->setPreference(UserInterface::PREF_NEW_ACCOUNT_COMMENT, $comments);
137 $user->setPreference(UserInterface::PREF_IS_VISIBLE_ONLINE, '1');
138 $user->setPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS, '');
[all …]
H A DUserEditAction.php113 $edit_user->setPreference(UserInterface::PREF_THEME, $theme);
114 $edit_user->setPreference(UserInterface::PREF_LANGUAGE, $language);
115 $edit_user->setPreference(UserInterface::PREF_TIME_ZONE, $timezone);
116 $edit_user->setPreference(UserInterface::PREF_CONTACT_METHOD, $contact_method);
117 $edit_user->setPreference(UserInterface::PREF_NEW_ACCOUNT_COMMENT, $comment);
118 $edit_user->setPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS, (string) $auto_accept);
119 $edit_user->setPreference(UserInterface::PREF_IS_VISIBLE_ONLINE, (string) $visible_online);
120 $edit_user->setPreference(UserInterface::PREF_IS_EMAIL_VERIFIED, (string) $verified);
121 $edit_user->setPreference(UserInterface::PREF_IS_ACCOUNT_APPROVED, (string) $approved);
129 $edit_user->setPreference(UserInterface::PREF_IS_ADMINISTRATOR, $canadmin ? '1' : '');
H A DSiteTagsAction.php50 Site::setPreference('HIDE_' . $setting, (string) $value);
61 Site::setPreference('CUSTOM_FAMILY_TAGS', implode(',', $custom_family_tags));
62 Site::setPreference('CUSTOM_INDIVIDUAL_TAGS', implode(',', $custom_individual_tags));
63 Site::setPreference('CUSTOM_GEDCOM_L_TAGS', (string) $custom_gedcom_l_tags);
64 Site::setPreference('CUSTOM_FAM_FACT', (string) $custom_fam_fact);
65 Site::setPreference('CUSTOM_FAM_NCHI', (string) $custom_fam_nchi);
66 Site::setPreference('CUSTOM_RESI_VALUE', (string) $custom_resi_value);
67 Site::setPreference('CUSTOM_TIME_TAGS', (string) $custom_time_tags);
H A DTreePrivacyAction.php117 $tree->setPreference('HIDE_LIVE_PEOPLE', $hide_live_people);
118 $tree->setPreference('KEEP_ALIVE_YEARS_BIRTH', (string) $keep_alive_years_birth);
119 $tree->setPreference('KEEP_ALIVE_YEARS_DEATH', (string) $keep_alive_years_death);
120 $tree->setPreference('MAX_ALIVE_AGE', (string) $max_alive_age);
121 $tree->setPreference('REQUIRE_AUTHENTICATION', $require_authentication);
122 $tree->setPreference('SHOW_DEAD_PEOPLE', $show_dead_people);
123 $tree->setPreference('SHOW_LIVING_NAMES', $show_living_names);
124 $tree->setPreference('SHOW_PRIVATE_RELATIONSHIPS', $show_private_relationships);
H A DUserAddAction.php86 $new_user->setPreference(UserInterface::PREF_IS_EMAIL_VERIFIED, '1');
87 $new_user->setPreference(UserInterface::PREF_IS_ACCOUNT_APPROVED, '1');
88 $new_user->setPreference(UserInterface::PREF_LANGUAGE, I18N::languageTag());
89 $new_user->setPreference(UserInterface::PREF_TIME_ZONE, Site::getPreference('TIMEZONE'));
90 $new_user->setPreference(UserInterface::PREF_TIMESTAMP_REGISTERED, date('U'));
91 $new_user->setPreference(UserInterface::PREF_TIMESTAMP_ACTIVE, '0');
H A DSitePreferencesAction.php59 Site::setPreference('INDEX_DIRECTORY', $index_directory);
67 Site::setPreference('ALLOW_CHANGE_GEDCOM', (string) $allow_change_gedcom);
68 Site::setPreference('LANGUAGE', $language);
69 Site::setPreference('THEME_DIR', $theme_dir);
70 Site::setPreference('TIMEZONE', $timezone);
H A DSiteRegistrationAction.php50 Site::setPreference('WELCOME_TEXT_AUTH_MODE', $mode);
51 Site::setPreference('WELCOME_TEXT_AUTH_MODE_' . I18N::languageTag(), $text);
52 Site::setPreference('USE_REGISTRATION_MODULE', (string) $allow_registration);
53 Site::setPreference('SHOW_REGISTER_CAUTION', (string) $show_caution);
H A DAccountUpdate.php98 $user->setPreference(UserInterface::PREF_CONTACT_METHOD, $contact_method);
99 $user->setPreference(UserInterface::PREF_LANGUAGE, $language);
100 $user->setPreference(UserInterface::PREF_TIME_ZONE, $time_zone);
101 $user->setPreference(UserInterface::PREF_IS_VISIBLE_ONLINE, (string) $visible_online);
H A DSetupWizard.php409 $admin->setPreference(UserInterface::PREF_LANGUAGE, $data['lang']);
410 $admin->setPreference(UserInterface::PREF_IS_VISIBLE_ONLINE, '1');
415 $admin->setPreference(UserInterface::PREF_IS_ADMINISTRATOR, '1');
416 $admin->setPreference(UserInterface::PREF_IS_EMAIL_VERIFIED, '1');
417 $admin->setPreference(UserInterface::PREF_IS_ACCOUNT_APPROVED, '1');
H A DVerifyEmail.php115 $user->setPreference(UserInterface::PREF_IS_EMAIL_VERIFIED, '1');
116 $user->setPreference(UserInterface::PREF_TIMESTAMP_REGISTERED, date('U'));
117 $user->setPreference(UserInterface::PREF_VERIFICATION_TOKEN, '');
H A DImportGedcomAction.php79 $tree->setPreference('keep_media', $keep_media ? '1' : '0');
80 $tree->setPreference('WORD_WRAPPED_NOTES', $word_wrapped_notes ? '1' : '0');
81 $tree->setPreference('GEDCOM_MEDIA_PATH', $gedcom_media_path);
H A DPasswordResetAction.php64 $user->setPreference('password-token', '');
65 $user->setPreference('password-token-expire', '');
/webtrees/tests/app/
H A DTreeTest.php73 $tree->setPreference('foo', 'bar');
103 $user->setPreference(UserInterface::PREF_IS_ADMINISTRATOR, '1');
116 $user->setPreference(UserInterface::PREF_IS_ADMINISTRATOR, '1');
122 $user->setPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS, '1');
136 $user->setPreference(UserInterface::PREF_IS_ADMINISTRATOR, '1');
149 $user->setPreference(UserInterface::PREF_IS_ADMINISTRATOR, '1');
155 $user->setPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS, '1');
169 $user->setPreference(UserInterface::PREF_IS_ADMINISTRATOR, '1');
182 $user->setPreference(UserInterface::PREF_IS_ADMINISTRATOR, '1');
188 $user->setPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS, '1');
[all …]
H A DSiteUserTest.php33 Site::setPreference('SMTP_FROM_NAME', 'email@example.com');
34 Site::setPreference('SMTP_DISP_NAME', 'My site');
52 $user->setPreference('foo', 'bar');
H A DSiteTest.php39 Site::setPreference('setting', 'foo');
49 Site::setPreference('setting', $too_long);
/webtrees/app/Services/
H A DTreeService.php184 $tree->setPreference('imported', '1');
185 $tree->setPreference('title', $title);
209 $tree->setPreference('REQUIRE_AUTHENTICATION', '');
210 $tree->setPreference('CONTACT_USER_ID', (string) Auth::id());
211 $tree->setPreference('WEBMASTER_USER_ID', (string) Auth::id());
212 … $tree->setPreference('LANGUAGE', I18N::languageTag()); // Default to the current admin’s language
213 …$tree->setPreference('SURNAME_TRADITION', self::DEFAULT_SURNAME_TRADITIONS[I18N::languageTag()] ??…
247 $tree->setPreference('gedcom_filename', $filename);
248 $tree->setPreference('imported', '0');
286 Site::setPreference('DEFAULT_GEDCOM', '');
H A DUpgradeService.php341 Site::setPreference('LATEST_WT_VERSION_TIMESTAMP', (string) $current_timestamp);
353 Site::setPreference('LATEST_WT_VERSION', $response->getBody()->getContents());
354 Site::setPreference('LATEST_WT_VERSION_ERROR', '');
356 … Site::setPreference('LATEST_WT_VERSION_ERROR', 'HTTP' . $response->getStatusCode());
361 Site::setPreference('LATEST_WT_VERSION_ERROR', $ex->getMessage());
379 Site::setPreference('SITE_UUID', $site_uuid);
/webtrees/tests/app/Services/
H A DUserServiceTest.php144 $admin->setPreference(UserInterface::PREF_IS_ADMINISTRATOR, '1');
200 $user1->setPreference(UserInterface::PREF_IS_EMAIL_VERIFIED, '');
201 $user1->setPreference(UserInterface::PREF_IS_ACCOUNT_APPROVED, '');
202 $user2->setPreference(UserInterface::PREF_IS_EMAIL_VERIFIED, '');
203 $user2->setPreference(UserInterface::PREF_IS_ACCOUNT_APPROVED, '1');
204 $user3->setPreference(UserInterface::PREF_IS_EMAIL_VERIFIED, '1');
205 $user3->setPreference(UserInterface::PREF_IS_ACCOUNT_APPROVED, '');
206 $user4->setPreference(UserInterface::PREF_IS_EMAIL_VERIFIED, '1');
207 $user4->setPreference(UserInterface::PREF_IS_ACCOUNT_APPROVED, '1');
H A DEmailServiceTest.php51 Site::setPreference('SMTP_ACTIVE', 'internal');
55 Site::setPreference('DKIM_DOMAIN', 'example.com');
56 Site::setPreference('DKIM_SELECTOR', 'sel');
57 Site::setPreference('DKIM_KEY', '-----BEGIN RSA PRIVATE KEY-----
H A DRateLimitServiceTest.php73 $user->setPreference('rate-limit', $history);
87 $user->setPreference('rate-limit', $history);
/webtrees/app/Cli/Commands/
H A DUserCreate.php115 $user->setPreference(setting_name: UserInterface::PREF_TIME_ZONE, setting_value: $timezone);
116 $user->setPreference(setting_name: UserInterface::PREF_LANGUAGE, setting_value: $language);
117 … $user->setPreference(setting_name: UserInterface::PREF_IS_ACCOUNT_APPROVED, setting_value: '1');
118 … $user->setPreference(setting_name: UserInterface::PREF_IS_EMAIL_VERIFIED, setting_value: '1');
119 …$user->setPreference(setting_name: UserInterface::PREF_CONTACT_METHOD, setting_value: 'messaging');
123 … $user->setPreference(setting_name: UserInterface::PREF_IS_ADMINISTRATOR, setting_value: '1');
/webtrees/app/Module/
H A DCustomCssJsModule.php93 $this->setPreference('body', $body);
94 $this->setPreference('head', $head);
H A DModuleAnalyticsTrait.php62 abstract public function setPreference(string $setting_name, string $setting_value): void; function
161 $this->setPreference($parameter, $new_value);

1234