ModifyDatabaseQueryForRecordListingEvent
FinalYes
Use this Event to alter the database query when loading content for a page (usually in the list module) before it is executed.
Tags
Table of Contents
Methods
- __construct() : mixed
- getDatabaseRecordList() : DatabaseRecordList
- getFields() : array<string|int, mixed>
- getFirstResult() : int
- getMaxResults() : int
- getPageId() : int
- getQueryBuilder() : QueryBuilder
- getTable() : string
- setQueryBuilder() : void
Methods
__construct()
public
__construct(QueryBuilder $queryBuilder, string $table, int $pageId, array<string|int, mixed> $fields, int $firstResult, int $maxResults, DatabaseRecordList $recordList) : mixed
Parameters
- $queryBuilder : QueryBuilder
- $table : string
- $pageId : int
- $fields : array<string|int, mixed>
- $firstResult : int
- $maxResults : int
- $recordList : DatabaseRecordList
getDatabaseRecordList()
public
getDatabaseRecordList() : DatabaseRecordList
Return values
DatabaseRecordListgetFields()
public
getFields() : array<string|int, mixed>
Return values
array<string|int, mixed>getFirstResult()
public
getFirstResult() : int
Return values
intgetMaxResults()
public
getMaxResults() : int
Return values
intgetPageId()
public
getPageId() : int
Return values
intgetQueryBuilder()
public
getQueryBuilder() : QueryBuilder
Return values
QueryBuildergetTable()
public
getTable() : string
Return values
stringsetQueryBuilder()
public
setQueryBuilder(QueryBuilder $queryBuilder) : void
Parameters
- $queryBuilder : QueryBuilder