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 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';
$isNew =
empty($this->item->lang_id);
JToolbarHelper::title(JText::_($isNew ?
'COM_LANGUAGES_VIEW_LANGUAGE_EDIT_NEW_TITLE' :
'COM_LANGUAGES_VIEW_LANGUAGE_EDIT_EDIT_TITLE'), 'comments-2 langmanager');
// If a new item, can save.
if ($isNew &&
$canDo->get('core.create'))
//If an existing item, allow to Apply and Save.
if (!$isNew &&
$canDo->get('core.edit'))
// If an existing item, can save to a copy only if we have create rights.
if ($canDo->get('core.create'))
Documentation generated on Tue, 19 Nov 2013 15:17:55 +0100 by phpDocumentor 1.4.3