Home
last modified time | relevance | path

Searched refs:subtags (Results 1 – 16 of 16) sorted by relevance

/webtrees/app/
H A DGedcom.php1022 $subtags = [
1029 $subtags['FAM'][] = ['FACT', '0:M'];
1032 $subtags['FAM:NCHI'] = [
1052 $subtags['INDI:BIRT:DATE'][] = ['TIME', '0:1'];
1053 $subtags['INDI:DEAT:DATE'][] = ['TIME', '0:1'];
1057 $subtags['FAM'][] = ['_ASSO', '0:M'];
1058 $subtags['FAM'][] = ['_STAT', '0:1'];
1059 $subtags['FAM'][] = ['_UID', '0:M'];
1060 $subtags['FAM:*:ADDR'] = [['_NAME', '0:1:?', 'ADR1']];
1061 …$subtags['FAM:*:PLAC'] = [['_POST', '0:1'], ['_MAIDENHEAD', '0:1:?'], ['_LOC', '0:1'], ['…
[all …]
H A DGedcomRecord.php644 $subtags = Registry::elementFactory()->make($this->tag())->subtags();
645 … $subtags = array_map(fn (string $tag): string => $this->tag() . ':' . $tag, array_keys($subtags));
647 if ($subtags !== []) {
649 $subtags = array_combine(range(1, count($subtags)), $subtags);
653 ->sort(static function (Fact $x, Fact $y) use ($subtags): int {
654 $sort_x = array_search($x->tag(), $subtags, true) ?: PHP_INT_MAX;
655 $sort_y = array_search($y->tag(), $subtags, true) ?: PHP_INT_MAX;
677 foreach (Registry::elementFactory()->make($this->tag())->subtags() as $subtag => $repeat) {
/webtrees/app/Services/
H A DGedcomEditService.php236 $subtags = Registry::elementFactory()->make($record->tag())->subtags();
238 …$subtags = array_filter($subtags, static fn (string $v, string $k) => !str_ends_with($v, ':1') || …
240 $subtags = array_keys($subtags);
243 …$subtags = array_filter($subtags, fn (string $subtag): bool => !$this->isHiddenTag($record->tag() …
247 $subtags = array_filter($subtags, $fn_hidden);
250 return array_diff($subtags, ['HUSB', 'WIFE', 'CHIL', 'FAMC', 'FAMS', 'CHAN']);
265 $subtags = $factory->make($tag)->subtags();
271 foreach ($subtags as $subtag => $occurrences) {
/webtrees/app/Elements/
H A DAbstractElement.php75 private array $subtags; variable in Fisharebest\\Webtrees\\Elements\\AbstractElement
81 public function __construct(string $label, array|null $subtags = null) argument
84 $this->subtags = $subtags ?? static::SUBTAGS;
266 if ($before === '' || ($this->subtags[$before] ?? null) === null) {
267 $this->subtags[$subtag] = $repeat;
271 foreach ($this->subtags as $key => $value) {
278 $this->subtags = $tmp;
285 public function subtags(): array function in Fisharebest\\Webtrees\\Elements\\AbstractElement
287 return $this->subtags;
H A DFamilyRecord.php60 public function subtags(): array function in Fisharebest\\Webtrees\\Elements\\FamilyRecord
62 $subtags = parent::subtags();
65 unset($subtags['RESI']);
69 unset($subtags['CENS']);
72 return $subtags;
H A DNamePersonal.php92 public function __construct(string $label, array|null $subtags = null) argument
94 … if ($subtags === null && in_array(I18N::languageTag(), static::SURNAME_FIRST_LANGUAGES, true)) {
95 $subtags = static::SUBTAGS_SURNAME_FIRST;
97 parent::__construct($label, $subtags);
H A DEventTypeCitedFrom.php113 foreach ($data as $record_type => $subtags) {
114 foreach ($subtags as $subtag) {
/webtrees/app/Http/RequestHandlers/
H A DEditRecordPage.php64 $subtags = Registry::elementFactory()->make($record->tag())->subtags();
82 'has_chan' => array_key_exists('CHAN', $subtags),
H A DTreePreferencesPage.php140 $all_family_facts = Collection::make(Registry::elementFactory()->make('FAM')->subtags())
148 … $all_individual_facts = Collection::make(Registry::elementFactory()->make('INDI')->subtags())
H A DTreePrivacyPage.php151 … foreach (Registry::elementFactory()->make($record_type)->subtags() as $subtag => $occurrence) {
H A DSearchReplaceAction.php89 $name_tags = Registry::elementFactory()->make('INDI:NAME')->subtags();
/webtrees/app/Factories/
H A DElementFactory.php65 public function registerSubTags(array $subtags): void argument
67 foreach ($subtags as $tag => $children) {
/webtrees/app/Module/
H A DFixNameTags.php190 $subtags = strtr($match[3], [
196 $converted .= "\n1 NAME " . $match[2] . $type . $subtags;
/webtrees/app/Contracts/
H A DElementFactoryInterface.php48 public function registerSubTags(array $subtags): void; argument
H A DElementInterface.php106 public function subtags(): array; function
/webtrees/
H A Dphpstan-baseline.neon484 …message: '#^Property Fisharebest\\Webtrees\\Elements\\AbstractElement\:\:\$subtags \(array\<string…
592 …message: '#^Parameter \#2 \$subtags of method Fisharebest\\Webtrees\\Elements\\AbstractElement\:\:…