Source for file view.html.php

Documentation is available at view.html.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_checkin
  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.  * HTML View class for the Checkin component
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_checkin
  17.  * @since       1.0
  18.  */
  19. {
  20.     protected $tables;
  21.  
  22.     public function display($tpl null)
  23.     {
  24.         $this->items        $this->get('Items');
  25.         $this->pagination    $this->get('Pagination');
  26.         $this->state        $this->get('State');
  27.  
  28.         // Check for errors.
  29.         if (count($errors $this->get('Errors')))
  30.         {
  31.             JError::raiseError(500implode("\n"$errors));
  32.             return false;
  33.         }
  34.  
  35.         $this->addToolbar();
  36.         $this->sidebar JHtmlSidebar::render();
  37.         parent::display($tpl);
  38.     }
  39.  
  40.     /**
  41.      * Add the page title and toolbar.
  42.      *
  43.      * @since   1.6
  44.      */
  45.     protected function addToolbar()
  46.     {
  47.         JToolbarHelper::title(JText::_('COM_CHECKIN_GLOBAL_CHECK_IN')'checkin');
  48.         if (JFactory::getUser()->authorise('core.admin''com_checkin'))
  49.         {
  50.             JToolbarHelper::custom('checkin''checkin.png''checkin_f2.png''JTOOLBAR_CHECKIN'true);
  51.             JToolbarHelper::divider();
  52.             JToolbarHelper::preferences('com_checkin');
  53.             JToolbarHelper::divider();
  54.         }
  55.         JToolbarHelper::help('JHELP_SITE_MAINTENANCE_GLOBAL_CHECK-IN');
  56.     }
  57. }

Documentation generated on Tue, 19 Nov 2013 15:18:03 +0100 by phpDocumentor 1.4.3