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


Public Member Functions | |
| 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 () | |
| Whether the parameters for this log are stored in new or old format. More... | |
Public Member Functions inherited from LogEntryBase | |
| getFullType () | |
| The full logtype in format maintype/subtype. More... | |
| isDeleted ( $field) | |
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... | |
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... | |
| User | $performer |
| stdClass | $row |
| Database result row. More... | |
|
protected |
Definition at line 182 of file LogEntry.php.
References $row.
| DatabaseLogEntry::getComment | ( | ) |
Get the user provided comment.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 269 of file LogEntry.php.
| DatabaseLogEntry::getDeleted | ( | ) |
Get the access restriction.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 273 of file LogEntry.php.
| DatabaseLogEntry::getId | ( | ) |
Returns the unique database id.
Reimplemented in RCDatabaseLogEntry.
Definition at line 190 of file LogEntry.php.
| DatabaseLogEntry::getParameters | ( | ) |
Get the extra parameters stored for this message.
Implements LogEntry.
Definition at line 221 of file LogEntry.php.
References $blob, $params, array(), getRawParameters(), wfRestoreWarnings(), and wfSuppressWarnings().
Referenced by isLegacy().
| DatabaseLogEntry::getPerformer | ( | ) |
Get the user for performed this action.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 239 of file LogEntry.php.
References $performer, if, User\newFromId(), User\newFromName(), and User\newFromRow().
|
protected |
Returns whatever is stored in the database field.
Reimplemented in RCDatabaseLogEntry.
Definition at line 198 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 133 of file LogEntry.php.
References $tables, and array().
Referenced by LogPager\getQueryInfo().
| DatabaseLogEntry::getSubtype | ( | ) |
The log subtype.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 217 of file LogEntry.php.
| DatabaseLogEntry::getTarget | ( | ) |
Get the target page of this action.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 257 of file LogEntry.php.
References $title, and Title\makeTitle().
| DatabaseLogEntry::getTimestamp | ( | ) |
Get the timestamp when the action was executed.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 265 of file LogEntry.php.
References TS_MW, and wfTimestamp().
| DatabaseLogEntry::getType | ( | ) |
The main log type.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 213 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 204 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 163 of file LogEntry.php.
Referenced by ApiQueryWatchlist\extractRowInfo(), ApiQueryLogEvents\extractRowInfo(), ApiQueryRecentChanges\extractRowInfo(), RevDel_LogItem\getApiData(), LogEventsList\logLine(), and LogFormatter\newFromRow().
|
protected |
Whether the parameters for this log entry are stored in new or old format.
Definition at line 180 of file LogEntry.php.
Referenced by isLegacy().
|
protected |
Definition at line 176 of file LogEntry.php.
Referenced by getPerformer(), and RCDatabaseLogEntry\getPerformer().
|
protected |
Database result row.
Definition at line 174 of file LogEntry.php.
Referenced by __construct(), and newFromRow().