Home
last modified time | relevance | path

Searched refs:setting_name (Results 1 – 15 of 15) sorted by relevance

/webtrees/app/
H A DSite.php109 * @param string $setting_name
114 public static function setPreference(string $setting_name, string $setting_value): void argument
119 if (self::getPreference($setting_name) !== $setting_value) {
121 'setting_name' => $setting_name,
126 self::$preferences[$setting_name] = $setting_value;
128 if (in_array($setting_name, self::SENSITIVE_PREFERENCES, true)) {
132 if (!in_array($setting_name, self::UNIMPORTANT_PREFERENCES, true)) {
133 …Log::addConfigurationLog('Site preference "' . $setting_name . '" set to "' . $setting_value . '"'…
141 * @param string $setting_name
145 public static function getPreference(string $setting_name): string argument
[all …]
H A DTree.php167 * @param string $setting_name
172 public function setPreference(string $setting_name, string $setting_value): Tree argument
174 if ($setting_value !== $this->getPreference($setting_name)) {
177 'setting_name' => $setting_name,
182 $this->preferences[$setting_name] = $setting_value;
184 …Log::addConfigurationLog('Tree preference "' . $setting_name . '" set to "' . $setting_value . '"'…
193 * @param string $setting_name
198 public function getPreference(string $setting_name, string|null $default = null): string argument
207 …return $this->preferences[$setting_name] ?? $default ?? self::DEFAULT_PREFERENCES[$setting_name] ?…
264 * @param string $setting_name
[all …]
H A DUser.php173 * @param string $setting_name
178 public function getPreference(string $setting_name, string $default = ''): string argument
180 return $this->preferences[$setting_name] ?? $default;
186 * @param string $setting_name
191 public function setPreference(string $setting_name, string $setting_value): void argument
193 if ($this->getPreference($setting_name) !== $setting_value) {
196 'setting_name' => $setting_name,
201 $this->preferences[$setting_name] = $setting_value;
H A DGuestUser.php86 * @param string $setting_name
91 public function getPreference(string $setting_name, string $default = ''): string argument
93 $preference = Session::get('_GUEST_' . $setting_name);
99 * @param string $setting_name
104 public function setPreference(string $setting_name, string $setting_value): void argument
106 Session::put('_GUEST_' . $setting_name, $setting_value);
H A DSiteUser.php73 * @param string $setting_name
78 public function getPreference(string $setting_name, string $default = ''): string argument
84 * @param string $setting_name
89 public function setPreference(string $setting_name, string $setting_value): void argument
H A DNoReplyUser.php72 * @param string $setting_name
77 public function getPreference(string $setting_name, string $default = ''): string argument
83 * @param string $setting_name
88 public function setPreference(string $setting_name, string $setting_value): void argument
H A DTreeUser.php72 * @param string $setting_name
77 public function getPreference(string $setting_name, string $default = ''): string argument
103 * @param string $setting_name
108 public function setPreference(string $setting_name, string $setting_value): void argument
/webtrees/app/Module/
H A DAbstractModule.php75 * @param string $setting_name
80 …final protected function getBlockSetting(int $block_id, string $setting_name, string $default = ''… argument
88 return $settings[$setting_name] ?? $default;
95 * @param string $setting_name
100 …final protected function setBlockSetting(int $block_id, string $setting_name, string $setting_valu… argument
104 'setting_name' => $setting_name,
171 * @param string $setting_name
176 final public function getPreference(string $setting_name, string $default = ''): string argument
180 ->where('setting_name', '=', $setting_name)
190 * @param string $setting_name
[all …]
H A DModuleInterface.php97 * @param string $setting_name
102 public function getPreference(string $setting_name, string $default = ''): string; argument
110 * @param string $setting_name
115 public function setPreference(string $setting_name, string $setting_value): void; argument
H A DModuleAnalyticsTrait.php57 * @param string $setting_name
62 abstract public function setPreference(string $setting_name, string $setting_value): void; argument
/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),
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');
H A DTreeList.php55 $tree->getPreference(setting_name: 'imported') ? 'Yes' : 'No'
/webtrees/app/Contracts/
H A DUserInterface.php84 * @param string $setting_name
89 public function getPreference(string $setting_name, string $default = ''): string; argument
92 * @param string $setting_name
97 public function setPreference(string $setting_name, string $setting_value): void; argument
/webtrees/app/Factories/
H A DImageFactory.php237 …h::accessLevel(tree: $tree, user: $user) > (int) $tree->getPreference(setting_name: 'SHOW_NO_WATER…