Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4028248
EventLogger.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
882 B
Referenced Files
None
Subscribers
None
EventLogger.php
View Options
<?php
namespace
MediaWiki\CheckUser\Investigate\Utilities
;
use
MediaWiki\Extension\EventLogging\EventLogging
;
use
MediaWiki\Registration\ExtensionRegistry
;
class
EventLogger
{
private
ExtensionRegistry
$extensionRegistry
;
public
function
__construct
(
ExtensionRegistry
$extensionRegistry
)
{
$this
->
extensionRegistry
=
$extensionRegistry
;
}
/**
* If the EventLogging extension is loaded, then submit an analytics event to the event
* ingestion service.
*
* The event will be validated using the /analytics/legacy/specialinvestigate schema.
*
* @param array $event
*/
public
function
logEvent
(
$event
):
void
{
if
(
$this
->
extensionRegistry
->
isLoaded
(
'EventLogging'
)
)
{
EventLogging
::
submit
(
'eventlogging_SpecialInvestigate'
,
[
'$schema'
=>
'/analytics/legacy/specialinvestigate/1.0.0'
,
'event'
=>
$event
,
]
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 14 2026, 21:27 (12 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
96/0a/5311e4e6d4beaafaf9ca53d73be6
Default Alt Text
EventLogger.php (882 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment