Bitrix API

ObserverManager

Table of Contents

Methods

deleteByOwner()  : mixed
getEntityBulkObserverIDs()  : mixed
getEntityObserverIDs()  : mixed
observersIdsByEntity()  : array<string|int, mixed>
prepareObserverChanges()  : mixed
registerBulk()  : mixed
transferOwnership()  : mixed
Unbind observers from old entity of one type and bind them to new entity of another type.
unregister()  : mixed
unregisterBulk()  : mixed

Methods

deleteByOwner()

public static deleteByOwner(mixed $entityTypeID, mixed $entityID) : mixed
Parameters
$entityTypeID : mixed
$entityID : mixed

getEntityBulkObserverIDs()

public static getEntityBulkObserverIDs(mixed $entityTypeID, array<string|int, mixed> $entityIDs) : mixed
Parameters
$entityTypeID : mixed
$entityIDs : array<string|int, mixed>

getEntityObserverIDs()

public static getEntityObserverIDs(mixed $entityTypeID, mixed $entityID) : mixed
Parameters
$entityTypeID : mixed
$entityID : mixed

observersIdsByEntity()

public static observersIdsByEntity(int $entityTypeId, int $entityId) : array<string|int, mixed>
Parameters
$entityTypeId : int
$entityId : int
Return values
array<string|int, mixed>

prepareObserverChanges()

public static prepareObserverChanges(array<string|int, mixed> $origin, array<string|int, mixed> $current, array<string|int, mixed> &$added, array<string|int, mixed> &$removed) : mixed
Parameters
$origin : array<string|int, mixed>
$current : array<string|int, mixed>
$added : array<string|int, mixed>
$removed : array<string|int, mixed>

registerBulk()

public static registerBulk(array<string|int, mixed> $userIDs, mixed $entityTypeID, mixed $entityID[, mixed $sortOffset = 0 ]) : mixed
Parameters
$userIDs : array<string|int, mixed>
$entityTypeID : mixed
$entityID : mixed
$sortOffset : mixed = 0

transferOwnership()

Unbind observers from old entity of one type and bind them to new entity of another type.

public static transferOwnership(int $oldEntityTypeID, int $oldEntityID, int $newEntityTypeID, int $newEntityID) : mixed
Parameters
$oldEntityTypeID : int

Old Entity Type ID.

$oldEntityID : int

Old Old Entity ID.

$newEntityTypeID : int

New Entity Type ID.

$newEntityID : int

New Entity ID.

Tags
throws
ArgumentException
throws
SqlQueryException
throws
ObjectException

unregister()

public static unregister(mixed $userID, mixed $entityTypeID, mixed $entityID) : mixed
Parameters
$userID : mixed
$entityTypeID : mixed
$entityID : mixed

unregisterBulk()

public static unregisterBulk(array<string|int, mixed> $userIDs, mixed $entityTypeID, mixed $entityID) : mixed
Parameters
$userIDs : array<string|int, mixed>
$entityTypeID : mixed
$entityID : mixed

        
On this page

Search results