/** * Link to plot * @param string $text * @param int $year * @param int $sportid * @param string $group * @param boolean $current * @return string */ private function link($text, $year, $sportid, $group, $current = false, $analysis = false) { if (!$analysis) { $analysis = $this->Analysis; } if (FrontendShared::$IS_SHOWN) { return Ajax::window('<li' . ($current ? ' class="active"' : '') . '><a href="' . DataBrowserShared::getBaseUrl() . '?view=' . (Request::param('type') == 'week' ? 'weekkm' : 'monthkm') . '&type=' . Request::param('type') . '&y=' . $year . '&sportid=' . $sportid . '&group=' . $group . '&analysis=' . $analysis . '">' . $text . '</a></li>'); } else { return Ajax::window('<li' . ($current ? ' class="active"' : '') . '><a href="' . self::$URL . '?type=' . Request::param('type') . '&y=' . $year . '&sportid=' . $sportid . '&group=' . $group . '&analysis=' . $analysis . '">' . $text . '</a></li>'); } }