|
MediaWiki
master
|
This class wraps around database result row. More...


Public Member Functions | |
| getAssociatedRevId () | |
| getComment () | |
| Get the user provided comment. More... | |
| getDeleted () | |
| Get the access restriction. More... | |
| getId () | |
| Returns the unique database id. More... | |
| getParameters () | |
| Get the extra parameters stored for this message. More... | |
| getPerformer () | |
| Get the user for performed this action. More... | |
| getSubtype () | |
| The log subtype. More... | |
| getTarget () | |
| Get the target page of this action. More... | |
| getTimestamp () | |
| Get the timestamp when the action was executed. More... | |
| getType () | |
| The main log type. More... | |
| isLegacy () | |
Public Member Functions inherited from LogEntryBase | |
| getFullType () | |
| The full logtype in format maintype/subtype. More... | |
| isDeleted ($field) | |
| isLegacy () | |
| Whether the parameters for this log are stored in new or old format. More... | |
Static Public Member Functions | |
| static | getSelectQueryData () |
| Returns array of information that is needed for querying log entries. More... | |
| static | newFromRow ($row) |
| Constructs new LogEntry from database result row. More... | |
Static Public Member Functions inherited from LogEntryBase | |
| static | extractParams ($blob) |
| Extract a parameter array from a blob. More... | |
| static | makeParamBlob ($params) |
| Create a blob from a parameter array. More... | |
Protected Member Functions | |
| __construct ($row) | |
| getRawParameters () | |
| Returns whatever is stored in the database field. More... | |
Protected Attributes | |
| bool | $legacy |
| Whether the parameters for this log entry are stored in new or old format. More... | |
| array | $params |
| Parameters for log entry. More... | |
| User | $performer |
| int | $revId = null |
| A rev id associated to the log entry. More... | |
| stdClass | $row |
| Database result row. More... | |
|
protected |
Definition at line 225 of file LogEntry.php.
References $row.
| DatabaseLogEntry::getAssociatedRevId | ( | ) |
Definition at line 284 of file LogEntry.php.
References $revId, and getParameters().
| DatabaseLogEntry::getComment | ( | ) |
Get the user provided comment.
Implements LogEntry.
Definition at line 322 of file LogEntry.php.
| DatabaseLogEntry::getDeleted | ( | ) |
Get the access restriction.
Implements LogEntry.
Definition at line 326 of file LogEntry.php.
| DatabaseLogEntry::getId | ( | ) |
| DatabaseLogEntry::getParameters | ( | ) |
Get the extra parameters stored for this message.
Implements LogEntry.
Definition at line 261 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.
Definition at line 290 of file LogEntry.php.
References $performer, if, User\newFromId(), User\newFromName(), and User\newFromRow().
|
protected |
Returns whatever is stored in the database field.
Definition at line 243 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 170 of file LogEntry.php.
References $tables.
Referenced by ChangeTagsLogList\doQuery(), LogPager\getQueryInfo(), MediaWiki\Auth\AuthManagerTest\testAccountCreationLogging(), and MediaWiki\Auth\AuthManagerTest\testAutoAccountCreation().
| DatabaseLogEntry::getSubtype | ( | ) |
| DatabaseLogEntry::getTarget | ( | ) |
Get the target page of this action.
Implements LogEntry.
Definition at line 310 of file LogEntry.php.
References $page, $title, and Title\makeTitle().
| DatabaseLogEntry::getTimestamp | ( | ) |
Get the timestamp when the action was executed.
Implements LogEntry.
Definition at line 318 of file LogEntry.php.
References TS_MW, and wfTimestamp().
| DatabaseLogEntry::getType | ( | ) |
| DatabaseLogEntry::isLegacy | ( | ) |
Definition at line 247 of file LogEntry.php.
References $legacy, and getParameters().
|
static |
Constructs new LogEntry from database result row.
Supports rows from both logging and recentchanges table.
| stdClass | array | $row |
Definition at line 201 of file LogEntry.php.
Referenced by ApiQueryLogEvents\extractRowInfo(), RevDelLogItem\getApiData(), LogEventsList\logLine(), MediaWiki\Auth\AuthManagerTest\testAccountCreationLogging(), and MediaWiki\Auth\AuthManagerTest\testAutoAccountCreation().
|
protected |
Whether the parameters for this log entry are stored in new or old format.
Definition at line 223 of file LogEntry.php.
Referenced by isLegacy().
|
protected |
Parameters for log entry.
Definition at line 217 of file LogEntry.php.
Referenced by getParameters().
|
protected |
Definition at line 214 of file LogEntry.php.
Referenced by getPerformer(), and RCDatabaseLogEntry\getPerformer().
|
protected |
A rev id associated to the log entry.
Definition at line 220 of file LogEntry.php.
Referenced by getAssociatedRevId().
|
protected |
Database result row.
Definition at line 211 of file LogEntry.php.
Referenced by __construct(), and newFromRow().