本文整理汇总了PHP中JoomleagueHelperRoute::getRankingMatrixRoute方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomleagueHelperRoute::getRankingMatrixRoute方法的具体用法?PHP JoomleagueHelperRoute::getRankingMatrixRoute怎么用?PHP JoomleagueHelperRoute::getRankingMatrixRoute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JoomleagueHelperRoute
的用法示例。
在下文中一共展示了JoomleagueHelperRoute::getRankingMatrixRoute方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: getroute
function getroute()
{
$app =& JFactory::getApplication();
$view = Jrequest::getCmd('view');
switch ($view) {
case "teaminfo":
$link = JoomleagueHelperRoute::getTeamInfoRoute(JRequest::getVar('p'), JRequest::getVar('tid'));
break;
case "resultsranking":
$link = JoomleagueHelperRoute::getResultsRankingRoute(JRequest::getVar('p'));
break;
case "rankingmatrix":
$link = JoomleagueHelperRoute::getRankingMatrixRoute(JRequest::getVar('p'));
break;
case "resultsrankingmatrix":
$link = JoomleagueHelperRoute::getResultsRankingMatrixRoute(JRequest::getVar('p'));
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'));
break;
case "eventsranking":
$link = JoomleagueHelperRoute::getEventsRankingRoute(JRequest::getVar('p'), JRequest::getVar('division'));
break;
case "curve":
$link = JoomleagueHelperRoute::getCurveRoute(JRequest::getVar('p'), 0, 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'), null, null, null, 0, JRequest::getVar('division'));
}
echo json_encode($link);
$app->close();
}