本文整理匯總了PHP中InstallerViewDefault::addToolbar方法的典型用法代碼示例。如果您正苦於以下問題:PHP InstallerViewDefault::addToolbar方法的具體用法?PHP InstallerViewDefault::addToolbar怎麽用?PHP InstallerViewDefault::addToolbar使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類InstallerViewDefault
的用法示例。
在下文中一共展示了InstallerViewDefault::addToolbar方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: addToolbar
protected function addToolbar()
{
JToolBarHelper::publish('sites.publish', 'JTOOLBAR_ENABLE', true);
JToolBarHelper::unpublish('sites.unpublish', 'JTOOLBAR_DISABLE', true);
JToolBarHelper::divider();
parent::addToolbar();
}
示例2: addToolbar
protected function addToolbar()
{
JToolBarHelper::custom('oneclick.install_remote', 'upload', 'upload', 'JTOOLBAR_INSTALL', true, false);
JToolBarHelper::custom('oneclick.find', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_FIND_EXTENSIONS', false, false);
JToolBarHelper::custom('oneclick.purge', 'purge', 'purge', 'JTOOLBAR_PURGE_CACHE', false, false);
JToolBarHelper::divider();
parent::addToolbar();
}
示例3: 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);
JToolbarHelper::custom('update.find', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_FIND_UPDATES', false);
JToolbarHelper::custom('update.purge', 'purge', 'purge', 'COM_INSTALLER_TOOLBAR_PURGE', false);
JToolbarHelper::divider();
JHtmlSidebar::setAction('index.php?option=com_installer&view=manage');
parent::addToolbar();
JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATE');
}
示例4: addToolbar
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
$canDo = InstallerHelper::getActions();
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::custom('update.purge', 'purge', 'purge', 'JTOOLBAR_PURGE_CACHE', false, false);
JToolBarHelper::divider();
parent::addToolbar();
JToolBarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATE');
}
示例5: addToolbar
/**
* Add the page title and toolbar.
*
* @return void
*
* @since 1.6
*/
protected function addToolbar()
{
/*
* Set toolbar items for the page.
*/
JToolbarHelper::custom('database.fix', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_DATABASE_FIX', false);
JToolbarHelper::divider();
parent::addToolbar();
JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_DATABASE');
}
示例6: addToolbar
/**
* Add the page title and toolbar.
*
* @return void
*
* @since 1.6
*/
protected function addToolbar()
{
/*
* Set toolbar items for the page
*/
JToolbarHelper::custom('discover.install', 'upload', 'upload', 'JTOOLBAR_INSTALL', true, false);
JToolbarHelper::custom('discover.refresh', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_DISCOVER', false, false);
JToolbarHelper::divider();
parent::addToolbar();
JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_DISCOVER');
}
示例7: 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();
}
示例8: addToolbar
/**
* Add the page title and toolbar.
*
* @return void
*
* @since 3.1
*/
protected function addToolbar()
{
/*
* Set toolbar items for the page.
*/
JToolbarHelper::custom('discover.install', 'upload', 'upload', 'JTOOLBAR_INSTALL', true);
JToolbarHelper::custom('discover.refresh', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_DISCOVER', false);
JToolbarHelper::divider();
JHtmlSidebar::setAction('index.php?option=com_installer&view=discover');
parent::addToolbar();
JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_DISCOVER');
}
示例9: 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');
}
示例10: addToolbar
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
$canDo = InstallerHelper::getActions();
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();
}
parent::addToolbar();
JToolBarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_MANAGE');
}
示例11: 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('COM_INSTALLER_CONFIRM_UNINSTALL', 'manage.remove', 'JTOOLBAR_UNINSTALL');
JToolbarHelper::divider();
}
JHtmlSidebar::setAction('index.php?option=com_installer&view=manage');
parent::addToolbar();
JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_MANAGE');
}
示例12: 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();
}
if ($canDo->get('core.delete')) {
JToolbarHelper::deleteList('JGLOBAL_CONFIRM_DELETE', 'updatesites.delete', 'JTOOLBAR_DELETE');
JToolbarHelper::divider();
}
if ($canDo->get('core.admin') || $canDo->get('core.options')) {
JToolbarHelper::custom('updatesites.rebuild', 'refresh.png', 'refresh_f2.png', 'JTOOLBAR_REBUILD', false);
}
JHtmlSidebar::setAction('index.php?option=com_installer&view=updatesites');
parent::addToolbar();
JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATESITES');
}
示例13: 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');
}