Source for file view.html.php

Documentation is available at view.html.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_contenthistory
  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.  * View class for a list of contenthistory.
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_contenthistory
  17.  * @since       3.2
  18.  */
  19. {
  20.     protected $items;
  21.  
  22.     protected $state;
  23.  
  24.     /**
  25.      * Method to display the view.
  26.      *
  27.      * @param   string  $tpl  A template file to load. [optional]
  28.      *
  29.      * @return  mixed  Exception on failure, void on success.
  30.      *
  31.      * @since   3.2
  32.      */
  33.     public function display($tpl null)
  34.     {
  35.         $this->state = $this->get('State');
  36.         $this->items = $this->get('Items');
  37.  
  38.         // Check for errors.
  39.         if (count($errors $this->get('Errors')))
  40.         {
  41.             JError::raiseError(500implode("\n"$errors));
  42.  
  43.             return false;
  44.         }
  45.  
  46.         return parent::display($tpl);
  47.     }
  48. }

Documentation generated on Tue, 19 Nov 2013 15:16:51 +0100 by phpDocumentor 1.4.3