Source for file view.html.php

Documentation is available at view.html.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.  * @package     Joomla.Administrator
  14.  * @subpackage  com_modules
  15.  * @since       1.6
  16.  */
  17. {
  18.     protected $items;
  19.  
  20.     protected $pagination;
  21.  
  22.     protected $state;
  23.  
  24.     /**
  25.      * Display the view
  26.      */
  27.     public function display($tpl null)
  28.     {
  29.         $this->items        = $this->get('Items');
  30.         $this->pagination    = $this->get('Pagination');
  31.         $this->state        = $this->get('State');
  32.  
  33.         // Check for errors.
  34.         if (count($errors $this->get('Errors')))
  35.         {
  36.             JError::raiseError(500implode("\n"$errors));
  37.             return false;
  38.         }
  39.  
  40.         parent::display($tpl);
  41.     }
  42. }

Documentation generated on Tue, 19 Nov 2013 15:17:44 +0100 by phpDocumentor 1.4.3