Lines Matching refs:hierarchy
78 for ($tmp = $parent, $hierarchy = []; $tmp->id() !== null; $tmp = $tmp->parent()) {
79 $hierarchy[] = $tmp->locationName();
83 $filename = preg_replace('/[^\p{L}]+/u', '-', $hierarchy[0] ?? 'Global') . '.csv';
88 $parent->id(), array_reverse($hierarchy), $parent->latitude(), $parent->longitude()
92 [$id, $hierarchy, $latitude, $longitude] = array_shift($queue);
96 'hierarchy' => $hierarchy,
116 $next_level = count($hierarchy);
119 $hierarchy[$next_level] = $row->place;
120 array_unshift($queue, [$row->id, $hierarchy, $row->latitude, $row->longitude]);
127 $max_level = max($max_level, count($place->hierarchy));
132 count($place->hierarchy) - 1,
134 array_pad($place->hierarchy, $max_level, ''),