本文整理汇总了PHP中JoomleagueHelperRoute::getResultsRoute方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomleagueHelperRoute::getResultsRoute方法的具体用法?PHP JoomleagueHelperRoute::getResultsRoute怎么用?PHP JoomleagueHelperRoute::getResultsRoute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JoomleagueHelperRoute
的用法示例。
在下文中一共展示了JoomleagueHelperRoute::getResultsRoute方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getroute
public function getroute()
{
$view = Jrequest::getCmd('view');
switch ($view) {
case "matrix":
$link = JoomleagueHelperRoute::getMatrixRoute(JRequest::getVar('p'), JRequest::getVar('division'), JRequest::getVar('r'));
break;
case "teaminfo":
$link = JoomleagueHelperRoute::getTeamInfoRoute(JRequest::getVar('p'), JRequest::getVar('tid'));
break;
case "referees":
$link = JoomleagueHelperRoute::getRefereesRoute(JRequest::getVar('p'));
break;
case "results":
$link = JoomleagueHelperRoute::getResultsRoute(JRequest::getVar('p'), JRequest::getVar('r'), JRequest::getVar('division'));
break;
case "resultsranking":
$link = JoomleagueHelperRoute::getResultsRankingRoute(JRequest::getVar('p'));
break;
case "rankingmatrix":
$link = JoomleagueHelperRoute::getRankingMatrixRoute(JRequest::getVar('p'), JRequest::getVar('r'), JRequest::getVar('division'));
break;
case "resultsrankingmatrix":
$link = JoomleagueHelperRoute::getResultsRankingMatrixRoute(JRequest::getVar('p'), JRequest::getVar('r'), JRequest::getVar('division'));
break;
case "teamplan":
$link = JoomleagueHelperRoute::getTeamPlanRoute(JRequest::getVar('p'), JRequest::getVar('tid'), JRequest::getVar('division'));
break;
case "roster":
$link = JoomleagueHelperRoute::getPlayersRoute(JRequest::getVar('p'), JRequest::getVar('tid'), null, JRequest::getVar('division'));
break;
case "eventsranking":
$link = JoomleagueHelperRoute::getEventsRankingRoute(JRequest::getVar('p'), JRequest::getVar('division'), JRequest::getVar('tid'));
break;
case "curve":
$link = JoomleagueHelperRoute::getCurveRoute(JRequest::getVar('p'), JRequest::getVar('tid'), 0, JRequest::getVar('division'));
break;
case "statsranking":
$link = JoomleagueHelperRoute::getStatsRankingRoute(JRequest::getVar('p'), JRequest::getVar('division'));
break;
default:
case "ranking":
$link = JoomleagueHelperRoute::getRankingRoute(JRequest::getVar('p'), JRequest::getVar('r'), null, null, 0, JRequest::getVar('division'));
}
// echo json_encode($link);
// Use the correct json mime-type
header('Content-Type: application/json');
// Send the response.
echo json_encode($link);
JFactory::getApplication()->close();
}
示例2: savematch
function savematch()
{
JRequest::checkToken() or jexit(JText::_('COM_JOOMLEAGUE_GLOBAL_INVALID_TOKEN'));
$msg = '';
$post = JRequest::get('post');
$summary = JRequest::getVar('summary', '', 'post', 'string', JREQUEST_ALLOWRAW);
$post['summary'] = $summary;
$preview = JRequest::getVar('preview', '', 'post', 'string', JREQUEST_ALLOWRAW);
$post['preview'] = $preview;
$project_id = JRequest::getInt('p', '', 'post', 'int');
$round_id = JRequest::getInt('rid', '', 'post', 'int');
$match_id = JRequest::getInt('mid', '', 'post', 'int');
if ($post['alt_decision'] == 0) {
$post['team1_result_decision'] = null;
$post['team2_result_decision'] = null;
}
$model = $this->getModel('editmatch');
$user = JFactory::getUser();
$isAllowed = $model->isAllowed() || $model->isMatchAdmin($this->match->id, $user->id);
if (!$isAllowed) {
$link = JoomleagueHelperRoute::getResultsRoute($project_id);
jexit(JText::_('You are not allowed to change matchdata. What are you doing here???'));
$this->setRedirect($link, JText::_($msg));
}
#$post['match_date' . $cid[$x]] = JoomleagueHelper::convertDate( $post['match_date' . $cid[$x]], 0 );
if ($model->savedetails($post)) {
//clear ranking cache
$cache = JFactory::getCache('joomleague.project' . $project_id);
$cache->clean();
$msg = 'Changes on selected match were saved';
} else {
$msg = 'Error while saving changes on selected match';
}
$link = JoomleagueHelperRoute::getEditMatchRoute($project_id, $match_id);
$this->setRedirect($link, JText::_($msg));
}
示例3:
?>
<?php
}
?>
<?php
}
?>
</tbody>
</table>
<?php
if ($params->get('show_full_link', 1)) {
?>
<div class="mod_jl_results_fulltablelink<?php
echo $params->get('moduleclass_sfx');
?>
"><?php
echo JHtml::link(JoomleagueHelperRoute::getResultsRoute($list['project']->id, $list['round']->id, $list['divisionid']), JText::_('MOD_JOOMLEAGUE_RESULTS_VIEW_FULL'));
?>
</div>
<?php
}
?>
</div>
</div>
示例4: array
<!-- section header e.g. ranking, results etc. -->
<a id="jl_top"></a>
<table class="contentpaneopen">
<tr>
<td class="contentheading">
<?php
if ($this->roundid) {
$title = JText::_('COM_JOOMLEAGUE_RESULTS_ROUND_RESULTS');
if (isset($this->division)) {
$title = JText::sprintf('COM_JOOMLEAGUE_RESULTS_ROUND_RESULTS2', '<i>' . $this->division->name . '</i>');
}
JoomleagueHelperHtml::showMatchdaysTitle($title, $this->roundid, $this->config);
if ($this->showediticon) {
$link = JoomleagueHelperRoute::getResultsRoute($this->project->id, $this->roundid, $this->model->divisionid, $this->model->mode, $this->model->order, $this->config['result_style_edit']);
$imgTitle = JText::_('COM_JOOMLEAGUE_RESULTS_ENTER_EDIT_RESULTS');
$desc = JHTML::image('media/com_joomleague/jl_images/edit.png', $imgTitle, array(' title' => $imgTitle));
echo ' ';
echo JHTML::link($link, $desc);
}
} else {
//1 request for current round
// seems to be this shall show a plan of matches of a team???
JoomleagueHelperHtml::showMatchdaysTitle(JText::_('COM_JOOMLEAGUE_RESULTS_PLAN'), 0, $this->config);
}
?>
</td>
<?php
if ($this->config['show_matchday_dropdown'] == 1) {
?>
示例5:
?>
<thead>
<tr class="sectiontableheader">
<th colspan=10><?php
echo $game->project_name;
?>
</th>
</tr>
</thead>
<?php
$pr_id = $game->prid;
}
?>
<?php
$class = $k == 0 ? 'sectiontableentry1' : 'sectiontableentry2';
$result_link = JoomleagueHelperRoute::getResultsRoute($game->project_id, $game->roundid);
$report_link = JoomleagueHelperRoute::getMatchReportRoute($game->project_id, $game->id);
$home = $this->gamesteams[$game->projectteam1_id];
$away = $this->gamesteams[$game->projectteam2_id];
?>
<tr class="<?php
echo $class;
?>
">
<td><?php
echo JHTML::link($result_link, $game->roundcode);
?>
</td>
<td class="nowrap"><?php
echo JHTML::date($date, JText::_('COM_JOOMLEAGUE_MATCHDAYDATE'));
?>
示例6: foreach
foreach ($matches as $match) {
$idstring = $id . $params->get('moduleclass_sfx');
if ($mode == 'T') {
$textdiv .= '<div id="jlticker' . $idstring . '" class="textdiv">';
}
$report_link = JoomleagueHelperRoute::getMatchReportRoute($match->project_id, $match->match_id);
// Decide what kind of link method to be added to the teamnames
switch ($urlformat) {
case 0:
$urlfronthome = "";
$urlbackhome = "";
$urlfrontaway = "";
$urlbackaway = "";
break;
case 1:
$result_link = JoomleagueHelperRoute::getResultsRoute($match->project_id, $match->roundid, $match->division_id);
$urlfronthome = '<a href="' . $result_link . '">';
$urlbackhome = "</a>";
$urlfrontaway = '<a href="' . $result_link . '">';
$urlbackaway = "</a>";
break;
case 2:
$urlfronthome = '<a href="' . $report_link . '">';
$urlbackhome = "</a>";
$urlfrontaway = '<a href="' . $report_link . '">';
$urlbackaway = "</a>";
break;
case 3:
$plan_link = JoomleagueHelperRoute::getTeamPlanRoute($match->project_id, $match->team1_id);
$urlfronthome = '<a href="' . $plan_link . '">';
$urlbackhome = "</a>";
示例7:
}
?>
</td>
<?php
} else {
$hasEvents = false;
}
// end events
?>
<?php
if ($this->config['show_matchday']) {
?>
<td width='5%'>
<?php
$link = JoomleagueHelperRoute::getResultsRoute($this->project->slug, $match->roundid);
echo JHTML::link($link, $match->roundcode);
?>
</td>
<?php
}
?>
<?php
if ($this->config['show_match_number']) {
?>
<td>
<?php
if (empty($match->match_number)) {
$match->match_number = '-';
}
示例8: urlencode
$document = JFactory::getDocument();
JHTML::_('behavior.mootools');
$version = urlencode(JoomleagueHelper::getVersion());
$document->addScript(JURI::root() . 'components/com_joomleague/assets/js/eventsediting.js?v=' . $version);
?>
<div style="overflow:auto;">
<a name="jl_top" id="jl_top"></a>
<!-- section header e.g. ranking, results etc. -->
<table width='100%' class='contentpaneopen'>
<tr>
<td class="contentheading">
<?php
if ($this->roundid > 0) {
JoomleagueHelperHtml::showMatchdaysTitle(JText::_('Round results'), $this->roundid, $this->config);
if ($this->showediticon) {
$link = JoomleagueHelperRoute::getResultsRoute($this->project->id, $this->roundid);
$imgTitle = JText::_('Exit Edit Mode');
$desc = JHTML::image('media/com_joomleague/jl_images/edit_exit.png', $imgTitle, array(' title' => $imgTitle));
echo ' ';
echo JHTML::link($link, $desc);
}
}
?>
</td>
<td><?php
echo JoomleagueHelperHtml::getRoundSelectNavigation(TRUE);
?>
</td>
</tr>
</table>
<form name="adminForm" id="adminForm" method="post" action="<?php
示例9: getRoundSelectNavigation
function getRoundSelectNavigation($form)
{
$rounds = $this->get('RoundOptions');
$division = JRequest::getInt('division', 0);
if ($form) {
$currenturl = JoomleagueHelperRoute::getResultsRoute($this->project->slug, $this->roundid, $division);
$options = array();
foreach ($rounds as $r) {
$link = JoomleagueHelperRoute::getResultsRoute($this->project->slug, $r->value, $division);
$options[] = JHTML::_('select.option', $link, $r->text);
}
} else {
$currenturl = JoomleagueHelperRoute::getResultsRoute($this->project->slug, $this->roundid, $division);
$options = array();
foreach ($rounds as $r) {
$link = JoomleagueHelperRoute::getResultsRoute($this->project->slug, $r->value, $division);
$options[] = JHTML::_('select.option', $link, $r->text);
}
}
return JHTML::_('select.genericlist', $options, 'select-round', 'onchange="joomleague_changedoc(this);"', 'value', 'text', $currenturl);
}
示例10: array_merge
<td class='sectiontableheader'>
<?php
echo '<b>' . JText::sprintf('COM_JOOMLEAGUE_PRED_RANK_SUBTITLE_01') . '</b>';
?>
</td>
<td class='sectiontableheader' style='text-align:right; ' width='20%' nowrap='nowrap' >
<?php
$groups = $this->model->getPredictionGroupList();
$predictionGroups[] = JHTML::_('select.option', '0', JText::_('COM_JOOMLEAGUE_PRED_SELECT_GROUPS'), 'value', 'text');
$predictionGroups = array_merge($predictionGroups, $groups);
$htmlGroupOptions = JHTML::_('select.genericList', $predictionGroups, 'pggroup', 'class="inputbox" onchange="this.form.submit(); "', 'value', 'text', $this->model->pggroup);
echo $htmlGroupOptions;
echo $this->model->createProjectSelector($this->model->_predictionProjectS, $predictionProject->project_id, $showProjectID);
if ($showProjectID > 0) {
echo ' ';
$link = JoomleagueHelperRoute::getResultsRoute($predictionProject->project_id, $this->roundID);
$imgTitle = JText::_('COM_JOOMLEAGUE_PRED_ROUND_RESULTS_TITLE');
$desc = JHTML::image('media/com_joomleague/jl_images/icon-16-Matchdays.png', $imgTitle, array('border' => 0, 'title' => $imgTitle));
echo JHTML::link($link, $desc, array('target' => '_blank'));
}
?>
</td>
</tr>
</table><br />
<?php
echo JHTML::_('form.token');
?>
</form>
<?php
示例11: defined
*/
defined('_JEXEC') or die;
if ($this->config['show_sectionheader'] == 1) {
?>
<table width="100%" class="contentpaneopen">
<tr>
<td class="contentheading">
<?php
if ($this->roundid > 0) {
$title = JText::_('COM_JOOMLEAGUE_RESULTS_ROUND_RESULTS');
if (isset($this->division)) {
$title = JText::sprintf('COM_JOOMLEAGUE_RESULTS_ROUND_RESULTS2', '<i>' . $this->division->name . '</i>');
}
JoomleagueHelperHtml::showMatchdaysTitle($title, $this->roundid, $this->config, $this->project, $this->overallconfig);
if ($this->showediticon) {
$link = JoomleagueHelperRoute::getResultsRoute($this->project->id, $this->roundid, $this->divisionid, 0, 0, 'match.display');
$imgTitle = JText::_('COM_JOOMLEAGUE_RESULTS_ENTER_EDIT_RESULTS');
$desc = JHtml::image('media/com_joomleague/jl_images/edit.png', $imgTitle, array(' title' => $imgTitle));
echo ' ';
echo JHtml::link($link, $desc);
}
} else {
//1 request for current round
// seems to be this shall show a plan of matches of a team???
JoomleagueHelperHtml::showMatchdaysTitle(JText::_('COM_JOOMLEAGUE_RESULTS_PLAN') . " - " . $team->name, 0, $this->config, $this->project, $this->overallconfig);
}
?>
</td>
</tr>
</table>
<?php
示例12: saveshort
function saveshort()
{
JRequest::checkToken() or jexit('COM_JOOMLEAGUE_GLOBAL_INVALID_TOKEN');
$msg = '';
$post = JRequest::get('post');
$cid = JRequest::getVar('cid', array(), 'post', 'array');
JArrayHelper::toInteger($cid);
$project_id = JRequest::getVar('p', '', 'post', 'int');
$round_id = JRequest::getVar('r', '', 'post', 'int');
$model = $this->getModel('results');
$user = JFactory::getUser();
$allowed = $model->isAllowed();
$isMatchAdmin = $model->isMatchAdmin($cid, $user->id);
if (!$allowed && !$isMatchAdmin) {
$link = JoomleagueHelperRoute::getResultsRoute($project_id, $round_id);
$msg = JText::_('COM_JOOMLEAGUE_SAVE_RESULTS_NO_PRIVILEGES');
$this->setRedirect($link, $msg);
}
for ($x = 0; $x < count($cid); $x++) {
if (!isset($post['published' . $cid[$x]])) {
$post['published' . $cid[$x]] = '0';
}
$post['match_date' . $cid[$x]] = JoomleagueHelper::convertDate($post['match_date' . $cid[$x]], 0);
//clear ranking cache
$cache = JFactory::getCache('joomleague.project' . $project_id);
$cache->clean();
if ($model->save_array($cid[$x], $post, true, $project_id)) {
$msg = JText::_('COM_JOOMLEAGUE_SAVE_RESULTS_SUCCESS');
} else {
$msg = JText::_('COM_JOOMLEAGUE_SAVE_RESULTS_ERROR');
}
}
$link = JoomleagueHelperRoute::getResultsRoute($project_id, $round_id);
echo '#' . $msg . '#';
$this->setRedirect($link, $msg);
}
示例13: getLink
/**
* return link for specified view - allow seo consistency
*
* @param string $view
* @return string url
*/
public function getLink($view)
{
if (!$this->_project_id) {
return false;
}
// echo 'getLink <br>';
// echo 'round_id ->'.$this->_round_id.'<br>';
// echo 'project_id ->'.$this->_project_id.'<br>';
// echo 'division_id ->'.$this->_division_id.'<br>';
// echo 'team_id ->'.$this->_team_id.'<br>';
switch ($view) {
case "calendar":
$link = JoomleagueHelperRoute::getTeamPlanRoute($this->_project_id, $this->_team_id, $this->_division_id);
break;
case "curve":
$link = JoomleagueHelperRoute::getCurveRoute($this->_project_id, $this->_team_id, 0, $this->_division_id);
break;
case "eventsranking":
$link = JoomleagueHelperRoute::getEventsRankingRoute($this->_project_id, $this->_division_id, $this->_team_id);
break;
case "matrix":
$link = JoomleagueHelperRoute::getMatrixRoute($this->_project_id, $this->_division_id);
break;
case "referees":
$link = JoomleagueHelperRoute::getRefereesRoute($this->_project_id);
break;
case "results":
$link = JoomleagueHelperRoute::getResultsRoute($this->_project_id, $this->_round_id, $this->_division_id);
break;
case "resultsmatrix":
$link = JoomleagueHelperRoute::getResultsMatrixRoute($this->_project_id, $this->_round_id, $this->_division_id);
break;
case "resultsranking":
$link = JoomleagueHelperRoute::getResultsRankingRoute($this->_project_id, $this->_round_id, $this->_division_id);
break;
case "rankingalltime":
$link = JoomleagueHelperRoute::getRankingAllTimeRoute($this->_league_id, $this->getParam('show_alltimetable_points'), $this->_project_id);
break;
case "resultsrankingmatrix":
$link = JoomleagueHelperRoute::getResultsRankingMatrixRoute($this->_project_id, $this->_round_id, $this->_division_id);
break;
case "roster":
if (!$this->_team_id) {
return false;
}
$link = JoomleagueHelperRoute::getPlayersRoute($this->_project_id, $this->_team_id);
break;
case "stats":
$link = JoomleagueHelperRoute::getStatsRoute($this->_project_id, $this->_division_id);
break;
case "statsranking":
$link = JoomleagueHelperRoute::getStatsRankingRoute($this->_project_id, $this->_division_id);
break;
case "teaminfo":
if (!$this->_team_id) {
return false;
}
$link = JoomleagueHelperRoute::getTeamInfoRoute($this->_project_id, $this->_team_id);
break;
case "teamplan":
if (!$this->_team_id) {
return false;
}
$link = JoomleagueHelperRoute::getTeamPlanRoute($this->_project_id, $this->_team_id, $this->_division_id);
break;
case "clubinfo":
if (!$this->_team_id) {
return false;
}
$this->getClubId();
$link = JoomleagueHelperRoute::getClubInfoRoute($this->_project_id, $this->_club_id);
break;
case "clubplan":
if (!$this->_team_id) {
return false;
}
$this->getClubId();
$link = JoomleagueHelperRoute::getClubPlanRoute($this->_project_id, $this->_club_id);
break;
case "teamstats":
if (!$this->_team_id) {
return false;
}
$link = JoomleagueHelperRoute::getTeamStatsRoute($this->_project_id, $this->_team_id);
break;
case "treetonode":
$link = JoomleagueHelperRoute::getBracketsRoute($this->_project_id);
break;
case "jltournamenttree":
$link = JoomleagueHelperRoute::getTournamentRoute($this->_project_id, $this->_round_id);
break;
case "separator":
return false;
default:
//.........这里部分代码省略.........
示例14: array
"
align="center" style="display: none"><?php
if ($this->config['show_teams_logos']) {
$picture = $season->picture;
if (@is_null($picture) or strpos($picture, "/com_joomleague/images/placeholders/placeholder_450.png") or strpos($picture, "/joomleague/placeholders/placeholder_450.png")) {
$picture = JoomleagueHelper::getDefaultPlaceholder("team");
}
$picture_descr = JText::_("COM_JOOMLEAGUE_TEAMINFO_PLAYERS_PICTURE") . " " . $this->team->name . " (" . $season->projectname . ")";
echo JHtml::image($picture, $picture_descr, array("title" => $picture_descr));
}
?>
<br />
<?php
$link = JoomleagueHelperRoute::getPlayersRoute($season->project_slug, $season->team_slug);
echo JHtml::link($link, JText::_('COM_JOOMLEAGUE_TEAMINFO_SEASON_PLAYERS'));
?>
<br />
<?php
$link = JoomleagueHelperRoute::getResultsRoute($season->project_slug);
echo JHtml::link($link, JText::_('COM_JOOMLEAGUE_TEAMINFO_SEASON_RESULTS'));
?>
<br />
<?php
$link = JoomleagueHelperRoute::getRankingRoute($season->project_slug);
echo JHtml::link($link, JText::_('COM_JOOMLEAGUE_TEAMINFO_SEASON_TABLES'));
?>
<br />
</div>
<?php
}
}
示例15: getLink
/**
* return link for specified view - allow seo consistency
*
* @param string $view
* @return string url
*/
public function getLink($view)
{
if (!$this->_project_id) {
return false;
}
switch ($view) {
case "calendar":
$link = JoomleagueHelperRoute::getTeamPlanRoute($this->_project_id, $this->_team_id, $this->_division_id);
break;
case "curve":
$link = JoomleagueHelperRoute::getCurveRoute($this->_project_id, $this->_team_id, 0, $this->_division_id);
break;
case "eventsranking":
$link = JoomleagueHelperRoute::getEventsRankingRoute($this->_project_id, $this->_division_id, $this->_team_id);
break;
case "matrix":
$link = JoomleagueHelperRoute::getMatrixRoute($this->_project_id, $this->_division_id);
break;
case "referees":
$link = JoomleagueHelperRoute::getRefereesRoute($this->_project_id);
break;
case "results":
$link = JoomleagueHelperRoute::getResultsRoute($this->_project_id, $this->_round_id, $this->_division_id);
break;
case "resultsmatrix":
$link = JoomleagueHelperRoute::getResultsMatrixRoute($this->_project_id, $this->_round_id, $this->_division_id);
break;
case "resultsranking":
$link = JoomleagueHelperRoute::getResultsRankingRoute($this->_project_id, $this->_round_id, $this->_division_id);
break;
case "resultsrankingmatrix":
$link = JoomleagueHelperRoute::getResultsRankingMatrixRoute($this->_project_id, $this->_round_id, $this->_division_id);
break;
case "roster":
if (!$this->_team_id) {
return false;
}
$link = JoomleagueHelperRoute::getPlayersRoute($this->_project_id, $this->_team_id, null, $this->_division_id);
break;
case "stats":
$link = JoomleagueHelperRoute::getStatsRoute($this->_project_id, $this->_division_id);
break;
case "statsranking":
$link = JoomleagueHelperRoute::getStatsRankingRoute($this->_project_id, $this->_division_id);
break;
case "teaminfo":
if (!$this->_team_id) {
return false;
}
$link = JoomleagueHelperRoute::getTeamInfoRoute($this->_project_id, $this->_team_id);
break;
case "teamplan":
if (!$this->_team_id) {
return false;
}
$link = JoomleagueHelperRoute::getTeamPlanRoute($this->_project_id, $this->_team_id, $this->_division_id);
break;
case "teamstats":
if (!$this->_team_id) {
return false;
}
$link = JoomleagueHelperRoute::getTeamStatsRoute($this->_project_id, $this->_team_id);
break;
case "treetonode":
$link = JoomleagueHelperRoute::getBracketsRoute($this->_project_id);
break;
case "separator":
return false;
default:
case "ranking":
$link = JoomleagueHelperRoute::getRankingRoute($this->_project_id, $this->_round_id, null, null, 0, $this->_division_id);
}
return $link;
}