Lines Matching refs:tree
133 public function getMenu(Tree $tree): Menu|null argument
139 $count = count($cart[$tree->name()] ?? []);
146 'tree' => $tree->name(),
159 'tree' => $tree->name(),
165 if (!$this->isCartEmpty($tree)) {
169 'tree' => $tree->name(),
175 'tree' => $tree->name(),
188 private function isCartEmpty(Tree $tree): bool argument
192 $contents = $cart[$tree->name()] ?? [];
199 $tree = Validator::attributes($request)->tree();
212 'tree' => $tree,
219 $tree = Validator::attributes($request)->tree();
223 } elseif (Auth::isManager($tree)) {
225 } elseif (Auth::isMember($tree)) {
240 $xrefs = array_keys($cart[$tree->name()] ?? []);
262 $object = Registry::gedcomRecordFactory()->make($xref, $tree);
291 …return $this->gedcom_export_service->downloadResponse($tree, false, $encoding, 'none', $line_endin…
296 $tree = Validator::attributes($request)->tree();
301 $cart[$tree->name()] = [];
307 'tree' => $tree->name(),
315 $tree = Validator::attributes($request)->tree();
320 unset($cart[$tree->name()][$xref]);
326 'tree' => $tree->name(),
334 $tree = Validator::attributes($request)->tree();
338 'records' => $this->allRecordsInCart($tree),
340 'tree' => $tree,
347 private function allRecordsInCart(Tree $tree): array argument
352 $xrefs = array_keys($cart[$tree->name()] ?? []);
356 … (string $xref): GedcomRecord|null => Registry::gedcomRecordFactory()->make($xref, $tree), $xrefs);
369 $tree = Validator::attributes($request)->tree();
371 $family = Registry::familyFactory()->make($xref, $tree);
389 'tree' => $tree,
395 $tree = Validator::attributes($request)->tree();
399 $family = Registry::familyFactory()->make($xref, $tree);
441 $tree = Validator::attributes($request)->tree();
443 $individual = Registry::individualFactory()->make($xref, $tree);
473 'tree' => $tree,
479 $tree = Validator::attributes($request)->tree();
483 $individual = Registry::individualFactory()->make($xref, $tree);
547 $tree = Validator::attributes($request)->tree();
549 $location = Registry::locationFactory()->make($xref, $tree);
563 'tree' => $tree,
569 $tree = Validator::attributes($request)->tree();
571 $location = Registry::locationFactory()->make($xref, $tree);
581 $tree = Validator::attributes($request)->tree();
583 $media = Registry::mediaFactory()->make($xref, $tree);
597 'tree' => $tree,
603 $tree = Validator::attributes($request)->tree();
605 $media = Registry::mediaFactory()->make($xref, $tree);
615 $tree = Validator::attributes($request)->tree();
617 $note = Registry::noteFactory()->make($xref, $tree);
631 'tree' => $tree,
637 $tree = Validator::attributes($request)->tree();
639 $note = Registry::noteFactory()->make($xref, $tree);
649 $tree = Validator::attributes($request)->tree();
651 $repository = Registry::repositoryFactory()->make($xref, $tree);
665 'tree' => $tree,
671 $tree = Validator::attributes($request)->tree();
673 $repository = Registry::repositoryFactory()->make($xref, $tree);
687 $tree = Validator::attributes($request)->tree();
689 $source = Registry::sourceFactory()->make($xref, $tree);
704 'tree' => $tree,
710 $tree = Validator::attributes($request)->tree();
714 $source = Registry::sourceFactory()->make($xref, $tree);
733 $tree = Validator::attributes($request)->tree();
735 $submitter = Registry::submitterFactory()->make($xref, $tree);
749 'tree' => $tree,
755 $tree = Validator::attributes($request)->tree();
757 $submitter = Registry::submitterFactory()->make($xref, $tree);
770 $tree = $family->tree()->name();
773 if (($cart[$tree][$xref] ?? false) === false) {
774 $cart[$tree][$xref] = true;
795 $tree = $individual->tree()->name();
798 if (($cart[$tree][$xref] ?? false) === false) {
799 $cart[$tree][$xref] = true;
815 $tree = $location->tree()->name();
818 if (($cart[$tree][$xref] ?? false) === false) {
819 $cart[$tree][$xref] = true;
835 $location = Registry::locationFactory()->make($xref, $record->tree());
848 $tree = $media->tree()->name();
851 if (($cart[$tree][$xref] ?? false) === false) {
852 $cart[$tree][$xref] = true;
865 $media = Registry::mediaFactory()->make($xref, $record->tree());
878 $tree = $note->tree()->name();
881 if (($cart[$tree][$xref] ?? false) === false) {
882 $cart[$tree][$xref] = true;
893 $note = Registry::noteFactory()->make($xref, $record->tree());
906 $tree = $source->tree()->name();
909 if (($cart[$tree][$xref] ?? false) === false) {
910 $cart[$tree][$xref] = true;
924 $source = Registry::sourceFactory()->make($xref, $record->tree());
937 $tree = $repository->tree()->name();
940 if (($cart[$tree][$xref] ?? false) === false) {
941 $cart[$tree][$xref] = true;
954 $repository = Registry::repositoryFactory()->make($xref, $record->tree());
966 $tree = $submitter->tree()->name();
969 if (($cart[$tree][$xref] ?? false) === false) {
970 $cart[$tree][$xref] = true;
983 $submitter = Registry::submitterFactory()->make($xref, $record->tree());