ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
CleanUpBans.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Chatroom;
22 
23 use ilDBConstants;
24 use 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 }
__construct(private readonly Closure $prepare)
Definition: CleanUpBans.php:31
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23