IProvideEnabledStateBackend
in
Tags
Table of Contents
Methods
- getDisabledUserList() : array<string|int, string>
- Get the list of disabled users, to merge with the ones disabled in database
- isUserEnabled() : bool
- setUserEnabled() : bool
Methods
getDisabledUserList()
Get the list of disabled users, to merge with the ones disabled in database
public
getDisabledUserList([int|null $limit = null ][, int $offset = 0 ][, string $search = '' ]) : array<string|int, string>
Parameters
- $limit : int|null = null
- $offset : int = 0
- $search : string = ''
Tags
Return values
array<string|int, string>isUserEnabled()
public
isUserEnabled(string $uid, callable(): bool $queryDatabaseValue) : bool
Parameters
- $uid : string
- $queryDatabaseValue : callable(): bool
-
A callable to query the enabled state from database
Tags
Return values
boolsetUserEnabled()
public
setUserEnabled(string $uid, bool $enabled, callable(): bool $queryDatabaseValue, callable(bool): void $setDatabaseValue) : bool
Parameters
- $uid : string
- $enabled : bool
- $queryDatabaseValue : callable(): bool
-
A callable to query the enabled state from database
- $setDatabaseValue : callable(bool): void
-
A callable to set the enabled state in the database.