MediaWiki  master
RCCacheEntryFactory Class Reference
Collaboration diagram for RCCacheEntryFactory:

Public Member Functions

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

Private Member Functions

 buildCLink (RCCacheEntry $cacheEntry)
 
 buildCurLink (RecentChange $cacheEntry, $showDiffLinks)
 
 buildCurQueryParams (RecentChange $recentChange)
 
 buildDiffLink (RecentChange $cacheEntry, $showDiffLinks)
 
 buildDiffQueryParams (RecentChange $recentChange)
 
 buildLastLink (RecentChange $cacheEntry, $showDiffLinks)
 Builds the link to the previous version. More...
 
 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 25 of file RCCacheEntryFactory.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 43 of file RCCacheEntryFactory.php.

References $context, $linkRenderer, and $messages.

Member Function Documentation

◆ buildCLink()

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

Definition at line 115 of file RCCacheEntryFactory.php.

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

Referenced by newFromRecentChange().

◆ buildCurLink()

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

Definition at line 187 of file RCCacheEntryFactory.php.

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

Referenced by newFromRecentChange().

◆ buildCurQueryParams()

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

Definition at line 173 of file RCCacheEntryFactory.php.

Referenced by buildCurLink().

◆ buildDiffLink()

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

Definition at line 221 of file RCCacheEntryFactory.php.

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

Referenced by newFromRecentChange().

◆ buildDiffQueryParams()

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

Definition at line 207 of file RCCacheEntryFactory.php.

Referenced by buildDiffLink(), and buildLastLink().

◆ buildLastLink()

RCCacheEntryFactory::buildLastLink ( RecentChange  $cacheEntry,
  $showDiffLinks 
)
private

Builds the link to the previous version.

Parameters
RecentChange$cacheEntry
bool$showDiffLinks
Returns
string

Definition at line 255 of file RCCacheEntryFactory.php.

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

Referenced by newFromRecentChange().

◆ buildTimestamp()

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

Definition at line 161 of file RCCacheEntryFactory.php.

Referenced by newFromRecentChange().

◆ getLogLink()

RCCacheEntryFactory::getLogLink (   $logType)
private

Definition at line 143 of file RCCacheEntryFactory.php.

References SpecialPage\getTitleFor().

Referenced by buildCLink().

◆ getMessage()

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

Definition at line 301 of file RCCacheEntryFactory.php.

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

◆ getUserLink()

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

Definition at line 281 of file RCCacheEntryFactory.php.

References ExternalUserNames\getLocal(), ChangesList\isDeleted(), and Linker\userLink().

Referenced by newFromRecentChange().

◆ newFromRecentChange()

RCCacheEntryFactory::newFromRecentChange ( RecentChange  $baseRC,
  $watched 
)

◆ showDiffLinks()

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

Definition at line 106 of file RCCacheEntryFactory.php.

References ChangesList\userCan().

Referenced by newFromRecentChange().

Member Data Documentation

◆ $context

RCCacheEntryFactory::$context
private

Definition at line 28 of file RCCacheEntryFactory.php.

Referenced by __construct().

◆ $linkRenderer

LinkRenderer RCCacheEntryFactory::$linkRenderer
private

Definition at line 36 of file RCCacheEntryFactory.php.

Referenced by __construct().

◆ $messages

RCCacheEntryFactory::$messages
private

Definition at line 31 of file RCCacheEntryFactory.php.

Referenced by __construct().


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