MediaWiki  1.28.0
RCCacheEntryFactory Class Reference
Collaboration diagram for RCCacheEntryFactory:

Public Member Functions

 __construct (IContextSource $context, $messages, LinkRenderer $linkRenderer)
 
 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

 $context
 
LinkRenderer $linkRenderer
 
 $messages
 

Detailed Description

Definition at line 24 of file RCCacheEntryFactory.php.

Constructor & Destructor Documentation

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

Definition at line 42 of file RCCacheEntryFactory.php.

References $context, $linkRenderer, $messages, and messages.

Member Function Documentation

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

Definition at line 107 of file RCCacheEntryFactory.php.

References $type, getLogLink(), RecentChange\getTitle(), NS_SPECIAL, RC_LOG, RC_NEW, and wfDebugLog().

Referenced by newFromRecentChange().

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

Definition at line 180 of file RCCacheEntryFactory.php.

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

Referenced by newFromRecentChange().

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

Definition at line 165 of file RCCacheEntryFactory.php.

Referenced by buildCurLink().

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

Definition at line 215 of file RCCacheEntryFactory.php.

References buildDiffQueryParams(), RecentChange\getAttribute(), getMessage(), RecentChange\getTitle(), Title\newFromID(), RC_CATEGORIZE, RC_LOG, RC_NEW, and wfDebugLog().

Referenced by newFromRecentChange().

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

Definition at line 200 of file RCCacheEntryFactory.php.

Referenced by buildDiffLink(), and buildLastLink().

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

Definition at line 247 of file RCCacheEntryFactory.php.

References $type, buildDiffQueryParams(), getMessage(), RecentChange\getTitle(), and RC_LOG.

Referenced by newFromRecentChange().

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

Definition at line 153 of file RCCacheEntryFactory.php.

Referenced by newFromRecentChange().

RCCacheEntryFactory::getLogLink (   $logType)
private

Definition at line 135 of file RCCacheEntryFactory.php.

References SpecialPage\getTitleFor().

Referenced by buildCLink().

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

Definition at line 292 of file RCCacheEntryFactory.php.

References messages.

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

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

Definition at line 273 of file RCCacheEntryFactory.php.

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

Referenced by newFromRecentChange().

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

Definition at line 98 of file RCCacheEntryFactory.php.

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

Referenced by newFromRecentChange().

Member Data Documentation

RCCacheEntryFactory::$context
private

Definition at line 27 of file RCCacheEntryFactory.php.

Referenced by __construct().

LinkRenderer RCCacheEntryFactory::$linkRenderer
private

Definition at line 35 of file RCCacheEntryFactory.php.

Referenced by __construct().

RCCacheEntryFactory::$messages
private

Definition at line 30 of file RCCacheEntryFactory.php.

Referenced by __construct().


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