Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Extension:CheckUser/Hooks/CheckUserInsertLogEventRow

From mediawiki.org
<Extension:CheckUser
See also:Extension:CheckUser/Hooks/CheckUserInsertPrivateEventRow andExtension:CheckUser/Hooks/CheckUserInsertChangesRow
CheckUserInsertLogEventRow
Available from version 1.40.0 (Gerrit change 876322)
Use this hook to modify the IP, XFF or other values on rows being inserted into the cu_log_event table
Define function:
publicstaticfunctiononCheckUserInsertLogEventRow(string&$ip,&$xff,array&$row,UserIdentity$user,int$id,?RecentChange$rc){...}
Attach hook:
$wgHooks['CheckUserInsertLogEventRow'][]='MyExtensionHooks::onCheckUserInsertLogEventRow';
Called from:
File(s):CheckUser / src/Hooks.php
Function(s):insertIntoCuLogEventTable

For more information about attaching hooks, seeManual:Hooks.
For examples of other extensions using this hook, seeCategory:CheckUserInsertLogEventRow extensions.

Parameters

[edit]
  • &$ip - The IP address that will be stored in the row, which can be modified
  • &$xff - The XFF header that will be stored in the row, which can be modified
  • &$row - The row that will be stored in the cu_log_event after a few more modifications, which can be modified by code that hooks onto this hook
  • &$user - The user who made the request that caused the cu_log_event row.
  • $id - The ID of the log entry that is associated with this cu_log_event row.
  • $rc - Optional. The RecentChanges object associated with the request that caused the cu_log_event row insert (if one exists).
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:CheckUser/Hooks/CheckUserInsertLogEventRow&oldid=6119689"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp