- md5
- a140251ee8f52c7cddfa1e099fb2714c
- sha1
- 4d246f62cd10b438ee18e7ff1d00eeff38d88e0b
- sha256
- 35e9a7be653f0de40fdb04ac22850a0c0fdb2c374e16c4dcf9699faa1ba4c49e
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
<?php
/**
* @package Joomla.Site
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Component\Config\Site\View\Config;
defined('_JEXEC') or die;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\Component\Config\Administrator\Controller\Request;
/**
* View for the global configuration
*
* @since 3.2
*/
class HtmlView extends BaseHtmlView
{
/**
* The form object
*
* @var JForm
* @since 3.2
*/
public $form;
/**
* The data to be displayed in the form
*
* @var array
* @since 3.2
*/
public $data;
/**
* Is the current user a super administrator?
*
* @var boolean
* @since 3.2
*/
protected $userIsSuperAdmin;
/**
* Execute and display a template script.
*
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise an Error object.
*
* @since 3.2
*/
public function display($tpl = null)
{
$user = \JFactory::getUser();
$this->userIsSuperAdmin = $user->authorise('core.admin');
// Access backend com_config
$requestController = new Request;
// Execute backend controller
$serviceData = json_decode($requestController->getJson(), true);
$form = $this->getForm();
if ($form)
{
$form->bind($serviceData);
}
$this->form = $form;
$this->data = $serviceData;
return parent::display($tpl);
}
}
No other release has this exact content. See every version of this file.