Bitrix API

PinService uses ContextCustomer

Table of Contents

Constants

ADD_PIN_EVENT  = 'pinAdd'
DELETE_PIN_EVENT  = 'pinDelete'

Methods

getContext()  : Context
Returns the local or global context for the action.
getCount()  : int
pinMessage()  : Result
setContext()  : self
Sets new context for operations.
setContextUser()  : self
unpinMessage()  : Result
withContext()  : static
Provides local context for the action.
withContextUser()  : static
Provides local context for the action.

Constants

ADD_PIN_EVENT

public mixed ADD_PIN_EVENT = 'pinAdd'

DELETE_PIN_EVENT

public mixed DELETE_PIN_EVENT = 'pinDelete'

Methods

getCount()

public getCount(int $chatId[, int|null $startId = null ]) : int
Parameters
$chatId : int
$startId : int|null = null
Return values
int

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