public static function postprocess($sessions, $groupparams, $user, $yachs, $sport, $period)
 {
     $gpsdata = " ['Lat', 'Lon', 'Name']";
     foreach ($sessions as $item) {
         $d1 = new Jdate($item->tdate);
         $a1 = '<a href="' . JRoute::_('index.php?option=com_htraininglogs&view=sessions&page=daypage&date=' . $item->tdate) . '">' . $d1->Format('Y-m-d H:i') . '</a>';
         $gpsdata = $gpsdata . ",[" . $item->lat . "," . $item->lon . "," . "'" . $a1 . '<br>' . $item->method . '<br>' . $item->location . "']";
     }
     return $gpsdata;
 }
Example #2
0
 public static function makeStartpoints($data)
 {
     $gpsdata = " ['Lat', 'Lon', 'Name']";
     foreach ($data as $item) {
         $d1 = new Jdate($item->tdate);
         $a1 = '<a href="' . JRoute::_('index.php?option=com_htraininglogs&view=sessions&page=daypage&date=' . $item->tdate) . '">' . $d1->Format('Y-m-d H:i') . '</a>';
         $gpsdata = $gpsdata . ",[" . $item->lat . "," . $item->lon . "," . "'" . $a1 . '<br>' . $item->method . '<br>' . $item->location . "']";
     }
     return $gpsdata;
 }