MediaWiki  1.23.6
PatrolLog Class Reference

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

Static Public Member Functions

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

Static Private Member Functions

static buildParams ( $change, $auto)
 Prepare log parameters for a patrolled change. More...
 

Detailed Description

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

Definition at line 29 of file PatrolLog.php.

Member Function Documentation

◆ buildParams()

static PatrolLog::buildParams (   $change,
  $auto 
)
staticprivate

Prepare log parameters for a patrolled change.

Parameters
RecentChange$changeRecentChange to represent
bool$autoWhether the patrol event was automatic
Returns
array

Definition at line 78 of file PatrolLog.php.

References array().

◆ record()

static PatrolLog::record (   $rc,
  $auto = false,
User  $user = null 
)
static

Record a log event for a change being patrolled.

Parameters
mixed$rcChange identifier or RecentChange object
bool$autoWas this patrol event automatic?
User$userUser performing the action or null to use $wgUser
Returns
bool

Definition at line 39 of file PatrolLog.php.

References $user, $wgUser, global, and RecentChange\newFromId().

Referenced by WikiPage\doEditContent(), and RecentChange\doMarkPatrolled().


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