本文整理汇总了PHP中InstallerViewDefault类的典型用法代码示例。如果您正苦于以下问题:PHP InstallerViewDefault类的具体用法?PHP InstallerViewDefault怎么用?PHP InstallerViewDefault使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了InstallerViewDefault类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
function display($tpl=null)
{
/*
* Set toolbar items for the page
*/
JToolBarHelper::deleteList( '', 'remove', 'Uninstall' );
// Get data from the model
$state = &$this->get('State');
$items = &$this->get('Items');
$pagination = &$this->get('Pagination');
$lists = new stdClass();
$select[] = JHTML::_('select.option', '-1', JText::_('All'));
$select[] = JHTML::_('select.option', '0', JText::_('Site Modules'));
$select[] = JHTML::_('select.option', '1', JText::_('Admin Modules'));
$lists->client = JHTML::_('select.genericlist', $select, 'client', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $state->get('filter.client'));
$this->assignRef('items', $items);
$this->assignRef('pagination', $pagination);
$this->assignRef('lists', $lists);
JHTML::_('behavior.tooltip');
parent::display($tpl);
}
示例2: display
function display($tpl = null)
{
$canDo = JCKHelper::getActions();
$app = JFactory::getApplication();
if (!$canDo->get('jckman.install')) {
$app->redirect(JRoute::_('index.php?option=com_jckman&view=cpanel', false), JText::_('COM_JCKMAN_PLUGIN_PERM_NO_INSTALL'), 'error');
return false;
}
//end if
/*
* Set toolbar items for the page
*/
$bar =& JToolBar::getInstance('toolbar');
// Add a Link button for Control Panel
$bar->appendButton('Link', 'cpanel', JText::_('COM_JCKMAN_SUBMENU_CPANEL_NAME'), 'index.php?option=com_jckman&controller=cpanel');
JToolBarHelper::help('screen.installer');
$paths = new stdClass();
$paths->first = '';
$lookup = array(JHTML::_('select.option', 0, JText::_('All')));
$selections =& $this->get('ToolbarList');
$lists['selections'] = JHTML::_('select.genericlist', $selections, 'selections[]', 'class="inputbox" size="15" multiple="multiple" style=width:182px;', 'value', 'text', $lookup, 'selections');
$this->assignRef('paths', $paths);
$this->assignRef('state', $this->get('state'));
$this->assignRef('lists', $lists);
parent::display($tpl);
}
示例3: addToolbar
protected function addToolbar()
{
JToolBarHelper::publish('sites.publish', 'JTOOLBAR_ENABLE', true);
JToolBarHelper::unpublish('sites.unpublish', 'JTOOLBAR_DISABLE', true);
JToolBarHelper::divider();
parent::addToolbar();
}
示例4: 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();
}
示例5: display
function display($tpl = null)
{
$paths = new stdClass();
$paths->first = '';
$this->assignRef('paths', $paths);
$this->assignRef('state', $this->get('state'));
$this->_setToolbar();
parent::display($tpl);
}
示例6: 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');
}
示例7: 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');
}
示例8: 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');
}
示例9: 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');
}
示例10: 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');
}
示例11: display
function display($tpl = null)
{
/*
* Set toolbar items for the page
*/
JToolBarHelper::help('screen.installer');
$paths = new stdClass();
$paths->first = '';
$this->assignRef('paths', $paths);
$this->assignRef('state', $this->get('state'));
parent::display($tpl);
}
示例12: 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();
}
示例13: display
function display($tpl = null)
{
/*
* Set toolbar items for the page
*/
JToolBarHelper::deleteList('', 'remove', 'Uninstall');
JCEToolBarHelper::help('install.plugin');
// Get data from the model
$items =& $this->get('Items');
$pagination =& $this->get('Pagination');
$this->assignRef('items', $items);
$this->assignRef('pagination', $pagination);
parent::display($tpl);
}
示例14: display
function display($tpl = null)
{
/*
* Set toolbar items for the page
*/
JToolBarHelper::editHtmlX('editHTML');
JToolBarHelper::spacer();
JToolBarHelper::cancel('manage');
JToolBarHelper::help('screen.installerSelectHtml');
// Get data from the model
$item =& $this->get('Items');
$this->assignRef('item', $item);
parent::showTemplateHeader();
parent::display($tpl);
}
示例15: 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');
}