MediaWiki master
|
A subclass of DatabaseLogEntry for objects constructed from entries in the recentchanges table (rather than the logging table). More...
Inherits MediaWiki\Logging\DatabaseLogEntry.
Public Member Functions | |
getAssociatedRevId () | |
getComment () | |
Get the user provided comment. | |
getDeleted () | |
Get the access restriction. | |
getId () | |
Returns the unique database id. | |
getPerformerIdentity () | |
getSubtype () | |
The log subtype. | |
getTarget () | |
Get the target page of this action. | |
getTimestamp () | |
Get the timestamp when the action was executed. | |
getType () | |
The main log type. | |
![]() | |
getParameters () | |
Get the extra parameters stored for this message. | |
isLegacy () | |
Whether the parameters for this log are stored in new or old format. | |
![]() | |
getFullType () | |
The full logtype in format maintype/subtype. | |
isDeleted ( $field) | |
Static Public Member Functions | |
static | getSelectQueryData () |
Returns array of information that is needed for querying log entries. | |
static | newFromId ( $id, IReadableDatabase $db) |
Loads a LogEntry with the given id from database. | |
![]() | |
static | newFromRow ( $row) |
Constructs new LogEntry from database result row. | |
static | newSelectQueryBuilder (IReadableDatabase $db) |
![]() | |
static | extractParams ( $blob) |
Extract a parameter array from a blob. | |
static | makeParamBlob ( $params) |
Create a blob from a parameter array. | |
Protected Member Functions | |
getRawParameters () | |
Returns whatever is stored in the database field (typically a serialized associative array but very old entries might have different formats). | |
![]() | |
__construct ( $row) | |
Additional Inherited Members | |
![]() | |
bool | $legacy |
Whether the parameters for this log entry are stored in new or old format. | |
array null | $params |
Parameters for log entry. | |
UserIdentity | $performer |
int | $revId = null |
A rev id associated to the log entry. | |
stdClass | $row |
Database result row. | |
A subclass of DatabaseLogEntry for objects constructed from entries in the recentchanges table (rather than the logging table).
This class should only be used in context of the LogFormatter class.
Definition at line 42 of file RCDatabaseLogEntry.php.
MediaWiki\Logging\RCDatabaseLogEntry::getAssociatedRevId | ( | ) |
Reimplemented from MediaWiki\Logging\DatabaseLogEntry.
Definition at line 64 of file RCDatabaseLogEntry.php.
MediaWiki\Logging\RCDatabaseLogEntry::getComment | ( | ) |
Get the user provided comment.
Reimplemented from MediaWiki\Logging\DatabaseLogEntry.
Definition at line 126 of file RCDatabaseLogEntry.php.
References MediaWiki\MediaWikiServices\getInstance().
MediaWiki\Logging\RCDatabaseLogEntry::getDeleted | ( | ) |
Get the access restriction.
Reimplemented from MediaWiki\Logging\DatabaseLogEntry.
Definition at line 138 of file RCDatabaseLogEntry.php.
MediaWiki\Logging\RCDatabaseLogEntry::getId | ( | ) |
Returns the unique database id.
Reimplemented from MediaWiki\Logging\DatabaseLogEntry.
Definition at line 56 of file RCDatabaseLogEntry.php.
Referenced by MediaWiki\Logging\RCDatabaseLogEntry\getPerformerIdentity().
MediaWiki\Logging\RCDatabaseLogEntry::getPerformerIdentity | ( | ) |
Reimplemented from MediaWiki\Logging\DatabaseLogEntry.
Definition at line 76 of file RCDatabaseLogEntry.php.
References MediaWiki\Logging\RCDatabaseLogEntry\getId(), and MediaWiki\MediaWikiServices\getInstance().
|
protected |
Returns whatever is stored in the database field (typically a serialized associative array but very old entries might have different formats).
Reimplemented from MediaWiki\Logging\DatabaseLogEntry.
Definition at line 60 of file RCDatabaseLogEntry.php.
|
static |
Returns array of information that is needed for querying log entries.
Array contains the following keys: tables, fields, conds, options and join_conds
Since 1.34, log_user and log_user_text have not been present in the database, but they continue to be available in query results as aliases.
Reimplemented from MediaWiki\Logging\DatabaseLogEntry.
Definition at line 50 of file RCDatabaseLogEntry.php.
MediaWiki\Logging\RCDatabaseLogEntry::getSubtype | ( | ) |
The log subtype.
Reimplemented from MediaWiki\Logging\DatabaseLogEntry.
Definition at line 72 of file RCDatabaseLogEntry.php.
MediaWiki\Logging\RCDatabaseLogEntry::getTarget | ( | ) |
Get the target page of this action.
Reimplemented from MediaWiki\Logging\DatabaseLogEntry.
Definition at line 116 of file RCDatabaseLogEntry.php.
MediaWiki\Logging\RCDatabaseLogEntry::getTimestamp | ( | ) |
Get the timestamp when the action was executed.
Reimplemented from MediaWiki\Logging\DatabaseLogEntry.
Definition at line 122 of file RCDatabaseLogEntry.php.
References wfTimestamp().
MediaWiki\Logging\RCDatabaseLogEntry::getType | ( | ) |
The main log type.
Reimplemented from MediaWiki\Logging\DatabaseLogEntry.
Definition at line 68 of file RCDatabaseLogEntry.php.
|
static |
Loads a LogEntry with the given id from database.
int | $id | |
IReadableDatabase | $db |
Reimplemented from MediaWiki\Logging\DatabaseLogEntry.
Definition at line 44 of file RCDatabaseLogEntry.php.