ReactionRepository
class \
Accessing reaction records from the database
Internal
This class is not part of TYPO3's Core API.
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
__construct()
public
__construct(ConnectionPool $connectionPool, Context $context) : mixed
Parameters
- $connectionPool : ConnectionPool
- $context : Context
countAll()
public
countAll([ReactionDemand|null $demand = null ]) : int
Parameters
- $demand : ReactionDemand|null = null
Return values
intfindAll()
public
findAll() : array
Return values
arrayfindByDemand()
public
findByDemand(ReactionDemand $demand) : array
Parameters
- $demand : ReactionDemand
Return values
arrayfindImpersonatedUsers()
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|nullgetReactionRecordByUid()
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|nullgetReactionRecords()
public
getReactionRecords([ReactionDemand|null $demand = null ]) : array
Parameters
- $demand : ReactionDemand|null = null
Return values
arrayupdateLastCall()
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
QueryBuildergetQueryBuilderForDemand()
protected
getQueryBuilderForDemand(ReactionDemand $demand[, bool $addOrderBy = true ]) : QueryBuilder
Parameters
- $demand : ReactionDemand
- $addOrderBy : bool = true
Return values
QueryBuildermap()
protected
map(array $rows) : array
Parameters
- $rows : array
Return values
arraymapSingleRow()
protected
mapSingleRow(array $row) : ReactionInstruction
Parameters
- $row : array