| Current Path : /home/bonneesp/www/administrator/components/com_gallery_wd/views/options/ |
| Current File : /home/bonneesp/www/administrator/components/com_gallery_wd/views/options/view.html.php |
<?php
/**
* @package Gallery WD
* @author Web-Dorado
* @copyright (C) 2014 Web-Dorado. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.view');
class gallery_wdViewOptions extends JViewLegacy {
////////////////////////////////////////////////////////////////////////////////////////
// Events //
////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////
// Constants //
////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////
// Variables //
////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////
// Constructor & Destructor //
////////////////////////////////////////////////////////////////////////////////////////
public function __construct() {
parent::__construct();
}
////////////////////////////////////////////////////////////////////////////////////////
// Public Methods //
////////////////////////////////////////////////////////////////////////////////////////
public function display($tpl = null) {
$model = $this->getModel();
$this->addToolBar();
$get_row_data=$model->get_row_data();
$this->assignRef('get_row_data',$get_row_data);
parent::display($tpl);
}
protected function addToolBar()
{
$input = JFactory::getApplication()->input;
$user=JFactory::getUser();
JToolBarHelper::title(JText::_('Options'));
if($user->authorise('core.edit', 'com_gallery_wd'))
{
JToolBarHelper::apply('options.save_option');
JToolBarHelper::custom('options.reset', 'reset', 'extrahello_f2.png', 'Reset all options', false);
}
}
////////////////////////////////////////////////////////////////////////////////////////
// Getters & Setters //
////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////
// Private Methods //
//////////////////////////////////////////////////////////////////////////
//////////////
////////////////////////////////////////////////////////////////////////////////////////
// Listeners //
////////////////////////////////////////////////////////////////////////////////////////
}