LogEntryRepository
Sys log entry repository
This class is a TYPO3 Backend implementation and is not considered part of the Public TYPO3 API.
Table of Contents
Methods
- deleteByMessageDetails() : int
- Deletes all messages which have the same message details
- findByConstraint() : array<string|int, LogEntry>
- Finds all log entries that match all given constraints.
- findByUid() : LogEntry|null
- getUsedChannels() : array<string|int, mixed>
- getUsedLevels() : array<string|int, mixed>
- addPageTreeConstraintsToQuery() : string|null
- Adds constraints for the page(s) to the query; this could be one single page or a whole subtree beneath a given page.
- addUsersAndGroupsToQueryConstraints() : array<string|int, mixed>
- Adds users and groups to the query constraints.
- createQuery() : QueryBuilder
- createQueryConstraints() : array<string|int, mixed>
- Create an array of query constraints from constraint object
Methods
deleteByMessageDetails()
Deletes all messages which have the same message details
public
deleteByMessageDetails(LogEntry $logEntry) : int
Parameters
- $logEntry : LogEntry
Return values
intfindByConstraint()
Finds all log entries that match all given constraints.
public
findByConstraint(Constraint $constraint) : array<string|int, LogEntry>
Parameters
- $constraint : Constraint
Return values
array<string|int, LogEntry>findByUid()
public
findByUid(mixed $uid) : LogEntry|null
Parameters
- $uid : mixed
Return values
LogEntry|nullgetUsedChannels()
public
getUsedChannels() : array<string|int, mixed>
Return values
array<string|int, mixed>getUsedLevels()
public
getUsedLevels() : array<string|int, mixed>
Return values
array<string|int, mixed>addPageTreeConstraintsToQuery()
Adds constraints for the page(s) to the query; this could be one single page or a whole subtree beneath a given page.
protected
addPageTreeConstraintsToQuery(Constraint $constraint, QueryBuilder $query) : string|null
Parameters
- $constraint : Constraint
- $query : QueryBuilder
Return values
string|nulladdUsersAndGroupsToQueryConstraints()
Adds users and groups to the query constraints.
protected
addUsersAndGroupsToQueryConstraints(Constraint $constraint, QueryBuilder $query) : array<string|int, mixed>
Parameters
- $constraint : Constraint
- $query : QueryBuilder
Return values
array<string|int, mixed>createQuery()
protected
createQuery() : QueryBuilder
Return values
QueryBuildercreateQueryConstraints()
Create an array of query constraints from constraint object
protected
createQueryConstraints(QueryBuilder $query, Constraint $constraint) : array<string|int, mixed>
Parameters
- $query : QueryBuilder
- $constraint : Constraint