function display($tpl = null) { $user = JFactory::getUser(); $app = JFactory::getApplication(); $params = $app->getParams(); $navbar = $params->get('navbar'); $doma = $params->get('doma_installed'); $item = $this->get('Item'); $this->item = $item; $this->form = $this->get('Form'); if ($doma) { $maplist = $this->get('Maplist'); $maps = $this->get('Maps'); } $competition = $this->get('Competition'); $complists = ListHTraininglogsHelper::getcomplists($user->id); $medialist = $this->get('Medialist'); $media = $this->get('Media'); $istemphr = $this->get('Ishr'); // are there HR data in temp table $splittimes = $this->get('Splittimes'); $groupparams = HTraininglogsHelper::getGroupparams(); $startpoint = $this->get('Startpoint'); if ($istemphr) { $hrdata = $this->get('Hrdata'); } else { $intensities = $this->get('Intensities'); $technics = $this->get('Technics'); $tools = $this->get('Tools'); $this->intensity = $intensities; $this->technic = $technics; $this->tool = $tools; $this->groupparams = $groupparams; } $this->form->bind($item); if (count($errors = $this->get('Errors'))) { JError::raiseWarning(500, implode("\n", $errors)); return false; } $this->item = $item; $this->competition = $competition; $this->istemphr = $istemphr; $this->navbar = $navbar; $this->maplist = $maplist; $this->medialist = $medialist; $this->complists = $complists; $this->maps = $maps; $this->media = $media; $this->split = $splittimes; $this->startpoint = $startpoint; $this->_prepareDocument(); if ($istemphr) { graphHTraininglogsHelper::prepare_daygraph($hrdata, $groupparams); gpsHTraininglogsHelper::prepare_gps_track($hrdata, $groupparams, $hrdata[0]->gpsdetails); } parent::display($tpl); }
public function display($tpl = null) { $user = JFactory::getUser(); $app = JFactory::getApplication(); $params = $app->getParams(); $this->items = $this->get('Items'); $this->state = $this->get('State'); $this->pagination = $this->get('Pagination'); $this->sportarray = ListHTraininglogsHelper::getsportartarray($user->id); $this->complists = ListHTraininglogsHelper::getcomplists($user->id); $this->compfilterlist = array(JHTML::_('select.option', '0', JText::_(' - ')), JHTML::_('select.option', '1', JText::_('COM_HTRAININGLOGS_COMPETITION'))); if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } parent::display($tpl); }