Nextcloud PHP API (master)

IProvideEnabledStateBackend

Tags
since
28.0.0

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
since
28.0.0
since
30.0.0

$search parameter added

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
since
28.0.0
Return values
bool

setUserEnabled()

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.

Tags
since
28.0.0
Return values
bool

        
On this page

Search results