Source for file display.php
Documentation is available at display.php
* @package Joomla.Administrator
* @subpackage Joomla.Libraries
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
defined('_JEXEC') or die('Restricted access');
* Base Display Controller
* Application object - Redeclared for proper typehinting
* Prefix for the view and model classes
* Execute the controller.
* @return mixed A rendered view or true
// Get the document object.
$componentFolder =
$this->input->getWord('option', 'com_config');
if ($this->app->isAdmin())
$viewName =
$this->input->getWord('view', 'application');
$viewName =
$this->input->getWord('view', 'config');
$viewFormat =
$document->getType();
$layoutName =
$this->input->getWord('layout', 'default');
// Register the layout paths for the view
$paths =
new SplPriorityQueue;
if ($this->app->isAdmin())
$paths->insert(JPATH_ADMINISTRATOR .
'/components/' .
$componentFolder .
'/view/' .
$viewName .
'/tmpl', 1);
$paths->insert(JPATH_BASE .
'/components/' .
$componentFolder .
'/view/' .
$viewName .
'/tmpl', 1);
$model =
new $modelClass;
if (!JFactory::getUser()->authorise('core.admin', $model->getState('component.option')))
$this->app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'error');
$view =
new $viewClass($model, $paths);
$view->setLayout($layoutName);
// Push document object into the view.
$view->document =
$document;
// Reply for service requests
if ($viewFormat ==
'json')
Documentation generated on Tue, 19 Nov 2013 15:01:35 +0100 by phpDocumentor 1.4.3