ReactionRepository

class \TYPO3\CMS\Reactions\Repository\ReactionRepository

Accessing reaction records from the database

Table of Contents

Methods

__construct()  : mixed
countAll()  : int
findAll()  : array
findByDemand()  : array
findImpersonatedUsers()  : array<int, string>
The backend users that reactions impersonate, by username.
getReactionRecordByIdentifier()  : ReactionInstruction|null
Used within the resolving / execution process, so starttime / endtime is added.
getReactionRecordByUid()  : ReactionInstruction|null
Used within the backend module, so hidden and scheduled reactions are found as well.
getReactionRecords()  : array
updateLastCall()  : void
Written without DataHandler on purpose: a call is no change of the reaction, so it neither touches the modification date nor ends up in the history or the log.
getQueryBuilder()  : QueryBuilder
getQueryBuilderForDemand()  : QueryBuilder
map()  : array
mapSingleRow()  : ReactionInstruction

Methods

findAll()

public findAll() : array

Return values

array

findImpersonatedUsers()

The backend users that reactions impersonate, by username.

public findImpersonatedUsers() : array<int, string>

Return values

array<int, string>

getReactionRecordByIdentifier()

Used within the resolving / execution process, so starttime / endtime is added.

public getReactionRecordByIdentifier(string $identifier) : ReactionInstruction|null

Parameters

$identifier : string

Return values

ReactionInstruction|null

getReactionRecordByUid()

Used within the backend module, so hidden and scheduled reactions are found as well.

public getReactionRecordByUid(int $uid) : ReactionInstruction|null

Parameters

$uid : int

Return values

ReactionInstruction|null

updateLastCall()

Written without DataHandler on purpose: a call is no change of the reaction, so it neither touches the modification date nor ends up in the history or the log.

public updateLastCall(int $uid, int $statusCode, string $failure) : void

Parameters

$uid : int
$statusCode : int
$failure : string

getQueryBuilder()

protected getQueryBuilder([bool $addDefaultOrderByClause = true ]) : QueryBuilder

Parameters

$addDefaultOrderByClause : bool = true

Return values

QueryBuilder

map()

protected map(array $rows) : array

Parameters

$rows : array

Return values

array
On this page