Cost-Benefit-Projection/admin/controllers/companyresults.php

61 lines
2.1 KiB
PHP
Raw Normal View History

2015-12-01 05:06:34 +00:00
<?php
2022-03-03 02:58:38 +00:00
/*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
2022-05-27 05:41:44 +00:00
@version 3.5.x
@build 27th May, 2022
2022-03-03 02:58:38 +00:00
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage companyresults.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');
2022-05-27 05:41:44 +00:00
use Joomla\CMS\MVC\Controller\BaseController;
2022-03-03 02:58:38 +00:00
use Joomla\Utilities\ArrayHelper;
/**
2022-05-27 05:41:44 +00:00
* Costbenefitprojection Companyresults Base Controller
2022-03-03 02:58:38 +00:00
*/
2022-05-27 05:41:44 +00:00
class CostbenefitprojectionControllerCompanyresults extends BaseController
2022-03-03 02:58:38 +00:00
{
public function __construct($config)
{
parent::__construct($config);
}
public function dashboard()
{
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection', false));
return;
2015-12-01 05:06:34 +00:00
}
public function editCompany()
{
// Check for request forgeries
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
// Get the input
$input = JFactory::getApplication()->input;
$id = $input->get('id', null, 'INT');
// set the redirecting
$this->setRedirect(JRoute::_('index.php?option=com_costbenefitprojection&view=companies&task=company.edit&id='.$id.'&ref=companyresults&refid='.$id, false));
}
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));
2022-03-03 02:58:38 +00:00
}
}