Bitrix API

ReactionMessages extends Registry implements RestConvertible, PopupDataAggregatable uses ContextCustomer

Tags
implements

Table of Contents

Interfaces

RestConvertible
PopupDataAggregatable
An interface for classes that have entities within them that should be taken to the top level of a REST response.

Methods

__construct()  : mixed
addReactionMessage()  : self
current()  : ReactionMessage
filter()  : $this
getAny()  : T|null
getContext()  : Context
Returns the local or global context for the action.
getPopupData()  : PopupData
Returns the data to be raised to the top of the REST response. Works on the principle of the composite pattern.
getReactionMessage()  : ReactionMessage
getRestEntityName()  : string
Returns the name of the entity that will be used in the rest response
getUserIds()  : array<string|int, mixed>
initFromArray()  : self
merge()  : static
next()  : ReactionMessage
offsetGet()  : ReactionMessage
setContext()  : self
Sets new context for operations.
setContextUser()  : self
toRestFormat()  : array<string|int, mixed>|null
Returns an array in JSON like format to return the entity as a rest response.
unsetByKeys()  : void
withContext()  : static
Provides local context for the action.
withContextUser()  : static
Provides local context for the action.

Methods

__construct()

public __construct(array<string|int, mixed> $messageIds[, bool $withOwnReactions = true ]) : mixed
Parameters
$messageIds : array<string|int, mixed>
$withOwnReactions : bool = true

filter()

public filter(callable $predicate) : $this
Parameters
$predicate : callable
Return values
$this

getAny()

public getAny() : T|null
Return values
T|null

getPopupData()

Returns the data to be raised to the top of the REST response. Works on the principle of the composite pattern.

public getPopupData([array<string|int, mixed> $excludedList = [] ]) : PopupData
Parameters
$excludedList : array<string|int, mixed> = []
Return values
PopupData

getRestEntityName()

Returns the name of the entity that will be used in the rest response

public static getRestEntityName() : string
Return values
string

getUserIds()

public getUserIds() : array<string|int, mixed>
Return values
array<string|int, mixed>

initFromArray()

public static initFromArray(array<string|int, mixed> $reactionArray[, bool $withOwnReactions = true ]) : self
Parameters
$reactionArray : array<string|int, mixed>
$withOwnReactions : bool = true
Return values
self

merge()

public merge(Registry<string|int, T$registry) : static
Parameters
$registry : Registry<string|int, T>
Return values
static

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

toRestFormat()

Returns an array in JSON like format to return the entity as a rest response.

public toRestFormat([array<string|int, mixed> $option = [] ]) : array<string|int, mixed>|null
Parameters
$option : array<string|int, mixed> = []
Return values
array<string|int, mixed>|null

unsetByKeys()

public unsetByKeys(array<string|int, mixed> $keys) : void
Parameters
$keys : array<string|int, mixed>

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