ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
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
26
class
CleanUpBans
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
}
ILIAS\Chatroom\CleanUpBans
Definition:
CleanUpBans.php:26
Closure
ILIAS\Chatroom
Definition:
AccessBridge.php:21
ilDBConstants
ILIAS\Chatroom\CleanUpBans\__construct
__construct(private readonly Closure $prepare)
Definition:
CleanUpBans.php:31
$id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition:
plugin.php:23
ilDBConstants\T_INTEGER
const T_INTEGER
Definition:
class.ilDBConstants.php:55
ILIAS\Chatroom\CleanUpBans\removeEntriesOfDeletedUser
removeEntriesOfDeletedUser(int $id)
Definition:
CleanUpBans.php:35
components
ILIAS
Chatroom
classes
CleanUpBans.php
Generated on Sun Aug 31 2025 23:02:30 for ILIAS by
1.8.13 (using
Doxyfile
)