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:
RecentChange $change RecentChange to represent
bool $auto Whether the patrol event was automatic
Returns:
array

Definition at line 73 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 Title of the page that was patrolled
array $params Log parameters (from logging.log_params)
Skin $skin Skin to use for building links, etc.
Returns:
string

Definition at line 41 of file PatrolLog.php.

References $text, $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:
mixed $change Change identifier or RecentChange object
bool $auto 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 Sep 5 02:08:44 2009 for MediaWiki by  doxygen 1.5.9