MediaWiki REL1_40
|
Inherits RecentChange.
Static Public Member Functions | |
static | newFromParent ( $rc) |
Static Public Member Functions inherited from RecentChange | |
static | getChangeTypes () |
Get an array of all change types. | |
static | getEngine ( $uri, $params=[]) |
static | getQueryInfo () |
Return the tables, fields, and join conditions to be selected to create a new recentchanges object. | |
static | isEnotifEnabled (Config $conf) |
Whether e-mail notifications are generally enabled on this wiki. | |
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 | newForCategorization ( $timestamp, PageIdentity $categoryTitle, ?UserIdentity $user, $comment, PageIdentity $pageTitle, $oldRevId, $newRevId, $lastTimestamp, $bot, $ip='', $deleted=0, $added=null) |
Constructs a RecentChange object for the given categorization This does not call save() on the object and thus does not write to the db. | |
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 | notifyLog ( $timestamp, $logPage, $user, $actionComment, $ip, $type, $action, $target, $logComment, $params, $newId=0, $actionCommentIRC='') |
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 RecentChange | |
int | $counter = -1 |
Line number of recent change. | |
array | $mAttribs = [] |
$mExtra = [] | |
$notificationtimestamp | |
$numberofWatchingusers = 0 | |
string null | $watchlistExpiry |
The expiry time, if this is a temporary watchlist item. | |
const | PRC_AUTOPATROLLED = 2 |
const | PRC_PATROLLED = 1 |
const | PRC_UNPATROLLED = 0 |
const | SRC_CATEGORIZE = 'mw.categorize' |
const | SRC_EDIT = 'mw.edit' |
const | SRC_EXTERNAL = 'mw.external' |
const | SRC_LOG = 'mw.log' |
const | SRC_NEW = 'mw.new' |
Additional Inherited Members | |
Public Member Functions inherited from RecentChange | |
__construct () | |
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. | |
doMarkPatrolled (Authority $performer, $auto=null, $tags=null) | |
Mark this RecentChange as patrolled. | |
getAttribute ( $name) | |
Get an attribute value. | |
getAttributes () | |
getCharacterDifference ( $old=0, $new=0) | |
Returns the change size (HTML). | |
getPage () | |
getParam ( $name) | |
Get a parameter value. | |
getPerformer () | |
Get the User object of the person who performed this change. | |
getPerformerIdentity () | |
Get the UserIdentity of the client that performed this change. | |
getTitle () | |
loadFromRow ( $row) | |
Initialises the members of this object from a mysql row object. | |
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) | |
setEditResult (?EditResult $editResult) | |
Sets the EditResult associated with the edit. | |
setExtra ( $extra) | |
Definition at line 21 of file RCCacheEntry.php.
|
static |
RecentChange | $rc |
Definition at line 47 of file RCCacheEntry.php.
Referenced by RCCacheEntryFactory\newFromRecentChange().
string null RCCacheEntry::$curlink |
Definition at line 23 of file RCCacheEntry.php.
string null RCCacheEntry::$difflink |
Definition at line 25 of file RCCacheEntry.php.
string null RCCacheEntry::$lastlink |
Definition at line 27 of file RCCacheEntry.php.
string null RCCacheEntry::$link |
Definition at line 29 of file RCCacheEntry.php.
string null RCCacheEntry::$timestamp |
Definition at line 31 of file RCCacheEntry.php.
bool null RCCacheEntry::$unpatrolled |
Definition at line 33 of file RCCacheEntry.php.
string null RCCacheEntry::$userlink |
Definition at line 35 of file RCCacheEntry.php.
string null RCCacheEntry::$usertalklink |
Definition at line 37 of file RCCacheEntry.php.
bool null RCCacheEntry::$watched |
Definition at line 39 of file RCCacheEntry.php.
string null RCCacheEntry::$watchlistExpiry |
Definition at line 41 of file RCCacheEntry.php.