- md5
- 915e4041b6557ef315af3d21ae5c27a1
- sha1
- b49ad5169ee943eb13b5db1d2e53cf35dc2a06dd
- sha256
- 1489afb6ad0c39416c31f45cd03c540741265eca92900288852a89e522cd8a8a
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
<?php
/**
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die;
jimport('joomla.application.component.view');
/**
* Displays a list of the installed languages.
*
* @package Joomla.Administrator
* @subpackage com_languages
* @since 1.6
*/
class LanguagesViewInstalled extends JView
{
/**
* @var object client object
*/
protected $client = null;
/**
* @var boolean|JExeption True, if FTP settings should be shown, or an exeption
*/
protected $ftp = null;
/**
* @var string option name
*/
protected $option = null;
/**
* @var object pagination information
*/
protected $pagination=null;
/**
* @var array languages information
*/
protected $rows=null;
/**
* @var object user object
*/
protected $user = null;
/**
* Display the view
*/
function display($tpl = null)
{
// Get data from the model
$this->ftp = $this->get('Ftp');
$this->option = $this->get('Option');
$this->pagination = $this->get('Pagination');
$this->rows = $this->get('Data');
$this->state = $this->get('State');
$document = JFactory::getDocument();
$document->setBuffer($this->loadTemplate('navigation'), 'modules', 'submenu');
$this->addToolbar();
parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
require_once JPATH_COMPONENT.'/helpers/languages.php';
$canDo = LanguagesHelper::getActions();
JToolBarHelper::title(JText::_('COM_LANGUAGES_VIEW_INSTALLED_TITLE'), 'langmanager.png');
if ($canDo->get('core.edit.state')) {
JToolBarHelper::makeDefault('installed.setDefault');
JToolBarHelper::divider();
}
if ($canDo->get('core.admin')) {
JToolBarHelper::preferences('com_languages');
JToolBarHelper::divider();
}
JToolBarHelper::help('JHELP_EXTENSIONS_LANGUAGE_MANAGER_INSTALLED');
}
}
The same content is in 7 releases, Joomla 2.5.0 to 2.5.6. See them all, or every version of this file.