MediaWiki master
MediaWiki\RecentChanges\RCCacheEntry Class Reference

Inherits MediaWiki\RecentChanges\RecentChange.

Collaboration diagram for MediaWiki\RecentChanges\RCCacheEntry:

Static Public Member Functions

static newFromParent ( $rc)
 
- Static Public Member Functions inherited from MediaWiki\RecentChanges\RecentChange
static getChangeTypes ()
 Get an array of all change types.
 
static getQueryInfo (int $joinFlags=0)
 Return the tables, fields, and join conditions to be selected to create a new recentchanges object.
 
static isInRCLifespan ( $timestamp, $tolerance=0)
 Check whether the given timestamp is new enough to have a RC row with a given tolerance as the recentchanges table might not be cleared out regularly (so older entries might exist) or rows which will be deleted soon shouldn't be included.
 
static newFromConds ( $conds, $fname=__METHOD__, $dbType=DB_REPLICA)
 Find the first recent change matching some specific conditions.
 
static newFromId ( $rcid)
 Obtain the recent change with a given rc_id value.
 
static newFromRow ( $row)
 
static newLogEntry ( $timestamp, $logPage, $user, $actionComment, $ip, $type, $action, $target, $logComment, $params, $newId=0, $actionCommentIRC='', $revId=0, $isPatrollable=false, $forceBotFlag=null)
 
static notifyEdit ( $timestamp, $page, $minor, $user, $comment, $oldId, $lastTimestamp, $bot, $ip='', $oldSize=0, $newSize=0, $newId=0, $patrol=0, $tags=[], ?EditResult $editResult=null)
 Makes an entry in the database corresponding to an edit.
 
static notifyNew ( $timestamp, $page, $minor, $user, $comment, $bot, $ip='', $size=0, $newId=0, $patrol=0, $tags=[])
 Makes an entry in the database corresponding to page creation.
 
static parseFromRCType ( $rcType)
 Parsing RC_* constants to human-readable test.
 
static parseToRCType ( $type)
 Parsing text to RC_* constants.
 

Public Attributes

string null $curlink
 
string null $difflink
 
string null $lastlink
 
string null $link
 
string null $timestamp
 
bool null $unpatrolled
 
string null $userlink
 
string null $usertalklink
 
bool null $watched
 
string null $watchlistExpiry
 
- Public Attributes inherited from MediaWiki\RecentChanges\RecentChange
int $counter = -1
 Line number of recent change.
 
array $mAttribs = []
 
array $mExtra = []
 
bool $notificationtimestamp
 
int $numberofWatchingusers = 0
 
string null $watchlistExpiry
 The expiry time, if this is a temporary watchlist item.
 
const PRC_AUTOPATROLLED = PatrolManager::PRC_AUTOPATROLLED
 
const PRC_PATROLLED = PatrolManager::PRC_PATROLLED
 
const PRC_UNPATROLLED = PatrolManager::PRC_UNPATROLLED
 
const SEND_FEED = RecentChangeStore::SEND_FEED
 
const SEND_NONE = RecentChangeStore::SEND_NONE
 
const SRC_CATEGORIZE = 'mw.categorize'
 
const SRC_EDIT = 'mw.edit'
 
const SRC_LOG = 'mw.log'
 
const SRC_NEW = 'mw.new'
 
const STRAIGHT_JOIN_ACTOR = 1
 Flag for RecentChange::getQueryInfo()
 

Additional Inherited Members

- Public Member Functions inherited from MediaWiki\RecentChanges\RecentChange
 __construct (?PageReference $page=null, ?UserIdentity $performer=null)
 
 addTags ( $tags)
 Tags to append to the recent change, and associated revision/log.
 
 diffLinkTrail ( $forceCur)
 Gets the end part of the diff URL associated with this object Blank if no diff link should be displayed.
 
 getAttribute ( $name)
 Get an attribute value.
 
 getAttributes ()
 
 getCharacterDifference ( $old=0, $new=0)
 Returns the change size (HTML).
 
 getEditResult ()
 
 getExtra ( $name)
 
 getExtras ()
 
 getHighlights ()
 
 getPage ()
 
 getParam ( $name)
 Get a parameter value.
 
 getPerformerIdentity ()
 Get the UserIdentity of the client that performed this change.
 
 getTags ()
 
 getTitle ()
 
 isHighlighted (string $key)
 
 isInternal ()
 Check if the change is internal (edit, new, log, categorize).
 
 loadFromRow ( $row)
 Initialises the members of this object from a mysql row object.
 
 markPatrolled (Authority $performer, $tags=null)
 Mark this RecentChange as patrolled.
 
 notifyRCFeeds (?array $feeds=null)
 Notify all the feeds about the change.
 
 parseParams ()
 Parses and returns the rc_params attribute.
 
 reallyMarkPatrolled ()
 Mark this RecentChange patrolled, without error checking.
 
 save ( $send=self::SEND_FEED)
 Writes the data in this object to the database.
 
 setAttribs ( $attribs)
 
 setAttribute ( $name, $value)
 
 setEditResult (?EditResult $editResult)
 Sets the EditResult associated with the edit.
 
 setExtra ( $extra)
 
 setHighlights (array $highlights)
 

Detailed Description

Definition at line 12 of file RCCacheEntry.php.

Member Function Documentation

◆ newFromParent()

static MediaWiki\RecentChanges\RCCacheEntry::newFromParent ( $rc)
static
Parameters
RecentChange$rc
Returns
RCCacheEntry

Definition at line 38 of file RCCacheEntry.php.

References MediaWiki\RecentChanges\RecentChange\setHighlights().

Referenced by MediaWiki\RecentChanges\RCCacheEntryFactory\newFromRecentChange().

Member Data Documentation

◆ $curlink

string null MediaWiki\RecentChanges\RCCacheEntry::$curlink

Definition at line 14 of file RCCacheEntry.php.

◆ $difflink

string null MediaWiki\RecentChanges\RCCacheEntry::$difflink

Definition at line 16 of file RCCacheEntry.php.

◆ $lastlink

string null MediaWiki\RecentChanges\RCCacheEntry::$lastlink

Definition at line 18 of file RCCacheEntry.php.

◆ $link

string null MediaWiki\RecentChanges\RCCacheEntry::$link

Definition at line 20 of file RCCacheEntry.php.

◆ $timestamp

string null MediaWiki\RecentChanges\RCCacheEntry::$timestamp

Definition at line 22 of file RCCacheEntry.php.

◆ $unpatrolled

bool null MediaWiki\RecentChanges\RCCacheEntry::$unpatrolled

Definition at line 24 of file RCCacheEntry.php.

◆ $userlink

string null MediaWiki\RecentChanges\RCCacheEntry::$userlink

Definition at line 26 of file RCCacheEntry.php.

◆ $usertalklink

string null MediaWiki\RecentChanges\RCCacheEntry::$usertalklink

Definition at line 28 of file RCCacheEntry.php.

◆ $watched

bool null MediaWiki\RecentChanges\RCCacheEntry::$watched

Definition at line 30 of file RCCacheEntry.php.

◆ $watchlistExpiry

string null MediaWiki\RecentChanges\RCCacheEntry::$watchlistExpiry

Definition at line 32 of file RCCacheEntry.php.


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