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)
 Record a log event for a change being patrolled.
static makeActionText ($title, $params, $skin)
 Generate the log action text corresponding to a patrol log item.

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.

Author:
Rob Church <robchur@gmail.com>

Definition at line 9 of file PatrolLog.php.


Member Function Documentation

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

Prepare log parameters for a patrolled change.

Parameters:
$change RecentChange to represent
$auto Boolean: whether the patrol event was automatic
Returns:
Array

Definition at line 81 of file PatrolLog.php.

Referenced by record().

static PatrolLog::makeActionText ( title,
params,
skin 
) [static]

Generate the log action text corresponding to a patrol log item.

Parameters:
$title Title of the page that was patrolled
$params Array: log parameters (from logging.log_params)
$skin Skin to use for building links, etc.
Returns:
String

Definition at line 41 of file PatrolLog.php.

References $title, wfMsg(), wfMsgForContent(), and wfMsgHtml().

Referenced by LogPage::actionText().

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

Record a log event for a change being patrolled.

Parameters:
$rc Mixed: change identifier or RecentChange object
$auto Boolean: was this patrol event automatic?

Definition at line 17 of file PatrolLog.php.

References $title, buildParams(), Title::makeTitleSafe(), and RecentChange::newFromId().

Referenced by Article::doEdit(), and RecentChange::doMarkPatrolled().


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

Generated on Sat Apr 30 22:57:45 2011 for MediaWiki by  doxygen 1.5.9