MediaWiki REL1_32
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)
 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 24 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 42 of file RCCacheEntryFactory.php.

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

Member Function Documentation

◆ buildCLink()

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().

◆ buildCurLink()

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().

◆ buildCurQueryParams()

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

Definition at line 165 of file RCCacheEntryFactory.php.

Referenced by buildCurLink().

◆ buildDiffLink()

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(), 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 200 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 249 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 153 of file RCCacheEntryFactory.php.

Referenced by newFromRecentChange().

◆ getLogLink()

RCCacheEntryFactory::getLogLink (   $logType)
private

Definition at line 135 of file RCCacheEntryFactory.php.

Referenced by buildCLink().

◆ getMessage()

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

Definition at line 295 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 275 of file RCCacheEntryFactory.php.

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

Referenced by newFromRecentChange().

◆ newFromRecentChange()

◆ showDiffLinks()

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

Definition at line 98 of file RCCacheEntryFactory.php.

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

Referenced by newFromRecentChange().

Member Data Documentation

◆ $context

RCCacheEntryFactory::$context
private

Definition at line 27 of file RCCacheEntryFactory.php.

Referenced by __construct().

◆ $linkRenderer

LinkRenderer RCCacheEntryFactory::$linkRenderer
private

Definition at line 35 of file RCCacheEntryFactory.php.

Referenced by __construct().

◆ $messages

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: