本文整理汇总了PHP中JoomleagueHelperRoute::getUserProfileRouteCBE方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomleagueHelperRoute::getUserProfileRouteCBE方法的具体用法?PHP JoomleagueHelperRoute::getUserProfileRouteCBE怎么用?PHP JoomleagueHelperRoute::getUserProfileRouteCBE使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JoomleagueHelperRoute
的用法示例。
在下文中一共展示了JoomleagueHelperRoute::getUserProfileRouteCBE方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: switch
echo JText::_('COM_JOOMLEAGUE_PRED_USERS_INFO_NAME');
?>
</td>
<td class='data'>
<?php
$outputName = JText::sprintf('%1$s %2$s', $outputUserName, '');
if ($this->predictionMember->user_id) {
switch ($this->config['show_user_profile']) {
case 1:
// Link to Joomla Contact Page
$link = JoomleagueHelperRoute::getContactRoute($this->predictionMember->user_id);
$outputName = JHTML::link($link, $outputName);
break;
case 2:
// Link to CBE User Page with support for JoomLeague Tab
$link = JoomleagueHelperRoute::getUserProfileRouteCBE($this->predictionMember->user_id, $this->predictionGame->id, $this->predictionMember->pmID);
$outputName = JHTML::link($link, $outputName);
break;
default:
break;
}
}
echo $outputName;
?>
</td>
</tr>
<?php
if ($this->config['show_register_date']) {
//echo '<br /><pre>~' . print_r($this->predictionMember,true) . '~</pre><br />';
?>
<tr>
示例2: switch
?>
</span>
</td>
<td class="data">
<?php
$outputName = JoomleagueHelper::formatName(null, $this->person->firstname, $this->person->nickname, $this->person->lastname, $this->config["name_format"]);
if ($this->person->id) {
switch ($this->config['show_user_profile']) {
case 1:
// Link to Joomla Contact Page
$link = JoomleagueHelperRoute::getContactRoute($this->person->contact_id);
$outputName = JHtml::link($link, $outputName);
break;
case 2:
// Link to CBE User Page with support for JoomLeague Tab
$link = JoomleagueHelperRoute::getUserProfileRouteCBE($this->person->id, $this->project->id, $this->person->id);
$outputName = JHtml::link($link, $outputName);
break;
default:
break;
}
}
echo $outputName;
?>
</td>
</tr>
<?php
if (!empty($this->person->nickname)) {
?>
<tr>
<td class="">
示例3: switch
?>
</td>
<td class="data">
<?php
$outputName = JText::sprintf('%1$s %2$s', $this->referee->firstname, $this->referee->lastname);
if ($this->referee->user_id) {
switch ($this->config['show_user_profile']) {
case 1:
// Link to Joomla Contact Page
$link = JoomleagueHelperRoute::getContactRoute($this->referee->user_id);
$outputName = JHTML::link($link, $outputName);
break;
case 2:
// Link to CBE User Page with support for JoomLeague Tab
$link = JoomleagueHelperRoute::getUserProfileRouteCBE($this->referee->user_id, $this->project->id, $this->referee->id);
$outputName = JHTML::link($link, $outputName);
break;
default:
break;
}
}
echo $outputName;
?>
</td>
</tr>
<?php
if (!empty($this->referee->nickname)) {
?>
<tr>
<td class="label">