当前位置: 首页>>代码示例>>PHP>>正文


PHP JoomleagueHelperRoute::getTeamPlanRoute方法代码示例

本文整理汇总了PHP中JoomleagueHelperRoute::getTeamPlanRoute方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomleagueHelperRoute::getTeamPlanRoute方法的具体用法?PHP JoomleagueHelperRoute::getTeamPlanRoute怎么用?PHP JoomleagueHelperRoute::getTeamPlanRoute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JoomleagueHelperRoute的用法示例。


在下文中一共展示了JoomleagueHelperRoute::getTeamPlanRoute方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getTeamLink

 public static function getTeamLink($item, $params, $project)
 {
     switch ($params->get('teamlink')) {
         case 'teaminfo':
             return JoomleagueHelperRoute::getTeamInfoRoute($project->slug, $item->team_slug);
         case 'roster':
             return JoomleagueHelperRoute::getPlayersRoute($project->slug, $item->team_slug);
         case 'teamplan':
             return JoomleagueHelperRoute::getTeamPlanRoute($project->slug, $item->team_slug);
         case 'clubinfo':
             return JoomleagueHelperRoute::getClubInfoRoute($project->slug, $item->club_slug);
     }
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:13,代码来源:helper.php

示例2: 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();
 }
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:51,代码来源:ajax.json.php

示例3: 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();
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:39,代码来源:ajax.json.php

示例4: switch

         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>";
         $urlfrontaway = '<a href="' . $plan_link . '">';
         $urlbackaway = "</a>";
         break;
 }
 // Decide how team name/icon will be shown
 switch ($teamformat) {
     //Long name
     case 0:
         $home_name = $urlfronthome . $match->home_name . $urlbackhome;
         $away_name = $urlfrontaway . $match->away_name . $urlbackaway;
         break;
         //Middle name
     //Middle name
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:31,代码来源:default.php

示例5: showTeamIcons

 static function showTeamIcons(&$team, &$config)
 {
     if (!isset($team->projectteamid)) {
         return "";
     }
     $projectteamid = $team->projectteamid;
     $teamname = $team->name;
     $teamid = $team->team_id;
     $teamSlug = isset($team->team_slug) ? $team->team_slug : $teamid;
     $clubSlug = isset($team->club_slug) ? $team->club_slug : $team->club_id;
     $division_slug = isset($team->division_slug) ? $team->division_slug : $team->division_id;
     $projectSlug = isset($team->project_slug) ? $team->project_slug : $team->project_id;
     $output = '';
     if ($config['show_team_link']) {
         $link = JoomleagueHelperRoute::getPlayersRoute($projectSlug, $teamSlug);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_ROSTER_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/team_icon.png';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     if ((!isset($team_plan) || $teamid != $team_plan->id) && $config['show_plan_link']) {
         $link = JoomleagueHelperRoute::getTeamPlanRoute($projectSlug, $teamSlug, $division_slug);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_TEAMPLAN_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/calendar_icon.gif';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     if ($config['show_curve_link']) {
         $link = JoomleagueHelperRoute::getCurveRoute($projectSlug, $teamSlug, 0, $division_slug);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_CURVE_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/curve_icon.gif';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     if ($config['show_teaminfo_link']) {
         $link = JoomleagueHelperRoute::getTeamInfoRoute($projectSlug, $teamid);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_TEAMINFO_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/teaminfo_icon.png';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     if ($config['show_club_link']) {
         $link = JoomleagueHelperRoute::getClubInfoRoute($projectSlug, $clubSlug);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_CLUBINFO_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/mail.gif';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     if ($config['show_teamstats_link']) {
         $link = JoomleagueHelperRoute::getTeamStatsRoute($projectSlug, $teamSlug);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_TEAMSTATS_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/teamstats_icon.png';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     if ($config['show_clubplan_link']) {
         $link = JoomleagueHelperRoute::getClubPlanRoute($projectSlug, $clubSlug);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_CLUBPLAN_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/clubplan_icon.png';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     if ($config['show_rivals_link']) {
         $link = JoomleagueHelperRoute::getRivalsRoute($projectSlug, $teamSlug);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_RIVALS_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/rivals.png';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     return $output;
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:71,代码来源:joomleaguehelper.php

示例6: switch

		<?php 
        // Define some variables which will be used
        $teamA = '';
        $teamB = '';
        $score = "";
        // Check if the home and guest team should be switched arround
        if ($this->config['switch_home_guest']) {
            $class1 = 'left';
            $class2 = 'right';
        } else {
            $class1 = 'right';
            $class2 = 'left';
        }
        if ($this->config['show_teamplan_link']) {
            $homelink = JoomleagueHelperRoute::getTeamPlanRoute($this->project->slug, $hometeam->team_slug);
            $awaylink = JoomleagueHelperRoute::getTeamPlanRoute($this->project->slug, $guestteam->team_slug);
        } else {
            $homelink = null;
            $awaylink = null;
        }
        $isFavTeam = in_array($hometeam->id, $this->favteams);
        $home = JoomleagueHelper::formatTeamName($hometeam, "g" . $match->id . "t" . $hometeam->id, $this->config, $isFavTeam, $homelink);
        $teamA .= '<td class="' . $class1 . '">' . $home . '</td>';
        // Check if the user wants to show the club logo or country flag
        switch ($this->config['show_logo_small']) {
            case 1:
                $teamA .= '<td class="' . $class1 . '">';
                $teamA .= ' ' . JoomleagueModelProject::getClubIconHtml($hometeam, 1);
                $teamA .= '</td>';
                $teamB .= '<td class="' . $class2 . '">';
                $teamB .= JoomleagueModelProject::getClubIconHtml($guestteam, 1) . ' ';
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:31,代码来源:default_plan.php

示例7: printf

         $teamplan_link = JoomleagueHelperRoute::getTeamPlanRoute($team->team->project_id, $team->_teamid, 0, 2);
         echo JHTML::link($teamplan_link, $team->cnt_draw);
     } else {
         printf($format, $team->cnt_draw);
     }
     echo '</td>';
     echo "\n";
     break;
 case 'LOSSES':
     echo '<td class="rankingrow"';
     if ($color != '' && $config['use_background_row_color']) {
         echo 'style="background-color:' . $color . '"';
     }
     echo '>';
     if ($config['show_wdl_teamplan_link'] == 1) {
         $teamplan_link = JoomleagueHelperRoute::getTeamPlanRoute($team->team->project_id, $team->_teamid, 0, 3);
         echo JHTML::link($teamplan_link, $team->cnt_lost);
     } else {
         printf($format, $team->cnt_lost);
     }
     echo '</td>';
     echo "\n";
     break;
 case 'WOT':
     echo '<td class="rankingrow"';
     if ($color != '' && $config['use_background_row_color']) {
         echo 'style="background-color:' . $color . '"';
     }
     echo '>';
     printf($format, $team->cnt_wot);
     echo '</td>';
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:31,代码来源:default_rankingrows.php

示例8: 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:
//.........这里部分代码省略.........
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:101,代码来源:helper.php

示例9: 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;
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:80,代码来源:helper.php

示例10: foreach

</td>
		<td><?php 
echo JText::_('COM_JOOMLEAGUE_TEAMINFO_TOTAL_GOALS');
?>
</td>
		<td><?php 
echo JText::_('COM_JOOMLEAGUE_TEAMINFO_TOTAL_PLAYERS');
?>
</td>
	</tr>
	<?php 
$k = 0;
foreach ($this->seasons as $season) {
    $ranking_link = JoomleagueHelperRoute::getRankingRoute($season->project_slug, null, null, null, 0, $season->division_slug);
    $results_link = JoomleagueHelperRoute::getResultsRoute($season->project_slug, null, $season->division_slug);
    $teamplan_link = JoomleagueHelperRoute::getTeamPlanRoute($season->project_slug, $this->team->slug, $season->division_slug);
    $teamstats_link = JoomleagueHelperRoute::getTeamStatsRoute($season->project_slug, $this->team->slug);
    $players_link = JoomleagueHelperRoute::getPlayersRoute($season->project_slug, $season->team_slug);
    ?>
	<tr class="<?php 
    echo $k == 0 ? $this->config['style_class1'] : $this->config['style_class2'];
    ?>
">
		<td><?php 
    echo $season->season;
    ?>
</td>
		<td><?php 
    echo $season->league;
    ?>
</td>
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:31,代码来源:default_history.php


注:本文中的JoomleagueHelperRoute::getTeamPlanRoute方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。