Source for file controller.php

Documentation is available at controller.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Site
  4.  * @subpackage  com_contact
  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.  * Contact Component Controller
  14.  *
  15.  * @package     Joomla.Site
  16.  * @subpackage  com_contact
  17.  * @since       1.5
  18.  */
  19. {
  20.     /**
  21.      * Method to display a view.
  22.      *
  23.      * @param   boolean            If true, the view output will be cached
  24.      * @param   array  An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
  25.      *
  26.      * @return  JController        This object to support chaining.
  27.      * @since   1.5
  28.      */
  29.     public function display($cachable false$urlparams false)
  30.     {
  31.         $cachable true;
  32.  
  33.         // Set the default view name and format from the Request.
  34.         $vName $this->input->get('view''categories');
  35.         $this->input->set('view'$vName);
  36.  
  37.         $safeurlparams array('catid' => 'INT''id' => 'INT''cid' => 'ARRAY''year' => 'INT''month' => 'INT''limit' => 'UINT''limitstart' => 'UINT',
  38.             'showall' => 'INT''return' => 'BASE64''filter' => 'STRING''filter_order' => 'CMD''filter_order_Dir' => 'CMD''filter-search' => 'STRING''print' => 'BOOLEAN''lang' => 'CMD');
  39.  
  40.         parent::display($cachable$safeurlparams);
  41.  
  42.         return $this;
  43.     }
  44. }

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