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
todo

This event should contain the $addSorting value, so listener knows when to add ORDER-BY stuff.

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

getFields()

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

getFirstResult()

public getFirstResult() : int
Return values
int

getMaxResults()

public getMaxResults() : int
Return values
int

getPageId()

public getPageId() : int
Return values
int

getTable()

public getTable() : string
Return values
string

        
On this page

Search results