/webtrees/app/Factories/ |
H A D | GedcomRecordFactory.php | 33 use Fisharebest\Webtrees\Registry; alias 55 return Registry::familyFactory()->make($xref, $tree, $gedcom); 57 return Registry::headerFactory()->make($xref, $tree, $gedcom); 59 return Registry::individualFactory()->make($xref, $tree, $gedcom); 61 return Registry::locationFactory()->make($xref, $tree, $gedcom); 63 return Registry::mediaFactory()->make($xref, $tree, $gedcom); 65 return Registry::noteFactory()->make($xref, $tree, $gedcom); 67 return Registry::repositoryFactory()->make($xref, $tree, $gedcom); 69 return Registry::sourceFactory()->make($xref, $tree, $gedcom); 71 return Registry::submitterFactory()->make($xref, $tree, $gedcom); [all …]
|
/webtrees/app/Elements/ |
H A D | IndividualNonEvent.php | 23 use Fisharebest\Webtrees\Registry; alias 59 'ADOP' => Registry::elementFactory()->make('INDI:ADOP')->label(), 60 'BAPM' => Registry::elementFactory()->make('INDI:BAPM')->label(), 61 'BARM' => Registry::elementFactory()->make('INDI:BARM')->label(), 62 'BASM' => Registry::elementFactory()->make('INDI:BASM')->label(), 63 'BIRT' => Registry::elementFactory()->make('INDI:BIRT')->label(), 64 'BLES' => Registry::elementFactory()->make('INDI:BLES')->label(), 65 'BURI' => Registry::elementFactory()->make('INDI:BURI')->label(), 66 'CENS' => Registry::elementFactory()->make('INDI:CENS')->label(), 67 'CHR' => Registry::elementFactory()->make('INDI:CHR')->label(), [all …]
|
H A D | FamilyNonEvent.php | 23 use Fisharebest\Webtrees\Registry; alias 60 'ANUL' => Registry::elementFactory()->make('FAM:ANUL')->label(), 61 'CENS' => Registry::elementFactory()->make('FAM:CENS')->label(), 62 'DIV' => Registry::elementFactory()->make('FAM:DIV')->label(), 63 'DIVF' => Registry::elementFactory()->make('FAM:DIVF')->label(), 64 'ENGA' => Registry::elementFactory()->make('FAM:ENGA')->label(), 65 'MARB' => Registry::elementFactory()->make('FAM:MARB')->label(), 66 'MARC' => Registry::elementFactory()->make('FAM:MARC')->label(), 67 'MARL' => Registry::elementFactory()->make('FAM:MARL')->label(), 68 'MARS' => Registry::elementFactory()->make('FAM:MARS')->label(), [all …]
|
/webtrees/app/ |
H A D | Tree.php | 363 $xref = Registry::xrefFactory()->make($match[1]); 383 $record = Registry::gedcomRecordFactory()->new($xref, $gedcom, null, $this); 385 $pending_changes_service = Registry::container()->get(PendingChangesService::class); 391 return Registry::gedcomRecordFactory()->new($xref, '', $gedcom, $this); 408 $xref = Registry::xrefFactory()->make(Family::RECORD_TYPE); 428 $record = Registry::familyFactory()->new($xref, $gedcom, null, $this); 430 $pending_changes_service = Registry::container()->get(PendingChangesService::class); 436 return Registry::familyFactory()->new($xref, '', $gedcom, $this); 453 $xref = Registry::xrefFactory()->make(Individual::RECORD_TYPE); 473 $record = Registry::individualFactory()->new($xref, $gedcom, null, $this); [all …]
|
H A D | Fact.php | 207 return Registry::elementFactory()->make($this->tag())->canonical($value); 229 return Registry::familyFactory()->make($xref, $this->record->tree()); 235 return Registry::individualFactory()->make($xref, $this->record->tree()); 238 Registry::individualFactory()->make($xref, $this->record->tree()) ?? 239 Registry::submitterFactory()->make($xref, $this->record->tree()); 241 return Registry::sourceFactory()->make($xref, $this->record->tree()); 243 return Registry::mediaFactory()->make($xref, $this->record->tree()); 245 return Registry::repositoryFactory()->make($xref, $this->record->tree()); 247 return Registry::noteFactory()->make($xref, $this->record->tree()); 251 return Registry::submitterFactory()->make($xref, $this->record->tree()); [all …]
|
/webtrees/app/Module/ |
H A D | RelationshipsChartModule.php | 33 use Fisharebest\Webtrees\Registry; alias 107 Registry::routeFactory()->routeMap() 146 $my_record = Registry::individualFactory()->make($my_xref, $individual->tree()); 229 $individual1 = Registry::individualFactory()->make($xref, $tree); 230 $individual2 = Registry::individualFactory()->make($xref2, $tree); 320 return Registry::individualFactory()->make($xref, $tree); 323 return Registry::familyFactory()->make($xref, $tree); 351 …e->legacyNameAlgorithm($relationships[$n], Registry::individualFactory()->make($path[$n - 1], $tre… 358 …e->legacyNameAlgorithm($relationships[$n], Registry::individualFactory()->make($path[$n - 1], $tre… 361 …e->legacyNameAlgorithm($relationships[$n], Registry::individualFactory()->make($path[$n - 1], $tre… [all …]
|
H A D | ClippingsCartModule.php | 45 use Fisharebest\Webtrees\Registry; alias 135 $request = Registry::container()->get(ServerRequestInterface::class); 262 $object = Registry::gedcomRecordFactory()->make($xref, $tree); 356 …$records = array_map(static fn (string $xref): GedcomRecord|null => Registry::gedcomRecordFactory(… 371 $family = Registry::familyFactory()->make($xref, $tree); 399 $family = Registry::familyFactory()->make($xref, $tree); 443 $individual = Registry::individualFactory()->make($xref, $tree); 483 $individual = Registry::individualFactory()->make($xref, $tree); 549 $location = Registry::locationFactory()->make($xref, $tree); 571 $location = Registry::locationFactory()->make($xref, $tree); [all …]
|
H A D | SiteMapModule.php | 34 use Fisharebest\Webtrees\Registry; alias 90 Registry::routeFactory()->routeMap() 93 Registry::routeFactory()->routeMap() 96 Registry::routeFactory()->routeMap() 193 $content = Registry::cache()->file()->remember('sitemap.xml', function (): string { 286 …$content = Registry::cache()->file()->remember($cache_key, function () use ($tree, $type, $page): … 366 ->map(Registry::familyFactory()->mapper($tree)); 384 ->map(Registry::individualFactory()->mapper($tree)); 402 ->map(Registry::mediaFactory()->mapper($tree)); 421 ->map(Registry::noteFactory()->mapper($tree)); [all …]
|
H A D | ModuleThemeTrait.php | 42 use Fisharebest\Webtrees\Registry; alias 150 $module_service = Registry::container()->get(ModuleService::class); 200 $request = Registry::container()->get(ServerRequestInterface::class); 269 $request = Registry::container()->get(ServerRequestInterface::class); 329 …$record = Registry::individualFactory()->make($tree->getUserPreference(Auth::user(), UserInterface… 388 $module_service = Registry::container()->get(ModuleService::class); 394 $individual = Registry::individualFactory()->make($my_xref, $tree); 418 $request = Registry::container()->get(ServerRequestInterface::class); 438 $module_service = Registry::container()->get(ModuleService::class); 440 $current_theme = Registry::container()->get(ModuleThemeInterface::class); [all …]
|
/webtrees/app/Services/ |
H A D | PendingChangesService.php | 37 use Fisharebest\Webtrees\Registry; alias 104 Individual::RECORD_TYPE => Registry::individualFactory(), 105 Family::RECORD_TYPE => Registry::familyFactory(), 106 Source::RECORD_TYPE => Registry::sourceFactory(), 107 Repository::RECORD_TYPE => Registry::repositoryFactory(), 108 Media::RECORD_TYPE => Registry::mediaFactory(), 109 Note::RECORD_TYPE => Registry::noteFactory(), 110 Submitter::RECORD_TYPE => Registry::submitterFactory(), 111 Submission::RECORD_TYPE => Registry::submissionFactory(), 112 Location::RECORD_TYPE => Registry::locationFactory(), [all …]
|
H A D | DataFixService.php | 29 use Fisharebest\Webtrees\Registry; alias 53 return Registry::familyFactory()->make($xref, $tree); 56 return Registry::individualFactory()->make($xref, $tree); 59 return Registry::noteFactory()->make($xref, $tree); 62 return Registry::mediaFactory()->make($xref, $tree); 65 return Registry::repositoryFactory()->make($xref, $tree); 68 return Registry::sourceFactory()->make($xref, $tree); 71 return Registry::submitterFactory()->make($xref, $tree); 74 return Registry::gedcomRecordFactory()->make($xref, $tree); 112 $record = Registry::gedcomRecordFactory()->make($match[0], $tree);
|
H A D | LinkedRecordService.php | 29 use Fisharebest\Webtrees\Registry; alias 77 …return $xrefs->map(static fn (string $xref) => Registry::gedcomRecordFactory()->make($xref, $recor… 107 ->map(Registry::familyFactory()->mapper($record->tree())) 138 ->map(Registry::individualFactory()->mapper($record->tree())) 163 ->map(Registry::locationFactory()->mapper($record->tree())) 187 ->map(Registry::mediaFactory()->mapper($record->tree())) 212 ->map(Registry::noteFactory()->mapper($record->tree())) 237 ->map(Registry::repositoryFactory()->mapper($record->tree())) 261 ->map(Registry::sourceFactory()->mapper($record->tree())) 287 ->map(Registry::repositoryFactory()->mapper($record->tree()))
|
H A D | CaptchaService.php | 22 use Fisharebest\Webtrees\Registry; alias 47 $x = Registry::idFactory()->uuid(); 48 $y = Registry::idFactory()->uuid(); 49 $z = Registry::idFactory()->uuid(); 51 Session::put('captcha-t', Registry::timeFactory()->now()); 92 return Registry::timeFactory()->now() < $t + self::MINIMUM_FORM_TIME;
|
/webtrees/app/Http/RequestHandlers/ |
H A D | CreateSourceAction.php | 23 use Fisharebest\Webtrees\Registry; alias 51 $title = Registry::elementFactory()->make('SOUR:TITL')->canonical($title); 52 $abbreviation = Registry::elementFactory()->make('SOUR:ABBR')->canonical($abbreviation); 53 $author = Registry::elementFactory()->make('SOUR:AUTH')->canonical($author); 54 $publication = Registry::elementFactory()->make('SOUR:PUBL')->canonical($publication); 55 $repository = Registry::elementFactory()->make('SOUR:REPO')->canonical($repository); 56 $call_number = Registry::elementFactory()->make('SOUR:REPO:CALN')->canonical($call_number); 57 $text = Registry::elementFactory()->make('SOUR:TEXT')->canonical($text); 58 $restriction = Registry::elementFactory()->make('SOUR:RESN')->canonical($restriction);
|
H A D | UpgradeWizardStep.php | 26 use Fisharebest\Webtrees\Registry; alias 176 $root_filesystem = Registry::filesystem()->root(); 210 $data_filesystem = Registry::filesystem()->data(); 226 $root_filesystem = Registry::filesystem()->root(); 227 $start_time = Registry::timeFactory()->now(); 237 $end_time = Registry::timeFactory()->now(); 255 $start_time = Registry::timeFactory()->now(); 258 $end_time = Registry::timeFactory()->now(); 276 … $source_filesystem = Registry::filesystem()->root(self::UPGRADE_FOLDER . self::ZIP_FILE_PREFIX); 277 $root_filesystem = Registry::filesystem()->root();
|
H A D | MediaFileThumbnail.php | 23 use Fisharebest\Webtrees\Registry; alias 51 $media = Registry::mediaFactory()->make($xref, $tree); 54 …return Registry::imageFactory()->replacementImageResponse((string) StatusCodeInterface::STATUS_NOT… 58 …return Registry::imageFactory()->replacementImageResponse((string) StatusCodeInterface::STATUS_FOR… 72 …return Registry::imageFactory()->replacementImageResponse((string) StatusCodeInterface::STATUS_FOR… 76 $image_factory = Registry::imageFactory(); 90 …return Registry::imageFactory()->replacementImageResponse((string) StatusCodeInterface::STATUS_NOT…
|
H A D | TreePreferencesPage.php | 30 use Fisharebest\Webtrees\Registry; alias 82 $data_folder = Registry::filesystem()->dataName(); 134 …$pedigree_individual = Registry::individualFactory()->make($tree->getPreference('PEDIGREE_ROOT_ID'… 140 $all_family_facts = Collection::make(Registry::elementFactory()->make('FAM')->subtags()) 143 … ->map(static fn (string $tag): ElementInterface => Registry::elementFactory()->make($tag)) 148 … $all_individual_facts = Collection::make(Registry::elementFactory()->make('INDI')->subtags()) 151 … ->map(static fn (string $tag): ElementInterface => Registry::elementFactory()->make($tag)) 156 $all_surname_traditions = Registry::surnameTraditionFactory()->list();
|
H A D | CreateSubmitterAction.php | 23 use Fisharebest\Webtrees\Registry; alias 48 $name = Registry::elementFactory()->make('SUBM:NAME')->canonical($name); 49 $address = Registry::elementFactory()->make('SUBM:ADDR')->canonical($address); 50 $email = Registry::elementFactory()->make('SUBM:EMAIL')->canonical($email); 51 $phone = Registry::elementFactory()->make('SUBM:PHON')->canonical($phone); 52 $restriction = Registry::elementFactory()->make('SUBM:RESN')->canonical($restriction);
|
/webtrees/tests/app/Services/ |
H A D | TimeoutServiceTest.php | 24 use Fisharebest\Webtrees\Registry; alias 88 Registry::timeFactory($time_factory); 95 $now = Registry::timeFactory()->now(); 106 Registry::timeFactory($time_factory); 113 $now = Registry::timeFactory()->now(); 119 Registry::timeFactory($time_factory); 126 $now = Registry::timeFactory()->now(); 132 Registry::timeFactory($time_factory);
|
/webtrees/resources/views/layouts/ |
H A D | default.phtml | 14 use Fisharebest\Webtrees\Registry; alias 59 …<?php foreach (Registry::container()->get(ModuleThemeInterface::class)->stylesheets() as $styleshe… 65 …<?= Registry::container()->get(ModuleService::class)->findByInterface(ModuleGlobalInterface::class… 70 …<body class="wt-global wt-theme-<?= e(Registry::container()->get(ModuleThemeInterface::class)->nam… 104 …<?php foreach (Registry::container()->get(ModuleThemeInterface::class)->userMenu($tree) as $menu) … 113 …<?php foreach (Registry::container()->get(ModuleThemeInterface::class)->genealogyMenu($tree) as $m… 140 …<?= Registry::container()->get(ModuleService::class)->findByInterface(ModuleFooterInterface::class… 185 …<?= Registry::container()->get(ModuleService::class)->findByInterface(ModuleGlobalInterface::class…
|
/webtrees/tests/ |
H A D | TestCase.php | 105 $server_request_factory = Registry::container()->get(ServerRequestFactoryInterface::class); 123 Registry::container()->set(Tree::class, $value); 127 Registry::container()->set(ServerRequestInterface::class, $request); 143 Registry::container()->set(ModuleThemeInterface::class, new WebtreesTheme()); 148 Registry::container()->set(RouterContainer::class, $router_container); 154 (new Gedcom())->registerTags(Registry::elementFactory(), true); 185 …$stream = Registry::container()->get(StreamFactoryInterface::class)->createStreamFr… 204 $stream_factory = Registry::container()->get(StreamFactoryInterface::class); 205 $uploaded_file_factory = Registry::container()->get(UploadedFileFactoryInterface::class);
|
/webtrees/resources/views/modules/family_nav/ |
H A D | sidebar-family.phtml | 8 use Fisharebest\Webtrees\Registry; alias 34 …<?= Registry::container()->get(RelationshipService::class)->getCloseRelationshipName($individual, … 39 …<?= Registry::container()->get(RelationshipService::class)->getCloseRelationshipName($individual, … 59 …<?= Registry::container()->get(RelationshipService::class)->getCloseRelationshipName($individual, … 82 …<?= Registry::container()->get(RelationshipService::class)->getCloseRelationshipName($individual, … 87 …<?= Registry::container()->get(RelationshipService::class)->getCloseRelationshipName($individual, … 120 …<?= Registry::container()->get(RelationshipService::class)->getCloseRelationshipName($individual, …
|
/webtrees/app/Statistics/Repository/ |
H A D | FamilyRepository.php | 28 use Fisharebest\Webtrees\Registry; alias 92 $family = Registry::familyFactory()->mapper($this->tree)($row); 173 ->map(Registry::familyFactory()->mapper($this->tree)) 255 ->map(Registry::familyFactory()->mapper($this->tree)) 374 $family = Registry::familyFactory()->make($fam->family, $this->tree); 375 $child1 = Registry::individualFactory()->make($fam->ch1, $this->tree); 376 $child2 = Registry::individualFactory()->make($fam->ch2, $this->tree); 408 $family = Registry::familyFactory()->make($fam->family, $this->tree); 409 $child1 = Registry::individualFactory()->make($fam->ch1, $this->tree); 410 $child2 = Registry::individualFactory()->make($fam->ch2, $this->tree); [all …]
|
/webtrees/resources/views/ |
H A D | fact-association-structure.phtml | 15 use Fisharebest\Webtrees\Registry; alias 41 $person = Registry::individualFactory()->make($amatch[2], $fact->record()->tree()); 51 … $label = Registry::elementFactory()->make($rela_tag)->value($rmatch[2], $parent->tree()); 54 $label = Registry::elementFactory()->make($fact->tag())->label(); 57 $label = Registry::elementFactory()->make($fact->tag() . ':_ASSO')->label(); 79 $module = Registry::container()->get(ModuleService::class) 87 …$relationship_name = Registry::container()->get(RelationshipService::class)->getCloseRelationshipN…
|
/webtrees/app/Http/Middleware/ |
H A D | Router.php | 27 use Fisharebest\Webtrees\Registry; alias 87 return Registry::responseFactory() 109 … return Registry::responseFactory()->response('', StatusCodeInterface::STATUS_METHOD_NOT_ALLOWED, [ 115 …return Registry::responseFactory()->response('Negotiation failed', StatusCodeInterface::STATUS_NOT… 151 Registry::container()->set(Tree::class, $value); 164 Registry::container()->set(ServerRequestInterface::class, $request); 166 $dispatcher = new Dispatcher($middleware, Registry::container());
|