/webtrees/app/ |
H A D | Registry.php | 115 * @param CacheFactoryInterface|null $factory 119 public static function cache(CacheFactoryInterface|null $factory = null): CacheFactoryInterface argument 121 if ($factory instanceof CacheFactoryInterface) { 122 self::$cache_factory = $factory; 131 * @param CalendarDateFactoryInterface|null $factory 135 …public static function calendarDateFactory(CalendarDateFactoryInterface|null $factory = null): Cal… argument 137 if ($factory instanceof CalendarDateFactoryInterface) { 138 self::$calendar_date_factory = $factory; 163 * @param ElementFactoryInterface|null $factory 167 …public static function elementFactory(ElementFactoryInterface|null $factory = null): ElementFactor… argument [all …]
|
/webtrees/tests/app/Factories/ |
H A D | CalendarDateFactoryTest.php | 37 $factory = new CalendarDateFactory(); 39 $date = $factory->make(''); 49 $factory = new CalendarDateFactory(); 62 $date = $factory->make($calendar_escape); 72 $factory = new CalendarDateFactory(); 74 $date = $factory->make('@#DSTARDATE@'); 83 $factory = new CalendarDateFactory(); 85 $date = $factory->make('01 JAN 1970'); 94 $factory = new CalendarDateFactory(); 96 $date = $factory->make('JAN 1970'); [all …]
|
H A D | EncodingFactoryTest.php | 43 $factory = new EncodingFactory(); 47 $factory->detect(UTF8::BYTE_ORDER_MARK) 52 $factory->detect(UTF16BE::BYTE_ORDER_MARK) 57 $factory->detect(UTF16LE::BYTE_ORDER_MARK) 63 $factory = new EncodingFactory(); 67 $factory->detect("\x000") 72 $factory->detect("0\x00") 78 $factory = new EncodingFactory(); 82 $factory->detect("0 HEAD\n1 CHAR MACINTOSH\n0 TRLR") 88 $factory = new EncodingFactory(); [all …]
|
H A D | MarkdownFactoryTest.php | 33 $factory = new MarkdownFactory(); 37 $factory->autolink('FOO https://example.com BAR') 43 $factory = new MarkdownFactory(); 48 $factory->autolink('FOO https://example.com BAR', $tree) 54 $factory = new MarkdownFactory(); 58 $factory->autolink('<b> https://example.com </b>') 64 $factory = new MarkdownFactory(); 68 $factory->markdown('FOO https://example.com BAR') 73 $factory->markdown('FOO <https://example.com> BAR') 80 $factory = new MarkdownFactory(); [all …]
|
H A D | SurnameTraditionFactoryTest.php | 40 $factory = new SurnameTraditionFactory(); 42 …self::assertInstanceOf(DefaultSurnameTradition::class, $factory->make(SurnameTraditionFactoryInter… 43 …self::assertInstanceOf(IcelandicSurnameTradition::class, $factory->make(SurnameTraditionFactoryInt… 44 …self::assertInstanceOf(LithuanianSurnameTradition::class, $factory->make(SurnameTraditionFactoryIn… 45 …self::assertInstanceOf(MatrilinealSurnameTradition::class, $factory->make(SurnameTraditionFactoryI… 46 …self::assertInstanceOf(PaternalSurnameTradition::class, $factory->make(SurnameTraditionFactoryInte… 47 …self::assertInstanceOf(PatrilinealSurnameTradition::class, $factory->make(SurnameTraditionFactoryI… 48 …self::assertInstanceOf(PolishSurnameTradition::class, $factory->make(SurnameTraditionFactoryInterf… 49 …self::assertInstanceOf(PortugueseSurnameTradition::class, $factory->make(SurnameTraditionFactoryIn… 50 …self::assertInstanceOf(SpanishSurnameTradition::class, $factory->make(SurnameTraditionFactoryInter… [all …]
|
/webtrees/app/Elements/ |
H A D | AbstractXrefElement.php | 63 * @param GedcomRecordFactoryInterface $factory 67 …ed function valueXrefLink(string $value, Tree $tree, GedcomRecordFactoryInterface $factory): string argument 75 $record = $factory->make($match[1], $tree);
|
H A D | EventsRecorded.php | 125 $factory = Registry::elementFactory(); 128 …->mapWithKeys(static fn (string $tag): array => [explode(':', $tag)[1] => $factory->make($tag)->la…
|
/webtrees/tests/app/Elements/ |
H A D | XrefNoteTest.php | 41 $factory = $this->createMock(NoteFactory::class); 43 $factory->expects($this->once()) 47 Registry::noteFactory($factory);
|
H A D | XrefSharedNoteTest.php | 41 $factory = $this->createMock(SharedNoteFactory::class); 43 $factory->expects($this->once()) 47 Registry::sharedNoteFactory($factory);
|
H A D | XrefRepositoryTest.php | 42 $factory = $this->createMock(RepositoryFactory::class); 44 $factory->expects($this->once()) 48 Registry::repositoryFactory($factory);
|
H A D | XrefFamilyTest.php | 42 $factory = $this->createMock(FamilyFactory::class); 44 $factory->expects($this->once()) 48 Registry::familyFactory($factory);
|
H A D | XrefMediaTest.php | 42 $factory = $this->createMock(MediaFactory::class); 44 $factory->expects($this->once()) 48 Registry::mediaFactory($factory);
|
H A D | XrefSubmissionTest.php | 42 $factory = $this->createMock(SubmissionFactory::class); 44 $factory->expects($this->once()) 48 Registry::submissionFactory($factory);
|
H A D | XrefSubmitterTest.php | 42 $factory = $this->createMock(SubmitterFactory::class); 44 $factory->expects($this->once()) 48 Registry::submitterFactory($factory);
|
H A D | XrefLocationTest.php | 42 $factory = $this->createMock(LocationFactory::class); 44 $factory->expects($this->once()) 48 Registry::locationFactory($factory);
|
H A D | XrefIndividualTest.php | 42 $factory = $this->createMock(IndividualFactory::class); 44 $factory->expects($this->once()) 48 Registry::individualFactory($factory);
|
H A D | XrefSourceTest.php | 44 $factory = $this->createMock(SourceFactory::class); 46 $factory->expects($this->once()) 50 Registry::sourceFactory($factory);
|
/webtrees/app/Services/ |
H A D | GedcomEditService.php | 264 $factory = Registry::elementFactory(); 265 $subtags = $factory->make($tag)->subtags(); 303 $default = $factory->make($tag . ':' . $subtag)->default($tree);
|
H A D | PendingChangesService.php | 121 $factory = $factories[$match[1]] ?? Registry::gedcomRecordFactory(); 123 $row->record = $factory->new($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
|
/webtrees/ |
H A D | composer.lock | 308 "email": "roman@code-factory.org" 398 "email": "roman@code-factory.org" 828 "php-http/message-factory": "^1.1", 1024 "psr/http-factory": "^1.0", 1029 "psr/http-factory-implementation": "1.0", 1034 "http-interop/http-factory-tests": "0.9.0", 1350 "fakerphp/faker": "Required to use the eloquent factory builder (^1.21).", 2586 "psr/http-factory": "^1.0", 2590 "php-http/message-factory-implementation": "1.0", 2591 "psr/http-factory-implementation": "1.0", [all …]
|