Bitrix API

ReactionService uses ContextCustomer

Table of Contents

Methods

__construct()  : mixed
addReaction()  : Result
deleteAllReactions()  : void
deleteReaction()  : Result
getContext()  : Context
Returns the local or global context for the action.
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

__construct()

public __construct(Message $message[, bool $withLegacy = true ]) : mixed
Parameters
$message : Message
$withLegacy : bool = true

addReaction()

public addReaction(string $reaction[, bool $byEvent = false ]) : Result
Parameters
$reaction : string
$byEvent : bool = false
Return values
Result

deleteReaction()

public deleteReaction(string $reaction[, bool $byEvent = false ]) : Result
Parameters
$reaction : string
$byEvent : bool = false
Return values
Result

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