MediaWiki  REL1_22
PatrolLog Class Reference

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

List of all members.

Static Public Member Functions

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

Static Private Member Functions

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

Detailed Description

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

Definition at line 29 of file PatrolLog.php.


Member Function Documentation

static PatrolLog::buildParams ( change,
auto 
) [static, private]

Prepare log parameters for a patrolled change.

Parameters:
$changeRecentChange to represent
$autoBoolean: whether the patrol event was automatic
Returns:
Array

Definition at line 78 of file PatrolLog.php.

References array().

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

Record a log event for a change being patrolled.

Parameters:
$rcMixed: change identifier or RecentChange object
$autoBoolean: was this patrol event automatic?
$userUser: user performing the action or null to use $wgUser
Returns:
bool

Definition at line 40 of file PatrolLog.php.

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


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