Source for file controller.php

Documentation is available at controller.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_modules
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  8.  */
  9.  
  10. defined('_JEXEC'or die;
  11.  
  12. /**
  13.  * Modules manager master display controller.
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_modules
  17.  * @since       1.6
  18.  */
  19. {
  20.     /**
  21.      * Method to display a view.
  22.      *
  23.      * @param   boolean         $cachable       If true, the view output will be cached
  24.      * @param   array|boolean  $urlparams      An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}
  25.     .
  26.      *
  27.      * @return  JController        This object to support chaining.
  28.      * @since   1.5
  29.      */
  30.     public function display($cachable false$urlparams false)
  31.     {
  32.         require_once JPATH_COMPONENT.'/helpers/modules.php';
  33.  
  34.         // Load the submenu.
  35.         ModulesHelper::addSubmenu($this->input->get('view''modules'));
  36.  
  37.         $view   $this->input->get('view''modules');
  38.         $layout $this->input->get('layout''default');
  39.         $id     $this->input->getInt('id');
  40.  
  41.         return parent::display();
  42.     }
  43. }

Documentation generated on Tue, 19 Nov 2013 14:57:07 +0100 by phpDocumentor 1.4.3