MediaWiki REL1_31
|
This class wraps around database result row. More...
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. | |
getPerformer () | |
Get the user for performed this action. | |
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. | |
User | $performer |
int | $revId = null |
A rev id associated to the log entry. | |
stdClass | $row |
Database result row. | |
|
protected |
Definition at line 255 of file LogEntry.php.
References $row.
DatabaseLogEntry::getAssociatedRevId | ( | ) |
Reimplemented in RCDatabaseLogEntry.
Definition at line 314 of file LogEntry.php.
References $revId, and getParameters().
DatabaseLogEntry::getComment | ( | ) |
Get the user provided comment.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 355 of file LogEntry.php.
DatabaseLogEntry::getDeleted | ( | ) |
Get the access restriction.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 359 of file LogEntry.php.
DatabaseLogEntry::getId | ( | ) |
Returns the unique database id.
Reimplemented in RCDatabaseLogEntry.
Definition at line 264 of file LogEntry.php.
DatabaseLogEntry::getParameters | ( | ) |
Get the extra parameters stored for this message.
Implements LogEntry.
Definition at line 291 of file LogEntry.php.
References $blob, $params, LogEntryBase\extractParams(), LogPage\extractParams(), and getRawParameters().
Referenced by getAssociatedRevId(), and isLegacy().
DatabaseLogEntry::getPerformer | ( | ) |
Get the user for performed this action.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 320 of file LogEntry.php.
References $performer, User\newFromActorId(), User\newFromId(), User\newFromName(), and User\newFromRow().
|
protected |
Returns whatever is stored in the database field.
Reimplemented in RCDatabaseLogEntry.
Definition at line 273 of file LogEntry.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
Definition at line 172 of file LogEntry.php.
References $tables.
Referenced by ChangeTagsLogList\doQuery(), LogPager\getQueryInfo(), and newFromId().
DatabaseLogEntry::getSubtype | ( | ) |
The log subtype.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 287 of file LogEntry.php.
DatabaseLogEntry::getTarget | ( | ) |
Get the target page of this action.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 343 of file LogEntry.php.
References $title.
DatabaseLogEntry::getTimestamp | ( | ) |
Get the timestamp when the action was executed.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 351 of file LogEntry.php.
References wfTimestamp().
DatabaseLogEntry::getType | ( | ) |
The main log type.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 283 of file LogEntry.php.
DatabaseLogEntry::isLegacy | ( | ) |
Whether the parameters for this log are stored in new or old format.
Reimplemented from LogEntryBase.
Definition at line 277 of file LogEntry.php.
References $legacy, and getParameters().
|
static |
Loads a LogEntry with the given id from database.
int | $id | |
IDatabase | $db |
Definition at line 223 of file LogEntry.php.
References $row, getSelectQueryData(), newFromRow(), and Wikimedia\Rdbms\IDatabase\selectRow().
Referenced by DatabaseLogEntryTest\testNewFromId().
|
static |
Constructs new LogEntry from database result row.
Supports rows from both logging and recentchanges table.
stdClass | array | $row |
Definition at line 207 of file LogEntry.php.
Referenced by ApiQueryLogEvents\extractRowInfo(), RevDelLogItem\getApiData(), LogEventsList\logLine(), newFromId(), and LogFormatter\newFromRow().
|
protected |
Whether the parameters for this log entry are stored in new or old format.
Definition at line 253 of file LogEntry.php.
Referenced by isLegacy().
|
protected |
Parameters for log entry.
Definition at line 247 of file LogEntry.php.
Referenced by getParameters().
|
protected |
Definition at line 244 of file LogEntry.php.
Referenced by getPerformer(), and RCDatabaseLogEntry\getPerformer().
|
protected |
A rev id associated to the log entry.
Definition at line 250 of file LogEntry.php.
Referenced by getAssociatedRevId().
|
protected |
Database result row.
Definition at line 241 of file LogEntry.php.
Referenced by __construct(), newFromId(), and newFromRow().