|
MediaWiki master
|
A value class to process existing log entries. More...
Inherits MediaWiki\Logging\LogEntryBase.
Inherited by MediaWiki\Logging\RCDatabaseLogEntry.

Public Member Functions | ||||
| getAssociatedRevId () | ||||
| getComment () | ||||
Get the user provided comment.
| ||||
| getDeleted () | ||||
Get the access restriction.
| ||||
| getId () | ||||
| Returns the unique database id. | ||||
| getParameters () | ||||
Get the extra parameters stored for this message.This will be in the same format as setParameters(), ie. the array keys might include message formatting prefixes.
| ||||
| 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.
| ||||
| isLegacy () | ||||
| Whether the parameters for this log are stored in new or old format. | ||||
Public Member Functions inherited from MediaWiki\Logging\LogEntryBase | ||||
| 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 Public Member Functions inherited from MediaWiki\Logging\LogEntryBase | |
| static | extractParams ( $blob) |
| Extract a parameter array from a blob. | |
| static | makeParamBlob ( $params) |
| Create a blob from a parameter array. | |
Protected Member Functions | |
| __construct ( $row) | |
| getRawParameters () | |
| Returns whatever is stored in the database field (typically a serialized associative array but very old entries might have different formats). | |
Protected Attributes | |
| 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 value class to process existing log entries.
In other words, this class caches a log entry from the database and provides an immutable object-oriented representation of it.
This class should only be used in context of the LogFormatter class.
Definition at line 30 of file DatabaseLogEntry.php.
|
protected |
| stdClass | $row |
Definition at line 135 of file DatabaseLogEntry.php.
| MediaWiki\Logging\DatabaseLogEntry::getAssociatedRevId | ( | ) |
Reimplemented in MediaWiki\Logging\RCDatabaseLogEntry.
Definition at line 199 of file DatabaseLogEntry.php.
| MediaWiki\Logging\DatabaseLogEntry::getComment | ( | ) |
Get the user provided comment.
Implements MediaWiki\Logging\LogEntry.
Reimplemented in MediaWiki\Logging\RCDatabaseLogEntry.
Definition at line 241 of file DatabaseLogEntry.php.
| MediaWiki\Logging\DatabaseLogEntry::getDeleted | ( | ) |
Get the access restriction.
Implements MediaWiki\Logging\LogEntry.
Reimplemented in MediaWiki\Logging\RCDatabaseLogEntry.
Definition at line 247 of file DatabaseLogEntry.php.
| MediaWiki\Logging\DatabaseLogEntry::getId | ( | ) |
Returns the unique database id.
Reimplemented in MediaWiki\Logging\RCDatabaseLogEntry.
Definition at line 144 of file DatabaseLogEntry.php.
| MediaWiki\Logging\DatabaseLogEntry::getParameters | ( | ) |
Get the extra parameters stored for this message.This will be in the same format as setParameters(), ie. the array keys might include message formatting prefixes.
Implements MediaWiki\Logging\LogEntry.
Definition at line 176 of file DatabaseLogEntry.php.
| MediaWiki\Logging\DatabaseLogEntry::getPerformerIdentity | ( | ) |
Implements MediaWiki\Logging\LogEntry.
Reimplemented in MediaWiki\Logging\RCDatabaseLogEntry.
Definition at line 206 of file DatabaseLogEntry.php.
|
protected |
Returns whatever is stored in the database field (typically a serialized associative array but very old entries might have different formats).
Reimplemented in MediaWiki\Logging\RCDatabaseLogEntry.
Definition at line 154 of file DatabaseLogEntry.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 in MediaWiki\Logging\RCDatabaseLogEntry.
Definition at line 45 of file DatabaseLogEntry.php.
References MediaWiki\MediaWikiServices\getInstance().
| MediaWiki\Logging\DatabaseLogEntry::getSubtype | ( | ) |
The log subtype.
Implements MediaWiki\Logging\LogEntry.
Reimplemented in MediaWiki\Logging\RCDatabaseLogEntry.
Definition at line 171 of file DatabaseLogEntry.php.
| MediaWiki\Logging\DatabaseLogEntry::getTarget | ( | ) |
Get the target page of this action.
Implements MediaWiki\Logging\LogEntry.
Reimplemented in MediaWiki\Logging\RCDatabaseLogEntry.
Definition at line 229 of file DatabaseLogEntry.php.
| MediaWiki\Logging\DatabaseLogEntry::getTimestamp | ( | ) |
Get the timestamp when the action was executed.
Implements MediaWiki\Logging\LogEntry.
Reimplemented in MediaWiki\Logging\RCDatabaseLogEntry.
Definition at line 236 of file DatabaseLogEntry.php.
References wfTimestamp().
| MediaWiki\Logging\DatabaseLogEntry::getType | ( | ) |
The main log type.
Implements MediaWiki\Logging\LogEntry.
Reimplemented in MediaWiki\Logging\RCDatabaseLogEntry.
Definition at line 166 of file DatabaseLogEntry.php.
| MediaWiki\Logging\DatabaseLogEntry::isLegacy | ( | ) |
Whether the parameters for this log are stored in new or old format.
Reimplemented from MediaWiki\Logging\LogEntryBase.
Definition at line 159 of file DatabaseLogEntry.php.
|
static |
Loads a LogEntry with the given id from database.
| int | $id | |
| IReadableDatabase | $db |
Reimplemented in MediaWiki\Logging\RCDatabaseLogEntry.
Definition at line 107 of file DatabaseLogEntry.php.
|
static |
Constructs new LogEntry from database result row.
Supports rows from both logging and recentchanges table.
| stdClass | array | $row |
Definition at line 91 of file DatabaseLogEntry.php.
Referenced by MediaWiki\Logging\LogEventsList\logLine(), and MediaWiki\Logging\LogFormatter\newFromRow().
|
static |
Definition at line 80 of file DatabaseLogEntry.php.
Referenced by MediaWiki\Logging\Pager\LogPager\getQueryInfo().
|
protected |
Whether the parameters for this log entry are stored in new or old format.
Definition at line 130 of file DatabaseLogEntry.php.
|
protected |
Parameters for log entry.
Definition at line 124 of file DatabaseLogEntry.php.
|
protected |
Definition at line 121 of file DatabaseLogEntry.php.
|
protected |
A rev id associated to the log entry.
Definition at line 127 of file DatabaseLogEntry.php.
|
protected |
Database result row.
Definition at line 118 of file DatabaseLogEntry.php.