MediaWiki REL1_35
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.
 
 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 116 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 188 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 174 of file RCCacheEntryFactory.php.

Referenced by buildCurLink().

◆ buildDiffLink()

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

Definition at line 222 of file RCCacheEntryFactory.php.

References buildDiffQueryParams(), RecentChange\getAttribute(), getMessage(), RecentChange\getTitle(), 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 208 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 256 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 162 of file RCCacheEntryFactory.php.

Referenced by newFromRecentChange().

◆ getLogLink()

RCCacheEntryFactory::getLogLink (   $logType)
private

Definition at line 144 of file RCCacheEntryFactory.php.

References SpecialPage\getTitleFor().

Referenced by buildCLink().

◆ getMessage()

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

Definition at line 302 of file RCCacheEntryFactory.php.

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

◆ getUserLink()

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

Definition at line 282 of file RCCacheEntryFactory.php.

References 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 107 of file RCCacheEntryFactory.php.

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: