/webtrees/app/Module/ |
H A D | PlaceHierarchyListModule.php | 167 $place = Place::find($place_id, $tree); 170 if ($place_id !== $place->id()) { 171 return redirect($place->url()); 182 'data' => $this->mapData($place), 198 $data = $this->getHierarchy($place); 202 'indilist' => $this->search_service->searchIndividualsInPlace($place), 203 'famlist' => $this->search_service->searchFamiliesInPlace($place), 204 'tree' => $place->tree(), 209 if ($data !== null && $action2 !== 'hierarchy-e' && $place->gedcomName() !== '') { 215 $breadcrumbs = $this->breadcrumbs($place); [all …]
|
H A D | ModuleMapAutocompleteTrait.php | 45 * @param string $place 49 public function searchPlaceNames(string $place): array argument 51 if (strlen($place) <= 2) { 55 $key = $this->name() . $place; 60 return $cache->remember($key, function () use ($place) { 61 $request = $this->createPlaceNameSearchRequest($place); 85 * @param string $place 89 protected function createPlaceNameSearchRequest(string $place): RequestInterface argument
|
H A D | ModuleMapGeoLocationTrait.php | 55 * @param string $place 59 public function searchPlaceNames(string $place): array argument 61 if (strlen($place) <= 2) { 65 $key = $this->name() . $place; 69 return $cache->remember($key, function () use ($place) { 70 $request = $this->searchLocationsRequest($place); 87 * @param string $place 91 protected function searchLocationsRequest(string $place): RequestInterface argument
|
H A D | PlacesModule.php | 136 $location = new PlaceLocation($fact->place()->gedcomName()); 160 'tooltip' => $fact->place()->gedcomName(), 185 if ($childsBirth instanceof Fact && $childsBirth->place()->gedcomName() !== '') { 194 return $item->place()->gedcomName() !== ''; 231 'place' => $fact->place(),
|
H A D | LifespansChartModule.php | 169 $place = Place::find($place_id, $tree); 187 $place_xrefs = $this->findIndividualsByPlace($place, $tree); 192 $xrefs = $this->findIndividualsByPlace($place, $tree); 363 * @param Place $place 368 protected function findIndividualsByPlace(Place $place, Tree $tree): array argument 377 ->where('pl_p_id', '=', $place->id())
|
/webtrees/resources/views/admin/ |
H A D | locations.phtml | 57 <?php foreach ($placelist as $place) : ?> 58 <tr class="<?= $active[$place->key] ?? null ? '' : 'unused-location collapse show' ?>"> 60 <a href="<?= e(route(MapDataList::class, ['parent_id' => $place->id])) ?>"> 61 <bdi><?= e($place->place) ?></bdi> 62 <?php if ($place->no_coord > 0) : ?> 65 <?= I18N::number($place->no_coord) ?> 67 <?= I18N::number($place->child_count) ?> 69 <?php elseif ($place->child_count > 0) : ?> 71 <?= I18N::number($place->child_count) ?> 78 <?php if ($place->latitude === null) : ?> [all …]
|
/webtrees/app/Census/ |
H A D | CensusColumnNationality.php | 49 $place = $individual->getBirthPlace()->gedcomName(); 52 if ($place === '') { 53 $place = $this->place(); 59 $place = $fact->place()->gedcomName(); 63 $place = $this->lastPartOfPlace($place); 65 return self::NATIONALITIES[$place] ?? $place;
|
H A D | AbstractCensusColumn.php | 159 * @param string $place e.g. "London, England" 163 protected function lastPartOfPlace(string $place): string argument 165 $parts = explode(', ', $place); 173 * @param string $place e.g. "London, England" 177 protected function notCountry(string $place): string argument 179 $parts = explode(', ', $place); 181 if (end($parts) === $this->place()) { 185 return $place; 193 public function place(): string function in Fisharebest\\Webtrees\\Census\\AbstractCensusColumn
|
/webtrees/app/Http/RequestHandlers/ |
H A D | MapDataExportCSV.php | 119 $hierarchy[$next_level] = $row->place; 126 foreach ($places as $place) { 127 $max_level = max($max_level, count($place->hierarchy)); 130 $places = array_map(fn (object $place): array => array_merge( 132 count($place->hierarchy) - 1, 134 array_pad($place->hierarchy, $max_level, ''), 136 $this->map_data_service->writeLongitude((float) $place->longitude), 137 $this->map_data_service->writeLatitude((float) $place->latitude), 165 foreach ($places as $place) { 166 fputcsv($resource, $place, MapDataService::CSV_SEPARATOR);
|
H A D | MapDataImportAction.php | 162 …$callback = static fn (array $place): bool => !str_contains($place['name'], ',') || $place['longit… 166 foreach ($places as $place) { 167 $location = new PlaceLocation($place['name']); 187 'latitude' => $place['latitude'], 188 'longitude' => $place['longitude'],
|
H A D | SearchPhoneticPage.php | 71 $place = Validator::queryParams($request)->string('place', ''); 93 if ($lastname !== '' || $firstname !== '' || $place !== '') { 96 … $message = 'Phonetic: first=' . $firstname . ', last=' . $lastname . ', place=' . $place; 100 …arch_service->searchIndividualsPhonetic($soundex, $lastname, $firstname, $place, $search_trees->al… 110 'place' => $place,
|
H A D | TomSelectPlace.php | 57 ->map(static fn (Place $place): array => [ 58 'text' => $place->gedcomName(), 59 'value' => (string) $place->id(),
|
/webtrees/app/Services/ |
H A D | SearchService.php | 144 * @param Place $place 148 public function searchFamiliesInPlace(Place $place): Collection argument 156 ->where('f_file', '=', $place->tree()->id()) 157 ->where('pl_p_id', '=', $place->id()) 214 * @param Place $place 218 public function searchIndividualsInPlace(Place $place): Collection argument 226 ->where('i_file', '=', $place->tree()->id()) 227 ->where('pl_p_id', '=', $place->id()) 496 $place = implode(', ', array_filter((array) $row)); 498 return new Place($place, $tree); [all …]
|
H A D | MapDataService.php | 67 $hierarchy[] = $row->place; 191 ->where('p_place', '=', $location->place) 195 … FlashMessages::addMessage(I18N::translate('“%s” has been deleted.', e($location->place))); 201 … $place_ids = $places->map(static fn (object $place): int => (int) $place->p_id)->all(); 260 $row->key = mb_strtolower($row->place); 264 … ->sort(static fn (object $x, object $y): int => I18N::comparator()($x->place, $y->place));
|
/webtrees/app/ |
H A D | PlaceLocation.php | 84 $place = $this->parts->first(); variable in Fisharebest\\Webtrees\\PlaceLocation 85 $place = mb_substr($place, 0, 120); variable in Fisharebest\\Webtrees\\PlaceLocation 89 ->where('place', '=', $place) 94 ->where('place', '=', $place) 101 'place' => $place, 118 foreach ($this->parts->reverse() as $place) { 122 ->where('place', '=', mb_substr($place, 0, 120)) 127 ->where('place', '=', mb_substr($place, 0, 120))
|
H A D | Place.php | 131 $place = $this->parts->first(); 135 'p_place' => mb_substr($place, 0, 120), 137 'p_std_soundex' => Soundex::russell($place), 138 'p_dm_soundex' => Soundex::daitchMokotoff($place), 198 ->map(fn (string $place): Place => new self($place . $parent_text, $this->tree))
|
H A D | Fact.php | 164 private Place $place; variable in Fisharebest\\Webtrees\\Fact 380 public function place(): Place function in Fisharebest\\Webtrees\\Fact 382 $this->place ??= new Place($this->attribute('PLAC'), $this->record->tree()); 384 return $this->place; 552 if ($this->place()->gedcomName() !== '') { 553 $attributes[] = $this->place()->shortName(); 596 if ($this->place()->gedcomName() !== '') { 597 $items[] = $this->place()->shortName();
|
/webtrees/resources/views/modules/timeline-chart/ |
H A D | chart.phtml | 301 $place = (int) ($yoffset / $bheight); variable 305 while (isset($placements[$place])) { 313 $place = (int) (($yoffset + $tyoffset) / $bheight); variable 317 $placements[$place] = $yoffset; 363 if ($event->place()->gedcomName() !== '') { 364 echo ' — ' . $event->place()->shortName();
|
/webtrees/resources/views/components/ |
H A D | select-place.phtml | 30 <?php if (($place ?? null) instanceof Place && $place->id() !== 0) : ?> 31 <option value="<?= $place->id() ?>"> 32 <?= view('selects/place', ['place' => $place]) ?>
|
/webtrees/app/Statistics/Repository/ |
H A D | PlaceRepository.php | 95 $place = $match[1]; 97 $placelist[$place] = ($placelist[$place] ?? 0) + 1; 118 foreach ($places as $place => $count) { 119 $tmp = new Place((string) $place, $this->tree);
|
/webtrees/resources/views/lists/ |
H A D | anniversaries-list.phtml | 57 <?php if ($fact->place()->gedcomName() !== '') : ?> 58 … — <a href="<?= e($fact->place()->url()) ?>" title="<?= strip_tags($fact->place()->fullName()) ?>"> 59 <?= $fact->place()->shortName() ?>
|
/webtrees/resources/views/modules/place-hierarchy/ |
H A D | list.phtml | 22 <?php foreach ($column as $place) : ?> 24 <a href="<?= e($place->url()) ?>"><?= $place->fullName() ?></a>
|
H A D | popup.phtml | 18 <a href="<?= e($place->url()) ?>"> 19 <?= $place->placeName() ?> 22 <?= $place->placeName() ?>
|
H A D | sidebar.phtml | 25 <a href="<?= e($place->url()) ?>"> 26 <?= $place->placeName() ?> 29 <?= $place->placeName() ?>
|
/webtrees/resources/views/statistics/other/ |
H A D | top10-list.phtml | 16 <?php $place = $record['place']; ?> variable 18 <a href="<?= e($place->url()) ?>"><?= $place->fullName() ?></a>
|