public static function getStudentsPositions() { $studentModel = new StudentModel(); $positions = $studentModel->getStudentsPositions(); $processedPositions = []; foreach ($positions as $pos) { array_push($processedPositions, [floatval($pos[0]), floatval($pos[1])]); } (new ServiceView())->showPlainText($processedPositions); }
public static function openMapsView() { $studentModel = new StudentModel(); (new OpenMapView())->show($studentModel->getStudentsPositions()); }