Basic implementation event signup
This commit is contained in:
16
modules/event-participants/Controllers/class-closeevent.php
Normal file
16
modules/event-participants/Controllers/class-closeevent.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace Bdp\Modules\EventParticipants\Controllers;
|
||||
|
||||
use Bdp\Modules\EventParticipants\Models\EventGroup;
|
||||
use Bdp\Modules\EventParticipants\Models\EventParticipant;
|
||||
|
||||
class CloseEvent {
|
||||
public function __construct() {
|
||||
global $_REQUEST, $dbHandler;
|
||||
|
||||
$dbHandler->updateRows(MainController::KOMPASS_EVENTS_EVENTS, ['signup_allowed' => false], ['id' => $_REQUEST['event-id']]);
|
||||
kompass_print_message_box(__('Event closed for signup', BDP_LV_PLUGIN_SLUG));
|
||||
|
||||
new ListEventsController();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user