本文整理匯總了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;