Bitrix API

RestrictionManager

FinalYes

Table of Contents

Constants

DEFAULT_LIMIT  = 10
LOCK_NAME  = 'oo_edit_restriction'
TTL  = 4 * 3600
TTL_PENDING  = 2 * 60
UNLIMITED_VALUE  = -1

Methods

__construct()  : mixed
deleteOldOrPending()  : void
deleteOldOrPendingAgent()  : string
deletePendingUsages()  : void
getLimit()  : int
isAllowedEdit()  : bool
lock()  : bool
processHookData()  : void
registerUsage()  : void
shouldUseRestriction()  : bool
unlock()  : void

Constants

Methods

deleteOldOrPendingAgent()

public static deleteOldOrPendingAgent() : string
Return values
string

isAllowedEdit()

public isAllowedEdit(string $documentKey, int $userId) : bool
Parameters
$documentKey : string
$userId : int
Return values
bool

processHookData()

public processHookData(int $status, array<string|int, mixed> $hookData) : void
Parameters
$status : int
$hookData : array<string|int, mixed>

registerUsage()

public registerUsage(string $documentKey, int $userId) : void
Parameters
$documentKey : string
$userId : int

        
On this page

Search results