| [ Index ] |
PHP Cross Reference of Joomla 2.5.4 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. 4 * @license GNU General Public License version 2 or later; see LICENSE.txt 5 */ 6 7 // Check to ensure this file is included in Joomla! 8 defined('_JEXEC') or die; 9 10 jimport('joomla.application.component.controller'); 11 12 /** 13 * Languages Controller 14 * 15 * @package Joomla.Administrator 16 * @subpackage com_languages 17 * @since 1.5 18 */ 19 class LanguagesController extends JController 20 { 21 /** 22 * @var string The default view. 23 * @since 1.6 24 */ 25 protected $default_view = 'installed'; 26 27 /** 28 * Method to display a view. 29 * 30 * @param boolean If true, the view output will be cached 31 * @param array An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}. 32 * 33 * @return JController This object to support chaining. 34 * @since 1.5 35 */ 36 public function display($cachable = false, $urlparams = false) 37 { 38 require_once JPATH_COMPONENT.'/helpers/languages.php'; 39 40 // Load the submenu. 41 LanguagesHelper::addSubmenu(JRequest::getCmd('view', 'installed')); 42 43 $view = JRequest::getCmd('view', 'languages'); 44 $layout = JRequest::getCmd('layout', 'default'); 45 $client = JRequest::getInt('client'); 46 $id = JRequest::getInt('id'); 47 48 // Check for edit form. 49 if ($view == 'language' && $layout == 'edit' && !$this->checkEditId('com_languages.edit.language', $id)) { 50 51 // Somehow the person just went to the form - we don't allow that. 52 $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id)); 53 $this->setMessage($this->getError(), 'error'); 54 $this->setRedirect(JRoute::_('index.php?option=com_languages&view=languages', false)); 55 56 return false; 57 } 58 59 parent::display(); 60 61 return $this; 62 } 63 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Apr 3 11:40:28 2012 | Cross-referenced by PHPXref 0.7.1 |