Lines Matching refs:place

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);
224 'place' => $place,
232 * @param Place $place
236 protected function mapData(Place $place): array argument
238 $children = $place->getChildPlaces();
245 $children[] = $place;
253 … $this_url = route(self::class, ['tree' => $child->tree()->name(), 'place_id' => $place->id()]);
300 'bounds' => (new PlaceLocation($place->gedcomName()))->boundingRectangle(),
332 * @param Place $place
336 private function getHierarchy(Place $place): array|null argument
338 $child_places = $place->getChildPlaces();
345 'tree' => $place->tree(),
348 'place' => $place,
356 * @param Place $place
360 private function breadcrumbs(Place $place): array argument
363 if ($place->gedcomName() !== '') {
364 $breadcrumbs[] = $place;
365 $parent_place = $place->parent();
383 * @param Place $place
387 private function placeLinks(Place $place): Builder argument
395 ->where('p_file', '=', $place->tree()->id())
396 ->where('p_id', '=', $place->id());
400 * @param Place $place
404 private function familyPlaceLinks(Place $place): Builder argument
406 return $this->placeLinks($place)
415 * @param Place $place
419 private function individualPlaceLinks(Place $place): Builder argument
421 return $this->placeLinks($place)
430 * @param Place $place
434 private function locationPlaceLinks(Place $place): Builder argument
436 return $this->placeLinks($place)