kompass/modules/event-participants/Controllers/class-archiveevent.php

13 lines
414 B
PHP
Raw Permalink Normal View History

2024-05-27 16:59:30 +02:00
<?php
namespace Bdp\Modules\EventParticipants\Controllers;
class ArchiveEvent {
public function __construct() {
global $_REQUEST, $dbHandler;
$dbHandler->updateRows(MainController::KOMPASS_EVENTS_EVENTS, ['signup_allowed' => false, 'archived' => true], ['id' => $_REQUEST['event-id']]);
kompass_print_message_box(__('Event archived successfully.', BDP_LV_PLUGIN_SLUG));
new ListEventsController();
}
}