本文整理汇总了PHP中Helper_Admin::getIcon方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper_Admin::getIcon方法的具体用法?PHP Helper_Admin::getIcon怎么用?PHP Helper_Admin::getIcon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Helper_Admin
的用法示例。
在下文中一共展示了Helper_Admin::getIcon方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: prepareToolbar
public function prepareToolbar()
{
$canDo = Helper_Admin::getActions();
$this->e_type = $this->state->get('filter.e_type');
$type = $this->e_type == 'search' ? _C4_TEXT : _C2_TEXT;
$type2 = $this->e_type == 'search' ? 'search' : 'form';
JToolBarHelper::title(JText::_(_C6_TEXT . '_MANAGER') . ' - ' . JText::_('COM_CCK_' . $type . 's'), Helper_Admin::getIcon($this->vName));
if ($canDo->get('core.delete')) {
JToolBarHelper::custom($this->vName . 's' . '.delete', 'delete', 'delete', 'JTOOLBAR_DELETE', true);
}
require_once JPATH_ADMINISTRATOR . '/components/com_cck/helpers/toolbar/link.php';
JToolBar::getInstance('toolbar')->appendButton('CckLink', 'cck-' . $type2, JText::_('COM_CCK_' . $type . 'S'), JRoute::_('index.php?option=com_cck&view=' . $this->e_type . 's'), '_self');
}
示例2: prepareToolbar
public function prepareToolbar()
{
$canDo = Helper_Admin::getActions();
$this->extension = $this->state->get('filter.extension');
if ($this->extension == 'extension') {
JToolBarHelper::title(JText::_('COM_CCK_SESSION_MANAGER'), Helper_Admin::getIcon($this->vName));
return;
}
Helper_Session::loadExtensionLang($this->extension);
JToolBarHelper::title(JText::_('COM_CCK_SESSION_MANAGER') . ' - ' . JText::_($this->extension), Helper_Admin::getIcon($this->vName));
if ($canDo->get('core.delete')) {
JToolBarHelper::custom($this->vName . 's' . '.delete', 'delete', 'delete', 'JTOOLBAR_DELETE', true);
}
require_once JPATH_ADMINISTRATOR . '/components/com_cck/helpers/toolbar/link.php';
JToolBar::getInstance('toolbar')->appendButton('CckLink', 'cck-extension', JText::_($this->extension), JRoute::_('index.php?option=' . $this->extension), '_self');
$this->sidebar = '';
}