Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4128092
CheckUserInsertChangesRowHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
CheckUserInsertChangesRowHook.php
View Options
<?php
namespace
MediaWiki\CheckUser\Hook
;
use
MediaWiki\User\UserIdentity
;
use
RecentChange
;
interface
CheckUserInsertChangesRowHook
{
/**
* Use this hook to modify the IP, XFF or other values
* in the row to be inserted into cu_changes.
*
* If changing the request IP or XFF stored in the database, you are
* required to modify $ip and $xff (instead of
* modifying $row) as CheckUser will calculate other
* values based on those parameters and not the values
* in $row.
*
* @since 1.40
*
* @param string &$ip The user's IP
* @param string|false &$xff The XFF for the request; false if no defined XFF
* @param array &$row The row to be inserted (before defaults are applied)
* @param UserIdentity $user The user who performed the action associated with this row
* @param ?RecentChange $rc If triggered by a RecentChange, then this is the associated
* RecentChange object. Null if not triggered by a RecentChange.
* @codeCoverageIgnore Cannot be annotated as covered.
*/
public
function
onCheckUserInsertChangesRow
(
string
&
$ip
,
&
$xff
,
array
&
$row
,
UserIdentity
$user
,
?
RecentChange
$rc
);
}
/**
* Retain the old class name for backwards compatibility.
* @deprecated since 1.41
*/
class_alias
(
CheckUserInsertChangesRowHook
::
class
,
'MediaWiki
\C
heckUser
\H
ook
\C
heckUserInsertChangesRow'
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 09:04 (2 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
04/d0/15acf1f1aff0bd1f6f4bc4cb7e41
Default Alt Text
CheckUserInsertChangesRowHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment