File: /home/undanet/www/PortalEmpleo/src/Views/GestionarReports.php
<?php
use PortalEmpleo\Controller\ConvocatoriaController;
use PortalEmpleo\Utils\Load;
require __DIR__ . '/../../vendor/autoload.php';
session_start();
//include('src/Controller/UserController.php');
$controllerconvocatoria = new ConvocatoriaController();
if( pll_current_language() == 'en')
$lang = 'en_GB';
else
$lang = 'es_ES';
if($_SERVER['REQUEST_METHOD'] == "POST")
{
if(isset($_POST['actionReport']))
{
switch ($_POST['actionReport']) {
case 'candidatePersInfo':
call_user_func(array($controllerconvocatoria, 'candidatePersolInfoReport'), isset($lang) ? $lang : 'es_ES');
break;
case 'candidateAccessInfo':
call_user_func(array($controllerconvocatoria, 'candidateAccessInfoReport'), isset($lang) ? $lang : 'es_ES');
break;
case 'call':
call_user_func(array($controllerconvocatoria, 'callReport'), isset($lang) ? $lang : 'es_ES');
break;
default:
call_user_func(array($controllerconvocatoria, 'candidatePersolInfoReport'), isset($lang) ? $lang : 'es_ES');
break;
}
unset($_POST['accionConvocatoria']);
}
}
?>