Lines Matching refs:user

263      * @param UserInterface $user
269 …public function setUserPreference(UserInterface $user, string $setting_name, string $setting_value… argument
271 if ($this->getUserPreference($user, $setting_name) !== $setting_value) {
275 'user_id' => $user->id(),
282 $this->user_preferences[$user->id()][$setting_name] = $setting_value;
284 …ce "' . $setting_name . '" set to "' . $setting_value . '" for user "' . $user->userName() . '"', …
293 * @param UserInterface $user
299 …public function getUserPreference(UserInterface $user, string $setting_name, string $default = '')… argument
303 if (!array_key_exists($user->id(), $this->user_preferences)) {
304 $this->user_preferences[$user->id()] = DB::table('user_gedcom_setting')
305 ->where('user_id', '=', $user->id())
311 return $this->user_preferences[$user->id()][$setting_name] ?? $default;
327 * @param UserInterface $user
331 public function canAcceptChanges(UserInterface $user): bool argument
333 return Auth::isModerator($this, $user);
369 …$gedcom .= "\n1 CHAN\n2 DATE " . $today . "\n3 TIME " . $now . "\n2 _WT_USER " . Auth::user()->use…
382 if (Auth::user()->getPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS) === '1') {
414 …$gedcom .= "\n1 CHAN\n2 DATE " . $today . "\n3 TIME " . $now . "\n2 _WT_USER " . Auth::user()->use…
427 if (Auth::user()->getPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS) === '1') {
459 …$gedcom .= "\n1 CHAN\n2 DATE " . $today . "\n3 TIME " . $now . "\n2 _WT_USER " . Auth::user()->use…
472 if (Auth::user()->getPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS) === '1') {
504 …$gedcom .= "\n1 CHAN\n2 DATE " . $today . "\n3 TIME " . $now . "\n2 _WT_USER " . Auth::user()->use…
517 if (Auth::user()->getPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS) === '1') {
532 * @param UserInterface $user
537 public function significantIndividual(UserInterface $user, string $xref = ''): Individual argument
553 …if ($individual === null && $this->getUserPreference($user, UserInterface::PREF_TREE_DEFAULT_XREF)…
554 …$individual = Registry::individualFactory()->make($this->getUserPreference($user, UserInterface::P…
557 …if ($individual === null && $this->getUserPreference($user, UserInterface::PREF_TREE_ACCOUNT_XREF)…
558 …$individual = Registry::individualFactory()->make($this->getUserPreference($user, UserInterface::P…