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 | |
3 | namespace MediaWiki\CheckUser; |
4 | |
5 | /** |
6 | * An interface that provides several constants that are used |
7 | * by code that reads from the CheckUser tables. |
8 | */ |
9 | interface CheckUserQueryInterface { |
10 | |
11 | /** @var string The name of the table where log events only shown in CheckUser are stored. */ |
12 | public const PRIVATE_LOG_EVENT_TABLE = 'cu_private_event'; |
13 | |
14 | /** @var string The name of the table where log events are stored. */ |
15 | public const LOG_EVENT_TABLE = 'cu_log_event'; |
16 | |
17 | /** @var string The name of the table where non-log actions are stored. */ |
18 | public const CHANGES_TABLE = 'cu_changes'; |
19 | |
20 | /** @var string[] All tables that contain result rows. */ |
21 | public const RESULT_TABLES = [ |
22 | self::CHANGES_TABLE, |
23 | self::LOG_EVENT_TABLE, |
24 | self::PRIVATE_LOG_EVENT_TABLE, |
25 | ]; |
26 | |
27 | /** @var string[] A map of result table name to table column/index prefix */ |
28 | public const RESULT_TABLE_TO_PREFIX = [ |
29 | self::CHANGES_TABLE => 'cuc_', |
30 | self::LOG_EVENT_TABLE => 'cule_', |
31 | self::PRIVATE_LOG_EVENT_TABLE => 'cupe_', |
32 | ]; |
33 | } |