/webtrees/app/Elements/ |
H A D | AbstractElement.php | 153 $values = $this->values(); 155 if ($values !== []) { 159 if (!array_key_exists($value, $values)) { 160 $values = [$value => $value] + $values; 164 $values = array_map(static fn (string $x): string => strip_tags($x), $values); 169 'options' => $values, 300 $values = $this->values(); 302 if ($values === []) { 312 return $values[$canonical] ?? '<bdi>' . e($value) . '</bdi>'; 320 public function values(): array function in Fisharebest\\Webtrees\\Elements\\AbstractElement
|
H A D | SexXValue.php | 35 public function values(): array function in Fisharebest\\Webtrees\\Elements\\SexXValue 37 $values = parent::values(); 39 $values['X'] = I18N::translate('Other'); 41 return $values;
|
H A D | EventTypeCitedFrom.php | 104 public function values(): array function in Fisharebest\\Webtrees\\Elements\\EventTypeCitedFrom 111 $values = ['' => '']; 118 $values[$subtag] = $element->label(); 123 uasort($values, I18N::comparator()); 125 return $values;
|
H A D | TempleCode.php | 50 public function values(): array function in Fisharebest\\Webtrees\\Elements\\TempleCode 52 $values = [ 210 uasort($values, I18N::comparator()); 211 $values = ['' => I18N::translate('No temple - living ordinance')] + $values; 213 return $values;
|
H A D | GovIdType.php | 36 public function values(): array function in Fisharebest\\Webtrees\\Elements\\GovIdType 38 $values = [ 311 array_walk($values, static function (string &$value, $key): void { 317 return $values;
|
H A D | DemographicDataType.php | 50 public function values(): array function in Fisharebest\\Webtrees\\Elements\\DemographicDataType 52 $values = [ 58 uasort($values, I18N::comparator()); 60 return $values;
|
H A D | HierarchicalRelationship.php | 51 public function values(): array function in Fisharebest\\Webtrees\\Elements\\HierarchicalRelationship 53 $values = [ 61 uasort($values, I18N::comparator()); 63 return $values;
|
H A D | FamilyNonEvent.php | 56 public function values(): array function in Fisharebest\\Webtrees\\Elements\\FamilyNonEvent 58 $values = [ 72 uasort($values, I18N::comparator()); 74 return $values;
|
H A D | PedigreeLinkageType.php | 65 public function values(string $sex = 'U'): array function in Fisharebest\\Webtrees\\Elements\\PedigreeLinkageType 67 $values = [ 100 return $values[$sex] ?? $values['U'];
|
H A D | IndividualNonEvent.php | 55 public function values(): array function in Fisharebest\\Webtrees\\Elements\\IndividualNonEvent 57 $values = [ 83 uasort($values, I18N::comparator()); 85 return $values;
|
H A D | SourceMediaType.php | 74 public function values(): array function in Fisharebest\\Webtrees\\Elements\\SourceMediaType 77 $values = [ 99 uasort($values, I18N::comparator()); 101 return $values;
|
H A D | RelationIsDescriptor.php | 47 public function values(string $sex = 'U'): array function in Fisharebest\\Webtrees\\Elements\\RelationIsDescriptor 49 $values = [ 132 $tmp = $values[$sex] ?? $values['U'];
|
H A D | LanguageId.php | 122 public function values(): array function in Fisharebest\\Webtrees\\Elements\\LanguageId 124 $values = [ 214 uasort($values, I18N::comparator()); 216 return $values;
|
H A D | FamilyStatusText.php | 55 if (array_key_exists($upper, $this->values())) { 67 public function values(): array function in Fisharebest\\Webtrees\\Elements\\FamilyStatusText
|
H A D | RoleInEvent.php | 54 if (array_key_exists($upper, $this->values())) { 74 public function values(): array function in Fisharebest\\Webtrees\\Elements\\RoleInEvent
|
/webtrees/resources/views/ |
H A D | fact-gedcom-fields.phtml | 26 [, $levels, $tags, $values] = $matches; 38 …AbstractXrefElement && preg_match('/^@(' . Gedcom::REGEX_XREF . ')@$/', $values[$key], $match) ===… 47 $values[$key] = ''; 55 …stanceof XrefSource && preg_match('/^@(' . Gedcom::REGEX_XREF . ')@$/', $values[0], $match) === 1)… 80 <?php if ($values[$key] !== '') : ?> 81 <?= $elements[$key]->labelValue(strtr($values[$key], ["\r" => "\n"]), $tree) ?> 88 <?php if ($values[$key] !== '') : ?> 89 <?= $elements[$key]->labelValue(strtr($values[$key], ["\r" => "\n"]), $tree) ?>
|
H A D | fact-association-structure.phtml | 77 … $values = ['<a href="' . e($person->url()) . '">' . $person->fullName() . '</a>' . $age_text]; variable 97 …$values[] = '<a href="' . $module->chartUrl($associate, ['xref2' => $person->xref()]) . '" rel="no… 101 $value = '<span class="field" dir="auto">' . implode(' — ', $values) . '</span>';
|
/webtrees/app/Services/ |
H A D | GedcomEditService.php | 124 …ditLinesToGedcom(string $record_type, array $levels, array $tags, array $values, bool $append = tr… argument 130 assert(count($values) === $count); 140 $values[$i] = $element->canonical($values[$i]); 143 if ($levels[$i] === '1' && $values[$i] === 'Y') { 145 … if ($levels[$j] === '2' && ($tags[$j] === 'DATE' || $tags[$j] === 'PLAC') && $values[$j] !== '') { 146 $values[$i] = ''; 155 if ($values[$j] !== '') { 160 … if ($values[$i] !== '' || $children_with_values && !$element instanceof AbstractXrefElement) { 161 if ($values[$i] === '') { 171 …levels[$i] . ' ' . $tags[$i] . ' ' . str_replace("\n", "\n" . $next_level . ' CONT ', $values[$i]);
|
/webtrees/app/Http/RequestHandlers/ |
H A D | AddSpouseToIndividualAction.php | 64 $values = Validator::parsedBody($request)->array('ivalues'); 65 … = $this->gedcom_edit_service->editLinesToGedcom(Individual::RECORD_TYPE, $levels, $tags, $values); 71 $values = Validator::parsedBody($request)->array('fvalues'); 72 …dcom = $this->gedcom_edit_service->editLinesToGedcom(Family::RECORD_TYPE, $levels, $tags, $values);
|
H A D | AddSpouseToFamilyAction.php | 64 $values = Validator::parsedBody($request)->array('ivalues'); 65 … = $this->gedcom_edit_service->editLinesToGedcom(Individual::RECORD_TYPE, $levels, $tags, $values); 91 $values = Validator::parsedBody($request)->array('fvalues'); 92 …dcom = $this->gedcom_edit_service->editLinesToGedcom(Family::RECORD_TYPE, $levels, $tags, $values);
|
/webtrees/resources/views/edit/ |
H A D | edit-gedcom-fields.phtml | 17 [, $levels, $tags, $values] = $matches; 36 if ($values[$n] !== '') { 57 <?php if ($elements[$key] instanceof EmptyElement && $values[$key] === '') : ?> 76 …<?= $elements[$key]->edit($ids[$key], $prefix . 'values[]', strtr($values[$key], ["\r" => "\n"]), …
|
/webtrees/app/Statistics/Google/ |
H A D | ChartMedia.php | 69 $values = $element->values(); 73 $values[$element->canonical($type)] ?? $type,
|
H A D | ChartAge.php | 114 foreach ($out as $century => $values) { 115 $female_age = $values['F'] ?? 0; 116 $male_age = $values['M'] ?? 0;
|
H A D | ChartMarriageAge.php | 137 foreach ($out as $century => $values) { 138 $female_age = $values['F'] ?? 0; 139 $male_age = $values['M'] ?? 0;
|
/webtrees/app/ |
H A D | Validator.php | 144 public function isInArray(array $values): self argument 146 …static fn (int|string|null $value): int|string|null => in_array($value, $values, true) ? $value : … 156 public function isInArrayKeys(array $values): self argument 158 return $this->isInArray(array_keys($values));
|