本文整理汇总了PHP中InstallerHelper::getExtensionGroupes方法的典型用法代码示例。如果您正苦于以下问题:PHP InstallerHelper::getExtensionGroupes方法的具体用法?PHP InstallerHelper::getExtensionGroupes怎么用?PHP InstallerHelper::getExtensionGroupes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类InstallerHelper
的用法示例。
在下文中一共展示了InstallerHelper::getExtensionGroupes方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addToolbar
/**
* Add the page title and toolbar.
*
* @return void
*
* @since 1.6
*/
protected function addToolbar()
{
JToolbarHelper::custom('update.update', 'upload', 'upload', 'COM_INSTALLER_TOOLBAR_UPDATE', true, false);
JToolbarHelper::custom('update.find', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_FIND_UPDATES', false, false);
JToolbarHelper::divider();
JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATE');
JHtmlSidebar::setAction('index.php?option=com_installer&view=manage');
JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_CLIENT_SELECT'), 'filter_client_id', JHtml::_('select.options', array('0' => 'JSITE', '1' => 'JADMINISTRATOR'), 'value', 'text', $this->state->get('filter.client_id'), true));
JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_TYPE_SELECT'), 'filter_type', JHtml::_('select.options', InstallerHelper::getExtensionTypes(), 'value', 'text', $this->state->get('filter.type'), true));
JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_FOLDER_SELECT'), 'filter_group', JHtml::_('select.options', array_merge(InstallerHelper::getExtensionGroupes(), array('*' => JText::_('COM_INSTALLER_VALUE_FOLDER_NONAPPLICABLE'))), 'value', 'text', $this->state->get('filter.group'), true));
parent::addToolbar();
}
示例2: addToolbar
/**
* Add the page title and toolbar.
*
* @return void
*
* @since 3.4
*/
protected function addToolbar()
{
$canDo = JHelperContent::getActions('com_installer');
if ($canDo->get('core.edit.state')) {
JToolbarHelper::publish('updatesites.publish', 'JTOOLBAR_ENABLE', true);
JToolbarHelper::unpublish('updatesites.unpublish', 'JTOOLBAR_DISABLE', true);
JToolbarHelper::divider();
}
JHtmlSidebar::setAction('index.php?option=com_installer&view=updatesites');
JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_CLIENT_SELECT'), 'filter_client_id', JHtml::_('select.options', array('0' => 'JSITE', '1' => 'JADMINISTRATOR'), 'value', 'text', $this->state->get('filter.client_id'), true));
JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_STATE_SELECT'), 'filter_enabled', JHtml::_('select.options', array('0' => 'JDISABLED', '1' => 'JENABLED'), 'value', 'text', $this->state->get('filter.enabled'), true));
JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_TYPE_SELECT'), 'filter_type', JHtml::_('select.options', InstallerHelper::getExtensionTypes(), 'value', 'text', $this->state->get('filter.type'), true));
JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_FOLDER_SELECT'), 'filter_group', JHtml::_('select.options', array_merge(InstallerHelper::getExtensionGroupes(), array('*' => JText::_('COM_INSTALLER_VALUE_FOLDER_NONAPPLICABLE'))), 'value', 'text', $this->state->get('filter.group'), true));
parent::addToolbar();
JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATESITES');
}
示例3: addToolbar
/**
* Add the page title and toolbar.
*
* @return void
*
* @since 1.6
*/
protected function addToolbar()
{
$canDo = JHelperContent::getActions('com_installer');
if ($canDo->get('core.edit.state')) {
JToolbarHelper::publish('manage.publish', 'JTOOLBAR_ENABLE', true);
JToolbarHelper::unpublish('manage.unpublish', 'JTOOLBAR_DISABLE', true);
JToolbarHelper::divider();
}
JToolbarHelper::custom('manage.refresh', 'refresh', 'refresh', 'JTOOLBAR_REFRESH_CACHE', true);
JToolbarHelper::divider();
if ($canDo->get('core.delete')) {
JToolbarHelper::deleteList('', 'manage.remove', 'JTOOLBAR_UNINSTALL');
JToolbarHelper::divider();
}
JHtmlSidebar::setAction('index.php?option=com_installer&view=manage');
JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_CLIENT_SELECT'), 'filter_client_id', JHtml::_('select.options', array('0' => 'JSITE', '1' => 'JADMINISTRATOR'), 'value', 'text', $this->state->get('filter.client_id'), true));
JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_STATE_SELECT'), 'filter_status', JHtml::_('select.options', array('0' => 'JDISABLED', '1' => 'JENABLED', '2' => 'JPROTECTED', '3' => 'JUNPROTECTED'), 'value', 'text', $this->state->get('filter.status'), true));
JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_TYPE_SELECT'), 'filter_type', JHtml::_('select.options', InstallerHelper::getExtensionTypes(), 'value', 'text', $this->state->get('filter.type'), true));
JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_FOLDER_SELECT'), 'filter_group', JHtml::_('select.options', array_merge(InstallerHelper::getExtensionGroupes(), array('*' => JText::_('COM_INSTALLER_VALUE_FOLDER_NONAPPLICABLE'))), 'value', 'text', $this->state->get('filter.group'), true));
parent::addToolbar();
JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_MANAGE');
}
示例4: array_merge
<?php
echo JHtml::_('select.options', InstallerHelper::getExtensionTypes(), 'value', 'text', $this->state->get('filter.type'), true);
?>
</select>
<label class="selectlabel" for="filter_group">
<?php
echo JText::_('COM_INSTALLER_VALUE_FOLDER_SELECT');
?>
</label>
<select name="filter_group" class="inputbox" id="filter_group">
<option value=""><?php
echo JText::_('COM_INSTALLER_VALUE_FOLDER_SELECT');
?>
</option>
<?php
echo JHtml::_('select.options', array_merge(InstallerHelper::getExtensionGroupes(), array('*' => JText::_('COM_INSTALLER_VALUE_FOLDER_NONAPPLICABLE'))), 'value', 'text', $this->state->get('filter.group'), true);
?>
</select>
<button type="submit" id="filter-go">
<?php
echo JText::_('JSUBMIT');
?>
</button>
</div>
</fieldset>
<div class="clr"></div>
示例5: getOptions
/**
* Method to get the field options.
*
* @return array The field option objects.
*
* @since 3.5
*/
public function getOptions()
{
$options = InstallerHelper::getExtensionGroupes();
return array_merge(parent::getOptions(), $options);
}