MediaWiki  1.23.2
RCCacheEntryFactory Class Reference
Collaboration diagram for RCCacheEntryFactory:

Public Member Functions

 __construct (IContextSource $context, $messages)
 
 newFromRecentChange (RecentChange $baseRC, $watched)
 

Private Member Functions

 buildCLink (RecentChange $cacheEntry)
 
 buildCurLink (RecentChange $cacheEntry, $showDiffLinks, $counter)
 
 buildCurQueryParams (RecentChange $recentChange)
 
 buildDiffLink (RecentChange $cacheEntry, $showDiffLinks, $counter)
 
 buildDiffQueryParams (RecentChange $recentChange)
 
 buildLastLink (RecentChange $cacheEntry, $showDiffLinks)
 
 buildTimestamp (RecentChange $cacheEntry)
 
 getLogLink ( $logType)
 
 getMessage ( $key)
 
 getUserLink (RecentChange $cacheEntry)
 
 showDiffLinks (RecentChange $cacheEntry, User $user)
 

Private Attributes

IContextSource $context
 
string[] $messages
 

Detailed Description

Definition at line 23 of file RCCacheEntryFactory.php.

Constructor & Destructor Documentation

◆ __construct()

RCCacheEntryFactory::__construct ( IContextSource  $context,
  $messages 
)
Parameters
IContextSource$context
string[]$messages

Definition at line 33 of file RCCacheEntryFactory.php.

References $context, $messages, and messages.

Member Function Documentation

◆ buildCLink()

RCCacheEntryFactory::buildCLink ( RecentChange  $cacheEntry)
private

◆ buildCurLink()

RCCacheEntryFactory::buildCurLink ( RecentChange  $cacheEntry,
  $showDiffLinks,
  $counter 
)
private
Parameters
RecentChange$cacheEntry
boolean$showDiffLinks
int$counter
Returns
string

Definition at line 169 of file RCCacheEntryFactory.php.

References array(), buildCurQueryParams(), getMessage(), RecentChange\getTitle(), RC_LOG, RC_MOVE, and RC_MOVE_OVER_REDIRECT.

Referenced by newFromRecentChange().

◆ buildCurQueryParams()

RCCacheEntryFactory::buildCurQueryParams ( RecentChange  $recentChange)
private
Parameters
RecentChange$recentChange
Returns
array

Definition at line 154 of file RCCacheEntryFactory.php.

References array().

Referenced by buildCurLink().

◆ buildDiffLink()

RCCacheEntryFactory::buildDiffLink ( RecentChange  $cacheEntry,
  $showDiffLinks,
  $counter 
)
private
Parameters
RecentChange$cacheEntry
boolean$showDiffLinks
int$counter
Returns
string

Definition at line 204 of file RCCacheEntryFactory.php.

References array(), buildDiffQueryParams(), getMessage(), RecentChange\getTitle(), RC_LOG, RC_MOVE, RC_MOVE_OVER_REDIRECT, and RC_NEW.

Referenced by newFromRecentChange().

◆ buildDiffQueryParams()

RCCacheEntryFactory::buildDiffQueryParams ( RecentChange  $recentChange)
private
Parameters
RecentChange$recentChange
Returns
array

Definition at line 189 of file RCCacheEntryFactory.php.

References array().

Referenced by buildDiffLink(), and buildLastLink().

◆ buildLastLink()

RCCacheEntryFactory::buildLastLink ( RecentChange  $cacheEntry,
  $showDiffLinks 
)
private
Parameters
RecentChange$cacheEntry
boolean$showDiffLinks
Returns
string

Definition at line 227 of file RCCacheEntryFactory.php.

References $type, array(), buildDiffQueryParams(), getMessage(), RecentChange\getTitle(), Linker\linkKnown(), RC_LOG, RC_MOVE, and RC_MOVE_OVER_REDIRECT.

Referenced by newFromRecentChange().

◆ buildTimestamp()

RCCacheEntryFactory::buildTimestamp ( RecentChange  $cacheEntry)
private
Parameters
RecentChange$cacheEntry
Returns
string

Definition at line 142 of file RCCacheEntryFactory.php.

Referenced by newFromRecentChange().

◆ getLogLink()

RCCacheEntryFactory::getLogLink (   $logType)
private

Definition at line 126 of file RCCacheEntryFactory.php.

References SpecialPage\getTitleFor(), and Linker\linkKnown().

Referenced by buildCLink().

◆ getMessage()

RCCacheEntryFactory::getMessage (   $key)
private
Parameters
string$key
Returns
string

Definition at line 272 of file RCCacheEntryFactory.php.

References messages.

Referenced by buildCurLink(), buildDiffLink(), and buildLastLink().

◆ getUserLink()

RCCacheEntryFactory::getUserLink ( RecentChange  $cacheEntry)
private
Parameters
RecentChange$cacheEntry
Returns
string

Definition at line 253 of file RCCacheEntryFactory.php.

References Revision\DELETED_USER, ChangesList\isDeleted(), and Linker\userLink().

Referenced by newFromRecentChange().

◆ newFromRecentChange()

◆ showDiffLinks()

RCCacheEntryFactory::showDiffLinks ( RecentChange  $cacheEntry,
User  $user 
)
private
Parameters
RecentChange$cacheEntry
User$user
Returns
boolean

Definition at line 86 of file RCCacheEntryFactory.php.

References $user, Revision\DELETED_TEXT, and ChangesList\userCan().

Referenced by newFromRecentChange().

Member Data Documentation

◆ $context

IContextSource RCCacheEntryFactory::$context
private

Definition at line 25 of file RCCacheEntryFactory.php.

Referenced by __construct().

◆ $messages

string [] RCCacheEntryFactory::$messages
private

Definition at line 27 of file RCCacheEntryFactory.php.

Referenced by __construct().


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