Lines Matching refs:tree
81 …$opt_tags = preg_split('/\W/', $individual->tree()->getPreference('CHART_BOX_TAGS'), 0, PREG_SPLIT…
152 …foreach ($module_service->findByComponent(ModuleChartInterface::class, $individual->tree(), Auth::…
194 * @param Tree $tree
198 public function menuChangeBlocks(Tree $tree): Menu|null argument
204 …:translate('Customize this page'), route(UserPageEdit::class, ['tree' => $tree->name()]), 'menu-ch…
207 if (Auth::isManager($tree) && $route->name === TreePage::class) {
208 …:translate('Customize this page'), route(TreePageEdit::class, ['tree' => $tree->name()]), 'menu-ch…
217 * @param Tree $tree
221 public function menuControlPanel(Tree $tree): Menu|null argument
227 if (Auth::isManager($tree)) {
228 …u(I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]), 'menu-ad…
273 $tree = Validator::attributes($request)->treeOptional(); variable
278 $redirect = route(UserPage::class, ['tree' => $tree?->name()]);
282 $url = route(LoginPage::class, ['tree' => $tree?->name(), 'url' => $redirect]);
309 * @param Tree|null $tree
313 public function menuMyAccount(Tree|null $tree): Menu argument
315 $url = route(AccountEdit::class, ['tree' => $tree?->name()]);
323 * @param Tree $tree
327 public function menuMyIndividualRecord(Tree $tree): Menu|null argument
329 …gistry::individualFactory()->make($tree->getUserPreference(Auth::user(), UserInterface::PREF_TREE_…
341 * @param Tree $tree
345 public function menuMyPage(Tree $tree): Menu argument
347 …return new Menu(I18N::translate('My page'), route(UserPage::class, ['tree' => $tree->name()]), 'me…
353 * @param Tree|null $tree
357 public function menuMyPages(Tree|null $tree): Menu|null argument
360 if ($tree instanceof Tree) {
362 $this->menuMyPage($tree),
363 $this->menuMyIndividualRecord($tree),
364 $this->menuMyPedigree($tree),
365 $this->menuMyAccount($tree),
366 $this->menuControlPanel($tree),
367 $this->menuChangeBlocks($tree),
371 return $this->menuMyAccount($tree);
380 * @param Tree $tree
384 public function menuMyPedigree(Tree $tree): Menu|null argument
386 $my_xref = $tree->getUserPreference(Auth::user(), UserInterface::PREF_TREE_ACCOUNT_XREF);
390 ->findByComponent(ModuleChartInterface::class, $tree, Auth::user())
394 $individual = Registry::individualFactory()->make($my_xref, $tree);
411 * @param Tree|null $tree
415 public function menuPendingChanges(Tree|null $tree): Menu|null argument
417 if ($tree instanceof Tree && $tree->hasPendingEdit() && Auth::isModerator($tree)) {
421 'tree' => $tree->name(),
461 * @param Tree|null $tree
465 public function genealogyMenu(Tree|null $tree): array argument
467 if ($tree === null) {
474 ->findByComponent(ModuleMenuInterface::class, $tree, Auth::user())
475 ->map(static fn (ModuleMenuInterface $menu): Menu|null => $menu->getMenu($tree))
495 * @param Tree|null $tree
499 public function userMenu(Tree|null $tree): array argument
502 $this->menuPendingChanges($tree),
503 $this->menuMyPages($tree),