MediaWiki
REL1_22
|
This class wraps around database result row. More...
Public Member Functions | |
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. | |
Static Public Member Functions | |
static | getSelectQueryData () |
Returns array of information that is needed for querying log entries. | |
static | newFromRow ($row) |
Constructs new LogEntry from database result row. | |
Protected Member Functions | |
__construct ($row) | |
getRawParameters () | |
Returns whatever is stored in the database field. | |
Protected Attributes | |
$performer | |
$row | |
Database result row. |
This class wraps around database result row.
Definition at line 127 of file LogEntry.php.
DatabaseLogEntry::__construct | ( | $ | row | ) | [protected] |
Definition at line 180 of file LogEntry.php.
References $row.
Get the user provided comment.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 263 of file LogEntry.php.
Get the access restriction.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 267 of file LogEntry.php.
Returns the unique database id.
Reimplemented in RCDatabaseLogEntry.
Definition at line 188 of file LogEntry.php.
Get the extra parameters stored for this message.
Implements LogEntry.
Definition at line 218 of file LogEntry.php.
References $blob, $params, array(), getRawParameters(), params, wfRestoreWarnings(), and wfSuppressWarnings().
Referenced by isLegacy().
Get the user for performed this action.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 235 of file LogEntry.php.
References if, User\newFromId(), User\newFromName(), and newFromRow().
DatabaseLogEntry::getRawParameters | ( | ) | [protected] |
Returns whatever is stored in the database field.
Reimplemented in RCDatabaseLogEntry.
Definition at line 196 of file LogEntry.php.
Referenced by getParameters().
static DatabaseLogEntry::getSelectQueryData | ( | ) | [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 136 of file LogEntry.php.
References array().
Referenced by LogPager\getQueryInfo().
The log subtype.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 214 of file LogEntry.php.
Get the target page of this action.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 252 of file LogEntry.php.
References $title, and Title\makeTitle().
Get the timestamp when the action was executed.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 259 of file LogEntry.php.
References wfTimestamp().
The main log type.
Implements LogEntry.
Reimplemented in RCDatabaseLogEntry.
Definition at line 210 of file LogEntry.php.
Whether the parameters for this log are stored in new or old format.
Reimplemented from LogEntryBase.
Definition at line 202 of file LogEntry.php.
References getParameters().
static DatabaseLogEntry::newFromRow | ( | $ | row | ) | [static] |
Constructs new LogEntry from database result row.
Supports rows from both logging and recentchanges table.
$row |
Definition at line 166 of file LogEntry.php.
References $row.
Referenced by ApiQueryWatchlist\extractRowInfo(), ApiQueryLogEvents\extractRowInfo(), ApiQueryRecentChanges\extractRowInfo(), getPerformer(), and LogFormatter\newFromRow().
DatabaseLogEntry::$performer [protected] |
Definition at line 178 of file LogEntry.php.
DatabaseLogEntry::$row [protected] |
Database result row.
Definition at line 177 of file LogEntry.php.
Referenced by __construct(), and newFromRow().