Inherited by EnhancedChangesList, and OldChangesList.
Public Member Functions | |
__construct (&$skin) | |
Changeslist contructor. | |
beginRecentChangesList () | |
Returns text for the start of the tabular part of RC. | |
endRecentChangesList () | |
Returns text for the end of RC. | |
insertUserRelatedLinks (&$s, &$rc) | |
Insert links to user page, user talk page and eventually a blocking link. | |
Static Public Member Functions | |
static | newFromUser (&$user) |
Fetch an appropriate changes list class for the specified user Some users might want to use an enhanced list format, for instance. | |
static | showCharacterDifference ($old, $new) |
Show formatted char difference. | |
static | usePatrol () |
Check whether to enable recent changes patrol features. | |
static | isDeleted ($rc, $field) |
Determine if said field of a revision is hidden. | |
static | userCan ($rc, $field) |
Determine if the current user is allowed to view a particular field of this revision, if it's marked as deleted. | |
Public Attributes | |
$skin | |
Protected Member Functions | |
recentChangesFlags ($new, $minor, $patrolled, $nothing= ' ', $bot=false) | |
Returns the appropriate flags for new page, minor change and patrolling. | |
insertMove (&$s, $rc) | |
insertDateHeader (&$s, $rc_timestamp) | |
insertLog (&$s, $title, $logtype) | |
insertDiffHist (&$s, &$rc, $unpatrolled) | |
insertArticleLink (&$s, &$rc, $unpatrolled, $watched) | |
insertTimestamp (&$s, $rc) | |
insertAction (&$s, &$rc) | |
insert a formatted action | |
insertComment (&$s, &$rc) | |
insert a formatted comment | |
numberofWatchingusers ($count) | |
Returns the string which indicates the number of watching users. | |
maybeWatchedLink ($link, $watched=false) | |
insertRollback (&$s, &$rc) | |
Inserts a rollback link. | |
insertTags (&$s, &$rc, &$classes) | |
insertExtra (&$s, &$rc, &$classes) | |
Private Member Functions | |
preCacheMessages () | |
As we use the same small set of messages in various methods and that they are called often, we call them once and save them in $this->message. |
Definition at line 25 of file ChangesList.php.
ChangesList::__construct | ( | &$ | skin | ) |
Changeslist contructor.
Skin | $skin |
Definition at line 33 of file ChangesList.php.
References $skin, and preCacheMessages().
ChangesList::beginRecentChangesList | ( | ) |
Returns text for the start of the tabular part of RC.
Reimplemented in EnhancedChangesList.
Definition at line 93 of file ChangesList.php.
ChangesList::endRecentChangesList | ( | ) |
Returns text for the end of RC.
Reimplemented in EnhancedChangesList.
Definition at line 130 of file ChangesList.php.
ChangesList::insertAction | ( | &$ | s, | |
&$ | rc | |||
) | [protected] |
insert a formatted action
Definition at line 236 of file ChangesList.php.
References $s, LogPage::DELETED_ACTION, LogPage::extractParams(), isDeleted(), and wfMsgHtml().
Referenced by EnhancedChangesList::recentChangesBlockGroup(), and OldChangesList::recentChangesLine().
ChangesList::insertArticleLink | ( | &$ | s, | |
&$ | rc, | |||
$ | unpatrolled, | |||
$ | watched | |||
) | [protected] |
Definition at line 194 of file ChangesList.php.
References $s, $wgContLang, Revision::DELETED_TEXT, and wfRunHooks().
Referenced by EnhancedChangesList::recentChangesBlockGroup(), EnhancedChangesList::recentChangesBlockLine(), and OldChangesList::recentChangesLine().
ChangesList::insertComment | ( | &$ | s, | |
&$ | rc | |||
) | [protected] |
insert a formatted comment
Definition at line 248 of file ChangesList.php.
References $s, Revision::DELETED_COMMENT, isDeleted(), and wfMsgHtml().
Referenced by EnhancedChangesList::recentChangesBlockGroup(), EnhancedChangesList::recentChangesBlockLine(), and OldChangesList::recentChangesLine().
ChangesList::insertDateHeader | ( | &$ | s, | |
$ | rc_timestamp | |||
) | [protected] |
ChangesList::insertDiffHist | ( | &$ | s, | |
&$ | rc, | |||
$ | unpatrolled | |||
) | [protected] |
Definition at line 169 of file ChangesList.php.
References $s, Revision::DELETED_TEXT, userCan(), and wfArrayToCGI().
Referenced by OldChangesList::recentChangesLine().
ChangesList::insertExtra | ( | &$ | s, | |
&$ | rc, | |||
&$ | classes | |||
) | [protected] |
ChangesList::insertLog | ( | &$ | s, | |
$ | title, | |||
$ | logtype | |||
) | [protected] |
Definition at line 164 of file ChangesList.php.
References $s, $title, and LogPage::logName().
Referenced by OldChangesList::recentChangesLine().
ChangesList::insertMove | ( | &$ | s, | |
$ | rc | |||
) | [protected] |
Definition at line 138 of file ChangesList.php.
References $msg, $s, and wfMsg().
Referenced by OldChangesList::recentChangesLine().
ChangesList::insertRollback | ( | &$ | s, | |
&$ | rc | |||
) | [protected] |
Inserts a rollback link.
Definition at line 323 of file ChangesList.php.
References $page, $s, and $wgUser.
Referenced by EnhancedChangesList::recentChangesBlockGroup(), EnhancedChangesList::recentChangesBlockLine(), and OldChangesList::recentChangesLine().
ChangesList::insertTags | ( | &$ | s, | |
&$ | rc, | |||
&$ | classes | |||
) | [protected] |
Definition at line 343 of file ChangesList.php.
References $classes, $s, and ChangeTags::formatSummaryRow().
Referenced by EnhancedChangesList::recentChangesBlockGroup(), EnhancedChangesList::recentChangesBlockLine(), and OldChangesList::recentChangesLine().
ChangesList::insertTimestamp | ( | &$ | s, | |
$ | rc | |||
) | [protected] |
ChangesList::insertUserRelatedLinks | ( | &$ | s, | |
&$ | rc | |||
) |
Insert links to user page, user talk page and eventually a blocking link.
Definition at line 226 of file ChangesList.php.
References $s, Revision::DELETED_USER, isDeleted(), and wfMsgHtml().
Referenced by OldChangesList::recentChangesLine().
static ChangesList::isDeleted | ( | $ | rc, | |
$ | field | |||
) | [static] |
Determine if said field of a revision is hidden.
RCCacheEntry | $rc | |
int | $field one of DELETED_* bitfield constants |
Definition at line 290 of file ChangesList.php.
Referenced by insertAction(), insertComment(), insertUserRelatedLinks(), EnhancedChangesList::recentChangesBlockGroup(), EnhancedChangesList::recentChangesBlockLine(), and EnhancedChangesList::recentChangesLine().
ChangesList::maybeWatchedLink | ( | $ | link, | |
$ | watched = false | |||
) | [protected] |
Definition at line 314 of file ChangesList.php.
Referenced by EnhancedChangesList::recentChangesBlockGroup().
static ChangesList::newFromUser | ( | &$ | user | ) | [static] |
Fetch an appropriate changes list class for the specified user Some users might want to use an enhanced list format, for instance.
$user | User to fetch the list class for |
Definition at line 45 of file ChangesList.php.
References $user, and wfRunHooks().
Referenced by SpecialRecentChanges::webOutput(), and wfSpecialWatchlist().
ChangesList::numberofWatchingusers | ( | $ | count | ) | [protected] |
Returns the string which indicates the number of watching users.
Definition at line 270 of file ChangesList.php.
References $count, $wgLang, and wfMsgExt().
Referenced by EnhancedChangesList::recentChangesBlockGroup(), and EnhancedChangesList::recentChangesBlockLine().
ChangesList::preCacheMessages | ( | ) | [private] |
As we use the same small set of messages in various methods and that they are called often, we call them once and save them in $this->message.
Definition at line 60 of file ChangesList.php.
References $msg, and wfMsgExt().
Referenced by __construct().
ChangesList::recentChangesFlags | ( | $ | new, | |
$ | minor, | |||
$ | patrolled, | |||
$ | nothing = ' ' , |
|||
$ | bot = false | |||
) | [protected] |
Returns the appropriate flags for new page, minor change and patrolling.
bool | $new | |
bool | $minor | |
bool | $patrolled | |
string | $nothing, string to use for empty space | |
bool | $bot |
Definition at line 79 of file ChangesList.php.
Referenced by EnhancedChangesList::recentChangesBlockGroup(), EnhancedChangesList::recentChangesBlockLine(), and OldChangesList::recentChangesLine().
static ChangesList::showCharacterDifference | ( | $ | old, | |
$ | new | |||
) | [static] |
Show formatted char difference.
int | $old bytes | |
int | $new bytes |
Definition at line 108 of file ChangesList.php.
References $wgLang, $wgRCChangedSizeThreshold, and wfMsgExt().
Referenced by RecentChange::getCharacterDifference().
static ChangesList::usePatrol | ( | ) | [static] |
Check whether to enable recent changes patrol features.
Definition at line 262 of file ChangesList.php.
References $wgUser.
static ChangesList::userCan | ( | $ | rc, | |
$ | field | |||
) | [static] |
Determine if the current user is allowed to view a particular field of this revision, if it's marked as deleted.
RCCacheEntry | $rc | |
int | $field |
Definition at line 301 of file ChangesList.php.
References $wgUser, Revision::DELETED_RESTRICTED, and wfDebug().
Referenced by insertDiffHist(), EnhancedChangesList::recentChangesBlockGroup(), and EnhancedChangesList::recentChangesLine().
ChangesList::$skin |