ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
CleanUpBans.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Chatroom;
22
24use Closure;
25
27{
31 public function __construct(private readonly Closure $prepare)
32 {
33 }
34
35 public function removeEntriesOfDeletedUser(int $id): void
36 {
37 $execute = ($this->prepare)('DELETE FROM chatroom_bans WHERE user_id = ?', [ilDBConstants::T_INTEGER]);
38 $execute([$id]);
39 }
40}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
__construct(private readonly Closure $prepare)
Definition: CleanUpBans.php:31
Class ilDBConstants.