Source for file view.html.php
Documentation is available at view.html.php
* @package Joomla.Administrator
* @subpackage com_languages
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* HTML Languages View class for the Languages component
* @package Joomla.Administrator
* @subpackage com_languages
public function display($tpl =
null)
if (count($errors =
$this->get('Errors')))
* Add the page title and toolbar.
require_once JPATH_COMPONENT.
'/helpers/languages.php';
if ($canDo->get('core.create'))
if ($canDo->get('core.edit'))
if ($canDo->get('core.edit.state'))
if ($this->state->get('filter.published') !=
2)
if ($this->state->get('filter.published') == -
2 &&
$canDo->get('core.delete'))
} elseif ($canDo->get('core.edit.state'))
if ($canDo->get('core.admin'))
// Add install languages link to the lang installer component
$bar->appendButton('Link', 'upload', 'COM_LANGUAGES_INSTALL', 'index.php?option=com_installer&view=languages');
JText::_('JOPTION_SELECT_PUBLISHED'),
JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true)
JText::_('JOPTION_SELECT_ACCESS'),
JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access'))
* Returns an array of fields the table can be sorted by
* @return array Array containing the field name to sort by as the key and display text as value
'a.ordering' =>
JText::_('JGRID_HEADING_ORDERING'),
'a.published' =>
JText::_('JSTATUS'),
'a.title' =>
JText::_('JGLOBAL_TITLE'),
'a.title_native' =>
JText::_('COM_LANGUAGES_HEADING_TITLE_NATIVE'),
'a.lang_code' =>
JText::_('COM_LANGUAGES_FIELD_LANG_TAG_LABEL'),
'a.sef' =>
JText::_('COM_LANGUAGES_FIELD_LANG_CODE_LABEL'),
'a.image' =>
JText::_('COM_LANGUAGES_HEADING_LANG_IMAGE'),
'a.access' =>
JText::_('JGRID_HEADING_ACCESS'),
'a.lang_id' =>
JText::_('JGRID_HEADING_ID')
Documentation generated on Tue, 19 Nov 2013 15:17:54 +0100 by phpDocumentor 1.4.3