Bitrix API

PrivatePushService extends PushService

Table of Contents

Methods

__construct()  : mixed
getContext()  : Context
Returns the local or global context for the action.
getEventByCounterGroup()  : array<string|int, mixed>
getEventGroups()  : array<string|int, mixed>
getEventGroupsByCounters()  : array<string|int, mixed>
isPullEnable()  : bool
sendPush()  : void
setContext()  : self
Sets new context for operations.
setContextUser()  : self
withContext()  : static
Provides local context for the action.
withContextUser()  : static
Provides local context for the action.

Methods

getEventByCounterGroup()

public static getEventByCounterGroup(array<string|int, mixed> $events[, int $maxUserInGroup = 100 ]) : array<string|int, mixed>
Parameters
$events : array<string|int, mixed>
$maxUserInGroup : int = 100
Return values
array<string|int, mixed>

getEventGroups()

public static getEventGroups(array<string|int, mixed> $event, array<string|int, mixed> $userIds, int $chatId) : array<string|int, mixed>
Parameters
$event : array<string|int, mixed>
$userIds : array<string|int, mixed>
$chatId : int
Return values
array<string|int, mixed>

getEventGroupsByCounters()

public static getEventGroupsByCounters(array<string|int, mixed> $event, array<string|int, mixed> $counters) : array<string|int, mixed>
Parameters
$event : array<string|int, mixed>
$counters : array<string|int, mixed>
Return values
array<string|int, mixed>

isPullEnable()

public isPullEnable() : bool
Return values
bool

sendPush()

public sendPush([array<string|int, mixed> $counters = [] ]) : void
Parameters
$counters : array<string|int, mixed> = []

setContext()

Sets new context for operations.

public setContext(Context|null $context) : self
Parameters
$context : Context|null
Return values
self

setContextUser()

public setContextUser(mixed $user) : self
Parameters
$user : mixed
Return values
self

withContext()

Provides local context for the action.

public withContext(Context|null $context) : static
Parameters
$context : Context|null
Return values
static

withContextUser()

Provides local context for the action.

public withContextUser(int|User|User $user) : static
Parameters
$user : int|User|User
Return values
static

        
On this page

Search results