- md5
- d4d6f29450ebae63fbb53adc73536883
- sha1
- 9265d89c38c19861f3bf15dbd010655b3eb5bd6f
- sha256
- 85a1a9f48cc8243e8f49c966ed74efbe22c3cafdc592f110134478e1635e0137
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
<?php
/**
* @version $Id: view.html.php 20196 2011-01-09 02:40:25Z ian $
* @copyright Copyright (C) 2005 - 2011 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');
$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','JTOOLBAR_DEFAULT');
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 1.6.0 to 1.6.6. See them all, or every version of this file.