Manual:PageSelectQueryBuilder.php
Appearance
MediaWiki file: PageSelectQueryBuilder.php | |
---|---|
Location: | includes/page/ |
Source code: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes: | MediaWiki\Page\PageSelectQueryBuilder |
Class for building queries on wiki pages and fetching their results. Extends SelectQueryBuilder. Available since MW 1.36.
Public methods
[edit]WHERE:
- wherePageIds() - find pages by provided page ids.
- whereNamespace()
- whereTitlePrefix()
- whereTitles()
ORDER BY:
- orderByTitle() - order by
page_namespace
, thenpage_title
in ascending or descending order. - There is no dedicated method for ordering by display title (part of
page_props
), or observe the collation algorithm. - orderByPageId()
Run and fetch:
- fetchPageRecord()
- fetchPageRecords()
- fetchPageRecordArray()
- fetchPageIds()