2015-12-01 05:06:34 +00:00
|
|
|
<?php
|
|
|
|
/*----------------------------------------------------------------------------------| www.giz.de |----/
|
|
|
|
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
|
|
|
|
/-------------------------------------------------------------------------------------------------------/
|
|
|
|
|
2016-02-19 09:30:37 +00:00
|
|
|
@version 3.3.3
|
2016-02-19 09:23:14 +00:00
|
|
|
@build 19th February, 2016
|
2015-12-01 05:06:34 +00:00
|
|
|
@created 15th June, 2012
|
|
|
|
@package Cost Benefit Projection
|
|
|
|
@subpackage combinedresults.php
|
|
|
|
@author Llewellyn van der Merwe <http://www.vdm.io>
|
|
|
|
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
|
|
|
|
@copyright Copyright (C) 2015. All Rights Reserved
|
|
|
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
|
|
|
|
/-------------------------------------------------------------------------------------------------------/
|
|
|
|
Cost Benefit Projection Tool.
|
|
|
|
/------------------------------------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
// No direct access to this file
|
|
|
|
defined('_JEXEC') or die('Restricted access');
|
|
|
|
|
|
|
|
// import Joomla controlleradmin library
|
|
|
|
jimport('joomla.application.component.controlleradmin');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Combinedresults Controller
|
|
|
|
*/
|
|
|
|
class CostbenefitprojectionControllerCombinedresults extends JControllerAdmin
|
|
|
|
{
|
|
|
|
protected $text_prefix = 'COM_COSTBENEFITPROJECTION_COMBINEDRESULTS';
|
|
|
|
/**
|
|
|
|
* Proxy for getModel.
|
|
|
|
* @since 2.5
|
|
|
|
*/
|
|
|
|
public function getModel($name = 'Combinedresults', $prefix = 'CostbenefitprojectionModel', $config = array())
|
|
|
|
{
|
|
|
|
$model = parent::getModel($name, $prefix, array('ignore_request' => true));
|
|
|
|
|
|
|
|
return $model;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function dashboard()
|
|
|
|
{
|
|
|
|
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection', false));
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function gotoCompanies()
|
|
|
|
{
|
|
|
|
// Check for request forgeries
|
|
|
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
|
|
|
// set the redirecting
|
|
|
|
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=companies', false));
|
|
|
|
}
|
|
|
|
}
|