Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\CheckUser\Hook;
4
5use RecentChange;
6
7interface CheckUserInsertForRecentChangeHook {
8    /**
9     * Allows extensions to intercept and modify the
10     * data inserted to cu_changes table when triggered
11     * by a RecentChange insert.
12     *
13     * @param RecentChange $rc The database row triggering the insert
14     * @param array &$rcRow The database row to be inserted to cu_changes table
15     * @since 1.40
16     *
17     * @deprecated Use CheckUserInsertLogEventRowHook, CheckUserInsertPrivateEventRowHook and/or
18     *  CheckUserInsertChangesRowHook. Current usages will not have events from cu_private_event
19     *  and cu_log_event trigger this hook due to the $rcRow having different columns.
20     */
21    public function onCheckUserInsertForRecentChange(
22        RecentChange $rc,
23        array &$rcRow
24    );
25}