Source for file view.html.php

Documentation is available at view.html.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_admin
  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.  * Sysinfo View class for the Admin component
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_admin
  17.  * @since       1.6
  18.  */
  19. class AdminViewSysinfo extends JViewLegacy
  20. {
  21.     /**
  22.      * @var array some php settings
  23.      */
  24.     protected $php_settings = null;
  25.  
  26.     /**
  27.      * @var array config values
  28.      */
  29.     protected $config = null;
  30.  
  31.     /**
  32.      * @var array somme system values
  33.      */
  34.     protected $info = null;
  35.  
  36.     /**
  37.      * @var string php info
  38.      */
  39.     protected $php_info = null;
  40.  
  41.     /**
  42.      * @var array informations about writable state of directories
  43.      */
  44.     protected $directory = null;
  45.  
  46.     /**
  47.      * Display the view
  48.      */
  49.     public function display($tpl null)
  50.     {
  51.         // Access check.
  52.         if (!JFactory::getUser()->authorise('core.admin'))
  53.         {
  54.             return JError::raiseWarning(404JText::_('JERROR_ALERTNOAUTHOR'));
  55.         }
  56.  
  57.         $this->php_settings    = $this->get('PhpSettings');
  58.         $this->config        = $this->get('config');
  59.         $this->info            = $this->get('info');
  60.         $this->php_info        = $this->get('PhpInfo');
  61.         $this->directory    = $this->get('directory');
  62.  
  63.         $this->addToolbar();
  64.         $this->_setSubMenu();
  65.         parent::display($tpl);
  66.     }
  67.  
  68.     /**
  69.      * Setup the SubMenu
  70.      *
  71.      * @return  void 
  72.      *
  73.      * @since   1.6
  74.      * @note    Necessary for Hathor compatibility
  75.      */
  76.     protected function _setSubMenu()
  77.     {
  78.         try
  79.         {
  80.             $contents $this->loadTemplate('navigation');
  81.             $document JFactory::getDocument();
  82.             $document->setBuffer($contents'modules''submenu');
  83.         }
  84.         catch (Exception $e)
  85.         {
  86.         }
  87.     }
  88.  
  89.     /**
  90.      * Setup the Toolbar
  91.      *
  92.      * @since   1.6
  93.      */
  94.     protected function addToolbar()
  95.     {
  96.         JToolbarHelper::title(JText::_('COM_ADMIN_SYSTEM_INFORMATION')'info systeminfo');
  97.         JToolbarHelper::help('JHELP_SITE_SYSTEM_INFORMATION');
  98.     }
  99. }

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