<?php
/**
* @package HikaShop for Joomla!
* @version 1.4.3
* @author hikashop.com
* @copyright (C) 2010 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<?php
class DashboardController extends hikashopController{
var $type="widget";
function __construct($config = array())
{
$this->display = array('listing','csv');
$this->modify_views = array('edit');
$this->add = array('add');
$this->modify = array('save');
$this->delete = array('delete','remove');
parent::__construct($config);
}
function save(){
if($this->store()){
echo '<html><head><script type="text/javascript">parent.window.location.href=\''.hikashop::completeLink('dashboard',false,true).'\';</script></head><body></body></html>';
exit;
}
}
function csv(){
JRequest::setVar( 'layout', 'csv' );
return $this->display();
}
}