ChangesList Class Reference

Class to show various lists of changes: More...

Inherited by EnhancedChangesList, and OldChangesList.

List of all members.

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.


Detailed Description

Class to show various lists of changes:

Definition at line 25 of file ChangesList.php.


Constructor & Destructor Documentation

ChangesList::__construct ( &$  skin  ) 

Changeslist contructor.

Parameters:
Skin $skin

Definition at line 33 of file ChangesList.php.

References $skin, and preCacheMessages().


Member Function Documentation

ChangesList::beginRecentChangesList (  ) 

Returns text for the start of the tabular part of RC.

Returns:
string

Reimplemented in EnhancedChangesList.

Definition at line 93 of file ChangesList.php.

ChangesList::endRecentChangesList (  ) 

Returns text for the end of RC.

Returns:
string

Reimplemented in EnhancedChangesList.

Definition at line 130 of file ChangesList.php.

ChangesList::insertAction ( &$  s,
&$  rc 
) [protected]

ChangesList::insertArticleLink ( &$  s,
&$  rc,
unpatrolled,
watched 
) [protected]

ChangesList::insertComment ( &$  s,
&$  rc 
) [protected]

ChangesList::insertDateHeader ( &$  s,
rc_timestamp 
) [protected]

Definition at line 150 of file ChangesList.php.

References $s, and $wgLang.

Referenced by OldChangesList::recentChangesLine().

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]

Definition at line 352 of file ChangesList.php.

Referenced by OldChangesList::recentChangesLine().

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]

ChangesList::insertTags ( &$  s,
&$  rc,
&$  classes 
) [protected]

ChangesList::insertTimestamp ( &$  s,
rc 
) [protected]

Definition at line 219 of file ChangesList.php.

References $s, and $wgLang.

Referenced by OldChangesList::recentChangesLine().

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.

Parameters:
RCCacheEntry $rc
int $field one of DELETED_* bitfield constants
Returns:
bool

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.

Parameters:
$user User to fetch the list class for
Returns:
ChangesList derivative

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.

Parameters:
bool $new
bool $minor
bool $patrolled
string $nothing, string to use for empty space
bool $bot
Returns:
string

Definition at line 79 of file ChangesList.php.

References $bot, and $minor.

Referenced by EnhancedChangesList::recentChangesBlockGroup(), EnhancedChangesList::recentChangesBlockLine(), and OldChangesList::recentChangesLine().

static ChangesList::showCharacterDifference ( old,
new 
) [static]

Show formatted char difference.

Parameters:
int $old bytes
int $new bytes
Returns:
string

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.

Returns:
bool

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.

Parameters:
RCCacheEntry $rc
int $field
Returns:
bool

Definition at line 301 of file ChangesList.php.

References $wgUser, Revision::DELETED_RESTRICTED, and wfDebug().

Referenced by insertDiffHist(), EnhancedChangesList::recentChangesBlockGroup(), and EnhancedChangesList::recentChangesLine().


Member Data Documentation

ChangesList::$skin

Definition at line 27 of file ChangesList.php.

Referenced by __construct().


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

Generated on Sat Sep 5 02:08:34 2009 for MediaWiki by  doxygen 1.5.9