MediaWiki master
MediaWiki\Logging\PatrolLog Class Reference

Class containing static functions for working with logs of patrol events. More...

Static Public Member Functions

static record ( $rc, $auto, UserIdentity $user, $tags=null)
 Record a log event for a change being patrolled.
 

Detailed Description

Class containing static functions for working with logs of patrol events.

Deprecated
since 1.47

Definition at line 23 of file PatrolLog.php.

Member Function Documentation

◆ record()

static MediaWiki\Logging\PatrolLog::record ( $rc,
$auto,
UserIdentity $user,
$tags = null )
static

Record a log event for a change being patrolled.

Deprecated
Since 1.47. Use PatrolManager::createPatrolLog instead. The new method does not filter out automatic patrol events and requires a RecentChange object instead of also accepting an ID
Parameters
int | RecentChange$rcChange identifier or RecentChange object
bool$autoWas this patrol event automatic?
UserIdentity$userUser performing the action
string | string[] | null$tagsChange tags to add to the patrol log entry ($user should be able to add the specified tags before this is called)
Returns
bool

Definition at line 40 of file PatrolLog.php.

References MediaWiki\MediaWikiServices\getInstance(), and wfDeprecated().


The documentation for this class was generated from the following file: