private function get_nearby_list($waterfall) { $nearby_list = array(); $result = WaterfallCollector::getNearbyList($waterfall); foreach ($result as $row) { $nearby_list[] = (object) array( 'url' => "/{$row->watercourse_alias}/{$row->alias}/", 'anchor' => $row->name, 'title' => "{$row->name} of {$row->watercourse}", 'distance' => Content::instance('ImperialUnit', $row->distance)->activate(false), ); } return $nearby_list; }