本文整理汇总了PHP中JoomleagueHelperRoute::getTeamInfoRoute方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomleagueHelperRoute::getTeamInfoRoute方法的具体用法?PHP JoomleagueHelperRoute::getTeamInfoRoute怎么用?PHP JoomleagueHelperRoute::getTeamInfoRoute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JoomleagueHelperRoute
的用法示例。
在下文中一共展示了JoomleagueHelperRoute::getTeamInfoRoute方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
}
示例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();
}
示例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();
}
示例4: foreach
$career['played'] = 0;
$career['started'] = 0;
$career['in'] = 0;
$career['out'] = 0;
$career['playedtime'] = 0;
$player = JLGModel::getInstance("Person", "JoomleagueModel");
if (count($this->historyPlayer) > 0) {
foreach ($this->historyPlayer as $player_hist) {
$model = $this->getModel();
$this->inoutstat = $model->getInOutStats($player_hist->project_id, $player_hist->ptid, $player_hist->tpid);
// time played
$timePlayed = 0;
$this->timePlayed = $model->getTimePlayed($player_hist->tpid, $this->project->game_regular_time);
$timePlayed = $this->timePlayed;
$link1 = JoomleagueHelperRoute::getPlayerRoute($player_hist->project_slug, $player_hist->team_slug, $this->person->slug);
$link2 = JoomleagueHelperRoute::getTeamInfoRoute($player_hist->project_slug, $player_hist->team_slug);
?>
<tr class="<?php
echo $k == 0 ? $this->config['style_class1'] : $this->config['style_class2'];
?>
">
<td class="td_l" nowrap="nowrap"><?php
echo JHtml::link($link1, $player_hist->project_name);
?>
</td>
<td class="td_l" class="nowrap">
<?php
if ($this->config['show_playerstats_teamlink'] == 1) {
echo JHtml::link($link2, $player_hist->team_name);
} else {
echo $player_hist->team_name;
示例5: foreach
?>
</th>
<th class="td_l"><?php
echo JText::_('COM_JOOMLEAGUE_PERSON_TEAM');
?>
</th>
<th class="td_l"><?php
echo JText::_('COM_JOOMLEAGUE_PERSON_POSITION');
?>
</th>
</tr>
<?php
$k = 0;
foreach ($this->historyPlayer as $station) {
$link1 = JoomleagueHelperRoute::getPlayerRoute($station->project_slug, $station->team_slug, $this->person->slug);
$link2 = JoomleagueHelperRoute::getTeamInfoRoute($station->project_slug, $station->team_slug);
?>
<tr class="<?php
echo $k == 0 ? $this->config['style_class1'] : $this->config['style_class2'];
?>
">
<td class="td_l">
<?php
echo JHtml::link($link1, $station->project_name);
?>
</td>
<td class="td_l"><?php
echo $station->season_name;
?>
</td>
<td class="td_l"><?php
示例6:
<?php
if ($this->config['show_nation'] == 1) {
?>
<td class="td_c playercountry"><?php
echo Countries::getCountryFlag($row->country);
?>
</td>
<?php
}
?>
<td class="td_l playerteam" width="30%">
<?php
$team = $this->teams[$row->tid];
if ($this->config['link_to_team'] == 1 && $this->project->id > 0 && $row->tid > 0) {
$link = JoomleagueHelperRoute::getTeamInfoRoute($this->project->id, $row->tid);
} else {
$link = null;
}
$teamName = JoomleagueHelper::formatTeamName($team, "t" . $row->tid, $this->config, $highlightFavTeam, $link);
echo $teamName;
?>
</td>
<?php
$value = $row->p > 9 ? $row->p : ' ' . $row->p;
?>
<td class="td_c playertotal"><?php
echo $value;
?>
</td>
示例7: foreach
?>
</h2>
<!-- Now show teams of this club -->
<div class="venuecontent">
<?php
foreach ((array) $this->teams as $key => $value) {
?>
<?php
$projectname = $value->project;
?>
<?php
foreach ($value->project_team as $team) {
$teaminfo = $value->teaminfo[0][0];
$link = JoomleagueHelperRoute::getTeamInfoRoute($team->project_id, $team->team_id);
?>
<h4><?php
echo $projectname . " - " . JHtml::link($link, $teaminfo->name) . ($teaminfo->short_name ? " (" . $teaminfo->short_name . ")" : '');
?>
</h4>
<div class="clubteaminfo">
<?php
$description = $teaminfo->notes;
echo !empty($description) ? JText::_('COM_JOOMLEAGUE_PLAYGROUND_TEAMINFO') . " " . JHtml::_('content.prepare', $description) : '';
?>
</div>
<?php
}
?>
<?php
示例8: getLink
function getLink(&$item)
{
switch ($this->params->get('teamlink')) {
case 0:
return '';
case 1:
return JoomleagueHelperRoute::getTeamInfoRoute($this->project->slug, $item->team_slug);
case 2:
return JoomleagueHelperRoute::getPlayersRoute($this->project->slug, $item->team_slug);
case 3:
return JoomleagueHelperRoute::getTeamPlanRoute($this->project->slug, $item->team_slug);
case 4:
return JoomleagueHelperRoute::getClubInfoRoute($this->project->slug, $item->club_slug);
case 5:
return isset($item->club_www) ? $item->club_www : $item->website;
}
}
示例9:
}
?>
<!-- highest defeat away -->
<?php
if (!empty($this->highestdef_away)) {
?>
<td class="statvalue">
<?php
$link = JoomleagueHelperRoute::getMatchReportRoute($this->project->id, $this->highestdef_away->matchid);
$highestdef_away_result = $this->highestdef_away->homegoals . $this->overallconfig['seperator'] . $this->highestdef_away->guestgoals;
echo JHtml::link($link, $highestdef_away_result);
?>
<br>
<?php
$team1 = JoomleagueHelperRoute::getTeamInfoRoute($this->project->id, $this->highestdef_away->team1_id);
$team2 = JoomleagueHelperRoute::getTeamInfoRoute($this->project->id, $this->highestdef_away->team2_id);
$match = JHtml::link($team1, $this->highestdef_away->hometeam) . "<br>" . $this->overallconfig['seperator'] . "<br>" . JHtml::link($team2, $this->highestdef_away->guestteam);
echo $match;
?>
</td>
<?php
} else {
?>
<td class="statvalue">
----
</td>
<?php
}
?>
<?php
}
示例10: explode
if ($game->match_date) {
echo $gameDate;
}
?>
</th>
</tr>
<?php
}
$prevDate = $gameDate;
}
}
$class = $k == 0 ? $this->config['style_class1'] : $this->config['style_class2'];
$result_link = JoomleagueHelperRoute::getResultsRoute($game->project_id, $game->roundid, $game->division_id);
$nextmatch_link = JoomleagueHelperRoute::getNextmatchRoute($game->project_id, $game->id);
$teaminfo1_link = JoomleagueHelperRoute::getTeamInfoRoute($game->project_id, $game->team1_id);
$teaminfo2_link = JoomleagueHelperRoute::getTeamInfoRoute($game->project_id, $game->team2_id);
$teamstats1_link = JoomleagueHelperRoute::getTeamStatsRoute($game->project_id, $game->team1_id);
$teamstats2_link = JoomleagueHelperRoute::getTeamStatsRoute($game->project_id, $game->team2_id);
$playground_link = JoomleagueHelperRoute::getPlaygroundRoute($game->project_id, $game->playground_id);
$favs = JoomleagueHelper::getProjectFavTeams($game->project_id);
$favteams = explode(",", $favs->fav_team);
if ($this->config['which_link2'] == 1) {
$link1 = $teaminfo1_link;
$link2 = $teaminfo2_link;
} else {
if ($this->config['which_link2'] == 2) {
$link1 = $teamstats1_link;
$link2 = $teamstats2_link;
} else {
$link1 = null;
$link2 = null;
示例11:
$link = JoomleagueHelperRoute::getPlayerRoute($list['project']->slug, $list['infoteam']->team_id, $person->slug);
echo JHtml::link($link, $text);
} else {
echo JText::sprintf('%1$s', $text);
}
?>
</li>
<?php
if ($params->get('show_team_name')) {
?>
<li class="teamname">
<?php
echo JoomleagueHelper::getPictureThumb($list['infoteam']->team_picture, $list['infoteam']->name, $params->get('team_picture_width', 21), $params->get('team_picture_height', 0), 1) . " ";
$text = $list['infoteam']->name;
if ($params->get('show_team_link')) {
$link = JoomleagueHelperRoute::getTeamInfoRoute($list['project']->slug, $list['infoteam']->team_id);
echo JHtml::link($link, $text);
} else {
echo JText::sprintf('%1$s', $text);
}
?>
</li>
<?php
}
if ($params->get('show_position_name') && isset($list['inprojectinfo']->position_name)) {
?>
<li class="positionname"><?php
$positionName = $list['inprojectinfo']->position_name;
echo JText::_($positionName);
?>
</li>
示例12: array
<?php
echo JText::_('COM_JOOMLEAGUE_CLUBINFO_TEAMS');
?>
</div>
</div>
<table>
<div class="left-column-teamlist">
<?php
$params = array();
$params['width'] = "30";
foreach ($this->teams as $team) {
if ($team->team_name) {
//$link = JoomleagueHelperRoute::getProjectTeamInfoRoute( $team->pid, $team->ptid );
// diddipoeler
//$link = JoomleagueHelperRoute::getTeamInfoRoute( $team->pid, $team->id );
$link = JoomleagueHelperRoute::getTeamInfoRoute($team->pid, $team->team_slug);
?>
<tr>
<td>
<span class="">
<?php
//echo JHTML::link( $link, $team->team_name );
//echo JHTML::image($team->trikot_home, $team->team_name, $params).JHTML::link( $link, $team->team_name );
// echo JHTML::link( $link, $team->team_name.JHTML::image($team->trikot_home, $team->team_name, $params) );
if ($team->team_shortcut) {
//echo "(" . $team->team_shortcut . ")";
if ($this->config['show_teams_trikot_of_club']) {
if ($this->config['show_teams_shortcut_of_club']) {
echo JHTML::link($link, JHTML::image($team->trikot_home, $team->team_name, $params) . $team->team_name . " (" . $team->team_shortcut . ")");
} else {
echo JHTML::link($link, JHTML::image($team->trikot_home, $team->team_name, $params) . $team->team_name);
示例13: 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') . ' ' . $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') . ' ' . $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') . ' ' . $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') . ' ' . $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') . ' ' . $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') . ' ' . $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') . ' ' . $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') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/rivals.png';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
return $output;
}
示例14: array
?>
</tr>
</thead>
<tbody>
<?php
$k = 0;
$total = array();
$total['startRoster'] = 0;
$total['in'] = 0;
$total['out'] = 0;
$total['playedtime'] = 0;
$total_event_stats = array();
foreach ($this->games as $game) {
$report_link = JoomleagueHelperRoute::getMatchReportRoute($this->project->slug, $game->id);
$teaminfo_home_link = JoomleagueHelperRoute::getTeamInfoRoute($this->project->slug, $this->teams[$game->projectteam1_id]->team_id);
$teaminfo_away_link = JoomleagueHelperRoute::getTeamInfoRoute($this->project->slug, $this->teams[$game->projectteam2_id]->team_id);
// gespielte zeit
$model = $this->getModel();
$timePlayed = 0;
$this->assignRef('timePlayed', $model->getTimePlayed($this->teamPlayer->id, $this->project->game_regular_time, $game->id, $this->overallconfig['person_events']));
$timePlayed = $this->timePlayed;
?>
<tr class="<?php
echo $k == 0 ? $this->config['style_class1'] : $this->config['style_class2'];
?>
">
<td class="td_l"><?php
echo JHTML::link($report_link, strftime($this->config['games_date_format'], strtotime($game->match_date)));
?>
</td>
<td class="td_r<?php
示例15:
}
?>
</fieldset>
</div>
<?php
}
}
if ($this->config['show_team_info']) {
?>
<div class="jl_parentContainer">
<span class="clubinfo_listing_item"> <?php
echo JText::_('COM_JOOMLEAGUE_TEAMINFO_TEAM_NAME');
?>
</span>
<span class="clubinfo_listing_value"> <?php
$link = JoomleagueHelperRoute::getTeamInfoRoute($this->project->slug, $this->team->slug);
echo JHTML::link($link, $this->team->tname);
?>
</span>
</div>
<div class="jl_parentContainer">
<span class="clubinfo_listing_item"> <?php
echo JText::_('COM_JOOMLEAGUE_TEAMINFO_TEAM_NAME_SHORT');
?>
</span>
<span class="clubinfo_listing_value"> <?php
$link = JoomleagueHelperRoute::getTeamStatsRoute($this->project->slug, $this->team->slug);
echo JHTML::link($link, $this->team->short_name);
?>
</span>
</div>