- md5
- fe96225a3d406fac092f1b600b2ac794
- sha1
- 4a8c6a3b12293bfee259b8bc4530f9fb1e55c246
- sha256
- f65ed2e99fcc915e995ca8c33f291bbf81a300a25559d2142e4eb3dc670044df
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
<?php
/**
* @version $Id: view.html.php 20196 2011-01-09 02:40:25Z ian $
* @package Joomla.Administrator
* @subpackage com_installer
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
include_once dirname(__FILE__).'/../default/view.php';
/**
* Extension Manager Manage View
*
* @package Joomla.Administrator
* @subpackage com_installer
* @since 1.6
*/
class InstallerViewManage extends InstallerViewDefault
{
protected $items;
protected $pagination;
protected $form;
protected $state;
/**
* @since 1.6
*/
function display($tpl=null)
{
// Get data from the model
$this->state = $this->get('State');
$this->items = $this->get('Items');
$this->pagination = $this->get('Pagination');
$this->form = $this->get('Form');
// Check for errors.
if (count($errors = $this->get('Errors'))) {
JError::raiseError(500, implode("\n", $errors));
return false;
}
//Check if there are no matching items
if(!count($this->items)){
JFactory::getApplication()->enqueueMessage(
JText::_('COM_INSTALLER_MSG_MANAGE_NOEXTENSION')
);
}
// Display the view
parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
$canDo = InstallerHelper::getActions();
if ($canDo->get('core.edit.state')) {
JToolBarHelper::custom('manage.publish', 'publish.png', 'publish_f2.png', 'JTOOLBAR_ENABLE', true);
JToolBarHelper::custom('manage.unpublish', 'unpublish.png', 'unpublish_f2.png', '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');
}
}
The same content is in 7 releases, Joomla 1.6.0 to 1.6.6. See them all, or every version of this file.