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
* View to edit an language override
* @package Joomla.Administrator
* @subpackage com_languages
* The form to use for the view
* @param string $tpl The name of the template file to parse
public function display($tpl =
null)
JHtml::_('stylesheet', 'overrider/overrider.css', array(), true);
JHtml::_('behavior.framework');
JHtml::_('script', 'overrider/overrider.js', false, true);
if (count($errors =
$this->get('Errors')))
throw
new Exception(implode("\n", $errors));
// Check whether the cache has to be refreshed
$cached_time =
JFactory::getApplication()->getUserState('com_languages.overrides.cachedtime.'.
$this->state->get('filter.client').
'.'.
$this->state->get('filter.language'), 0);
if (time() -
$cached_time >
60 *
5)
$this->state->set('cache_expired', true);
// Add strings for translations in Javascript
JText::script('COM_LANGUAGES_VIEW_OVERRIDE_NO_RESULTS');
JText::script('COM_LANGUAGES_VIEW_OVERRIDE_REQUEST_ERROR');
* Adds the page title and toolbar
if ($canDo->get('core.edit'))
// This component does not support Save as Copy
if ($canDo->get('core.edit') &&
$canDo->get('core.create'))
if (empty($this->item->key))
Documentation generated on Tue, 19 Nov 2013 15:17:55 +0100 by phpDocumentor 1.4.3