| [ Index ] |
PHP Cross Reference of Joomla 2.5.4 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Joomla.Administrator 4 * @subpackage com_checkin 5 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. 6 * @license GNU General Public License version 2 or later; see LICENSE.txt 7 */ 8 9 // Check to ensure this file is included in Joomla! 10 defined('_JEXEC') or die; 11 12 jimport('joomla.application.component.view'); 13 14 /** 15 * HTML View class for the Checkin component 16 * 17 * @static 18 * @package Joomla.Administrator 19 * @subpackage com_checkin 20 * @since 1.0 21 */ 22 class CheckinViewCheckin extends JView 23 { 24 protected $tables; 25 26 public function display($tpl = null) 27 { 28 $this->items = $this->get('Items'); 29 $this->pagination = $this->get('Pagination'); 30 $this->state = $this->get('State'); 31 32 // Check for errors. 33 if (count($errors = $this->get('Errors'))) { 34 JError::raiseError(500, implode("\n", $errors)); 35 return false; 36 } 37 38 $this->addToolbar(); 39 parent::display($tpl); 40 } 41 42 /** 43 * Add the page title and toolbar. 44 * 45 * @since 1.6 46 */ 47 protected function addToolbar() 48 { 49 JToolBarHelper::title(JText::_('COM_CHECKIN_GLOBAL_CHECK_IN'), 'checkin.png'); 50 if (JFactory::getUser()->authorise('core.admin', 'com_checkin')) { 51 JToolBarHelper::custom('checkin', 'checkin.png', 'checkin_f2.png', 'JTOOLBAR_CHECKIN', true); 52 JToolBarHelper::divider(); 53 JToolBarHelper::preferences('com_checkin'); 54 JToolBarHelper::divider(); 55 } 56 JToolBarHelper::help('JHELP_SITE_MAINTENANCE_GLOBAL_CHECK-IN'); 57 } 58 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Apr 3 11:40:28 2012 | Cross-referenced by PHPXref 0.7.1 |