< Manual:Hooks
| SpecialNewpagesConditions | |
|---|---|
| Available from version 1.17.0 Called when building the SQL query for Special:NewPages. | |
| Define function: | public static function onSpecialNewpagesConditions( NewPagesPager &$pager, FormOptions $opts, array &$conds, array &$tables, array &$fields, array &$joinConds ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"SpecialNewpagesConditions": "MyExtensionHooks::onSpecialNewpagesConditions"
}
}
|
| Called from: | File(s): specials/pagers/NewPagesPager.php Function(s): getQueryInfo |
| Interface: | SpecialNewpagesConditionsHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialNewpagesConditions extensions.
Details
&$pager: NewPagesPager object (subclass of ReverseChronologicalPager)$opts: FormOptions object containing special page options&$conds: array ofWHEREconditionals for query&$tables: array of tables to be queried&$fields: array of columns to select&$joinConds:JOINconditions for the tables
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.