| Current Path : /home/cbequiperp/www/administrator/components/com_rsform/views/configuration/ |
| Current File : /home/cbequiperp/www/administrator/components/com_rsform/views/configuration/view.html.php |
<?php
/**
* @package RSForm! Pro
* @copyright (C) 2007-2019 www.rsjoomla.com
* @license GPL, http://www.gnu.org/copyleft/gpl.html
*/
defined('_JEXEC') or die('Restricted access');
class RsformViewConfiguration extends JViewLegacy
{
public function display($tpl = null)
{
if (!JFactory::getUser()->authorise('core.admin', 'com_rsform'))
{
throw new Exception(JText::_('COM_RSFORM_NOT_AUTHORISED_TO_USE_THIS_SECTION'));
}
$this->addToolbar();
JToolbarHelper::apply('configuration.apply');
JToolbarHelper::save('configuration.save');
JToolbarHelper::cancel('configuration.cancel');
$this->tabs = $this->get('RSTabs');
$this->form = $this->get('Form');
$this->fieldsets = $this->form->getFieldsets();
parent::display($tpl);
}
public function triggerEvent($event, $args=null)
{
JFactory::getApplication()->triggerEvent($event, $args);
}
protected function addToolbar() {
// set title
JToolbarHelper::title('RSForm! Pro', 'rsform');
require_once JPATH_COMPONENT.'/helpers/toolbar.php';
RSFormProToolbarHelper::addToolbar('configuration');
}
}