- md5
- 7bca1aeca071c5368ac653d0152a64b4
- sha1
- d45847669549c4876b41930095a255eb9e378137
- sha256
- 465090bceb54b8b5321e2a063cf09598e37205533464108440096ff41e527535
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
<?php
/**
* @package Joomla.Administrator
* @subpackage com_config
* @copyright Copyright (C) 2005 - 2012 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.
$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');
JToolBarHelper::save('application.save');
JToolBarHelper::divider();
JToolBarHelper::cancel('application.cancel');
JToolBarHelper::divider();
JToolBarHelper::help('JHELP_SITE_GLOBAL_CONFIGURATION');
}
}
The same content is in 7 releases, Joomla 2.5.0 to 2.5.6. See them all, or every version of this file.