- md5
- efc5e04ddcd5500b9851df8dc67a2b23
- sha1
- 1602c2b580addaaab99ae8dab689fed5968ab4f8
- sha256
- 079bc3f662ad90b2187a6ded8c7396b3c331bad7d275dc33991cc282f4775c4c
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
<?php
/**
* @version $Id: view.html.php 20196 2011-01-09 02:40:25Z ian $
* @package Joomla.Administrator
* @subpackage com_config
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// no direct access
defined('_JEXEC') or die;
jimport('joomla.application.component.view');
/**
* @package Joomla.Administrator
* @subpackage com_config
*/
class ConfigViewApplication extends JView
{
public $state;
public $form;
public $data;
/**
* Method to display the view.
*/
public function display($tpl = null)
{
$form = $this->get('Form');
$data = $this->get('Data');
// Check for model errors.
if ($errors = $this->get('Errors')) {
JError::raiseError(500, implode('<br />', $errors));
return false;
}
// Bind the form to the data.
if ($form && $data) {
$form->bind($data);
}
// Get the params for com_users.
$usersParams = JComponentHelper::getParams('com_users');
// Get the params for com_media.
$mediaParams = JComponentHelper::getParams('com_media');
// Load settings for the FTP layer.
jimport('joomla.client.helper');
$ftp = JClientHelper::setCredentialsFromRequest('ftp');
$this->assignRef('form', $form);
$this->assignRef('data', $data);
$this->assignRef('ftp', $ftp);
$this->assignRef('usersParams', $usersParams);
$this->assignRef('mediaParams', $mediaParams);
$this->addToolbar();
parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
JToolBarHelper::title(JText::_('COM_CONFIG_GLOBAL_CONFIGURATION'), 'config.png');
JToolBarHelper::apply('application.apply', 'JTOOLBAR_APPLY');
JToolBarHelper::save('application.save', 'JTOOLBAR_SAVE');
JToolBarHelper::divider();
JToolBarHelper::cancel('application.cancel', 'JTOOLBAR_CANCEL');
JToolBarHelper::divider();
JToolBarHelper::help('JHELP_SITE_GLOBAL_CONFIGURATION');
}
}
The same content is in 7 releases, Joomla 1.6.0 to 1.6.6. See them all, or every version of this file.