Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/SpecialLogAddLogSearchRelations

From mediawiki.org
<Manual:Hooks
SpecialLogAddLogSearchRelations
Available fromversion 1.24.0 (Gerrit change 169540)
Add log relations to the current log
Define function:
publicstaticfunctiononSpecialLogAddLogSearchRelations(string$type,WebRequest$request,array&$queryConds){...}
Attach hook:Inextension.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, seeManual:Hooks.
For examples of extensions using this hook, seeCategory: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
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/SpecialLogAddLogSearchRelations&oldid=3293744"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp