本文整理汇总了PHP中hwdMediaShareHelperRoute::getGroupRoute方法的典型用法代码示例。如果您正苦于以下问题:PHP hwdMediaShareHelperRoute::getGroupRoute方法的具体用法?PHP hwdMediaShareHelperRoute::getGroupRoute怎么用?PHP hwdMediaShareHelperRoute::getGroupRoute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类hwdMediaShareHelperRoute
的用法示例。
在下文中一共展示了hwdMediaShareHelperRoute::getGroupRoute方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getObjectInfo
function getObjectInfo($id, $language = null)
{
$info = new JCommentsObjectInfo();
$routerHelper = JPATH_SITE . '/components/com_hwdmediashare/helpers/route.php';
if (is_file($routerHelper)) {
require_once $routerHelper;
$db = JFactory::getDBO();
$db->setQuery('SELECT id, title, access, created_user_id FROM #__hwdms_groups WHERE id = ' . $id);
$row = $db->loadObject();
if (!empty($row)) {
$slug = $row->alias ? $row->id . ':' . $row->alias : $row->id;
$info->title = $row->title ? 'Unknown hwdMediaShare Content' : $row->title;
$info->userid = $row->created_user_id;
$info->access = $row->access;
$info->link = JRoute::_(hwdMediaShareHelperRoute::getGroupRoute($slug));
}
}
return $info;
}
示例2: echo
?>
<li><?php
echo JHtml::_('hwdicon.delete', 'group', $item, $this->params);
?>
</li>
<?php
}
?>
</ul>
</li>
</ul>
<?php
}
?>
<a href="<?php
echo JRoute::_(hwdMediaShareHelperRoute::getGroupRoute($item->slug));
?>
"> <?php
echo $this->escape($item->title);
?>
</a></td>
<td class="list-date"><?php
echo JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC2'));
?>
</td>
<td class="list-author"><a href="#"><?php
echo $this->escape($item->author);
?>
</a></td>
<td class="list-hits"><?php
echo (int) $item->hits;