Basic implementation event signup
This commit is contained in:
45
modules/event-participants/Controllers/class-ajaxrouter.php
Normal file
45
modules/event-participants/Controllers/class-ajaxrouter.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace Bdp\Modules\EventParticipants\Controllers;
|
||||
|
||||
class AjaxRouterController {
|
||||
function __construct() {
|
||||
global $_REQUEST;
|
||||
switch ($_REQUEST['method']) {
|
||||
case 'kompass_print_participant_summary':
|
||||
new MemberSummaryController();
|
||||
break;
|
||||
|
||||
case 'print_kitchen_data':
|
||||
new PrintParticipantListKitchenPdfController();
|
||||
break;
|
||||
|
||||
case 'print_kitchen_allergies_data':
|
||||
new PrintParticipantListKitchenAllergiesPdfController();
|
||||
break;
|
||||
|
||||
case 'print_signup_data':
|
||||
new PrintParticipantListSignupPdfController();
|
||||
break;
|
||||
|
||||
case 'print_medical_data':
|
||||
new PrintParticipantListMedicalPdfController();
|
||||
break;
|
||||
|
||||
case 'print_drink_data':
|
||||
new PrintParticipantListDrinkingPdfController();
|
||||
break;
|
||||
|
||||
case 'print_drink_alcoholic_data':
|
||||
new PrintParticipantListDrinkingAlcoholicPdfController();
|
||||
break;
|
||||
|
||||
case 'print_photo_data':
|
||||
new PrintParticipantListPhotoPdfController();
|
||||
break;
|
||||
|
||||
default:
|
||||
echo 'No "method" specified.';
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user