Manual:Hooks/SpecialLogAddLogSearchRelations

From Linux Web Expert

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

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:SpecialLogAddLogSearchRelations extensions</tvar>.</translate>


Details

  • $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