Source for file controller.php
Documentation is available at controller.php
* @package Joomla.Administrator
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* Media Manager Component Controller
* @package Joomla.Administrator
* Method to display a view.
* @param boolean If true, the view output will be cached
* @param array An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
* @return JController This object to support chaining.
public function display($cachable =
false, $urlparams =
false)
$vName =
$this->input->get('view', 'media');
$vLayout =
$this->input->get('layout', 'default');
$vLayout =
$this->input->get('layout', 'default');
$vLayout =
$app->getUserStateFromRequest('media.list.layout', 'layout', 'thumbs', 'word');
$vLayout =
$this->input->get('layout', 'default');
$vType =
$document->getType();
$view =
$this->getView($vName, $vType);
$view->addTemplatePath(JPATH_COMPONENT_ADMINISTRATOR.
'/views/'.
strtolower($vName).
'/tmpl');
// Push the model into the view (as default)
$view->setModel($model, true);
$view->setLayout($vLayout);
// Set FTP credentials, if given
Documentation generated on Tue, 19 Nov 2013 14:57:02 +0100 by phpDocumentor 1.4.3