MediaWiki REL1_40
|
A value class to process existing log entries. More...
Inherits LogEntryBase.
Inherited by 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. | |
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 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, IDatabase $db) |
Loads a LogEntry with the given id from database. | |
static | newFromRow ( $row) |
Constructs new LogEntry from database result row. | |
Static Public Member Functions inherited from 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. | |
Protected Attributes | |
bool | $legacy |
Whether the parameters for this log entry are stored in new or old format. | |
array | $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 41 of file DatabaseLogEntry.php.
|
protected |
Definition at line 146 of file DatabaseLogEntry.php.
DatabaseLogEntry::getAssociatedRevId | ( | ) |
Reimplemented in RCDatabaseLogEntry.
Definition at line 205 of file DatabaseLogEntry.php.
References getParameters().
DatabaseLogEntry::getComment | ( | ) |
Get the user provided comment.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 243 of file DatabaseLogEntry.php.
DatabaseLogEntry::getDeleted | ( | ) |
Get the access restriction.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 248 of file DatabaseLogEntry.php.
DatabaseLogEntry::getId | ( | ) |
Returns the unique database id.
Reimplemented in RCDatabaseLogEntry.
Definition at line 155 of file DatabaseLogEntry.php.
Referenced by getPerformerIdentity().
DatabaseLogEntry::getParameters | ( | ) |
Get the extra parameters stored for this message.
Implements LogEntry.
Definition at line 182 of file DatabaseLogEntry.php.
References $blob, LogEntryBase\extractParams(), and getRawParameters().
Referenced by getAssociatedRevId(), and isLegacy().
DatabaseLogEntry::getPerformerIdentity | ( | ) |
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 211 of file DatabaseLogEntry.php.
References getId().
|
protected |
Returns whatever is stored in the database field.
Reimplemented in RCDatabaseLogEntry.
Definition at line 164 of file DatabaseLogEntry.php.
Referenced by getParameters().
|
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 RCDatabaseLogEntry.
Definition at line 54 of file DatabaseLogEntry.php.
DatabaseLogEntry::getSubtype | ( | ) |
The log subtype.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 178 of file DatabaseLogEntry.php.
DatabaseLogEntry::getTarget | ( | ) |
Get the target page of this action.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 233 of file DatabaseLogEntry.php.
DatabaseLogEntry::getTimestamp | ( | ) |
Get the timestamp when the action was executed.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 239 of file DatabaseLogEntry.php.
References wfTimestamp().
DatabaseLogEntry::getType | ( | ) |
The main log type.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 174 of file DatabaseLogEntry.php.
DatabaseLogEntry::isLegacy | ( | ) |
Whether the parameters for this log are stored in new or old format.
Reimplemented from LogEntryBase.
Definition at line 168 of file DatabaseLogEntry.php.
References getParameters().
|
static |
Loads a LogEntry with the given id from database.
int | $id | |
IDatabase | $db |
Reimplemented in RCDatabaseLogEntry.
Definition at line 114 of file DatabaseLogEntry.php.
References $row, and Wikimedia\Rdbms\IReadableDatabase\selectRow().
|
static |
Constructs new LogEntry from database result row.
Supports rows from both logging and recentchanges table.
stdClass | array | $row |
Definition at line 98 of file DatabaseLogEntry.php.
References $row.
|
protected |
Whether the parameters for this log entry are stored in new or old format.
Definition at line 144 of file DatabaseLogEntry.php.
|
protected |
Parameters for log entry.
Definition at line 138 of file DatabaseLogEntry.php.
|
protected |
Definition at line 135 of file DatabaseLogEntry.php.
|
protected |
A rev id associated to the log entry.
Definition at line 141 of file DatabaseLogEntry.php.
|
protected |
Database result row.
Definition at line 132 of file DatabaseLogEntry.php.
Referenced by newFromId(), and newFromRow().