Jump to content

Manual:Hooks/SpecialLogAddLogSearchRelations

From mediawiki.org
SpecialLogAddLogSearchRelations
Available from version 1.24.0 (Gerrit change 169540)
Add log relations to the current log
Define function:
public static function onSpecialLogAddLogSearchRelations( string $type, WebRequest $request, array &$queryConds ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"SpecialLogAddLogSearchRelations": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialLogAddLogSearchRelations"
	}
}
Called from: File(s): specials/SpecialLog.php
Function(s): execute
Interface: SpecialLogAddLogSearchRelationsHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:SpecialLogAddLogSearchRelations extensions.


Details

[edit]
  • $type: String of the log type
  • $request: WebRequest object for getting the value provided by the current user
  • &$queryConds: Array for query conditions to add