MediaWiki  REL1_19
DatabaseLogEntry Class Reference

This class wraps around database result row. More...

Inheritance diagram for DatabaseLogEntry:
Collaboration diagram for DatabaseLogEntry:

List of all members.

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

 $row
 Database result row.

Detailed Description

This class wraps around database result row.

Since:
1.19

Definition at line 111 of file LogEntry.php.


Constructor & Destructor Documentation

DatabaseLogEntry::__construct ( row) [protected]

Definition at line 163 of file LogEntry.php.

References $row.


Member Function Documentation

Get the user provided comment.

Returns:
string

Implements LogEntry.

Reimplemented in RCDatabaseLogEntry.

Definition at line 243 of file LogEntry.php.

Get the access restriction.

Returns:
string

Implements LogEntry.

Reimplemented in RCDatabaseLogEntry.

Definition at line 247 of file LogEntry.php.

Returns the unique database id.

Returns:
int

Reimplemented in RCDatabaseLogEntry.

Definition at line 171 of file LogEntry.php.

Get the extra parameters stored for this message.

Returns:
array

Implements LogEntry.

Definition at line 201 of file LogEntry.php.

References $blob, getRawParameters(), wfRestoreWarnings(), and wfSuppressWarnings().

Referenced by isLegacy().

Here is the call graph for this function:

Here is the caller graph for this function:

Get the user for performed this action.

Returns:
User

Implements LogEntry.

Reimplemented in RCDatabaseLogEntry.

Definition at line 218 of file LogEntry.php.

References if, User\newFromId(), User\newFromName(), and newFromRow().

Here is the call graph for this function:

Returns whatever is stored in the database field.

Returns:
string

Reimplemented in RCDatabaseLogEntry.

Definition at line 179 of file LogEntry.php.

Referenced by getParameters().

Here is the caller graph for this function:

Returns array of information that is needed for querying log entries.

Array contains the following keys: tables, fields, conds, options and join_conds

Returns:
array

Definition at line 120 of file LogEntry.php.

Referenced by LogPager\getQueryInfo().

Here is the caller graph for this function:

The log subtype.

Returns:
string

Implements LogEntry.

Reimplemented in RCDatabaseLogEntry.

Definition at line 197 of file LogEntry.php.

Get the target page of this action.

Returns:
Title

Implements LogEntry.

Reimplemented in RCDatabaseLogEntry.

Definition at line 232 of file LogEntry.php.

References $page, $title, and Title\makeTitle().

Here is the call graph for this function:

Get the timestamp when the action was executed.

Returns:
string

Implements LogEntry.

Reimplemented in RCDatabaseLogEntry.

Definition at line 239 of file LogEntry.php.

References wfTimestamp().

Here is the call graph for this function:

The main log type.

Returns:
string

Implements LogEntry.

Reimplemented in RCDatabaseLogEntry.

Definition at line 193 of file LogEntry.php.

Whether the parameters for this log are stored in new or old format.

Reimplemented from LogEntryBase.

Definition at line 185 of file LogEntry.php.

References getParameters().

Here is the call graph for this function:

static DatabaseLogEntry::newFromRow ( row) [static]

Constructs new LogEntry from database result row.

Supports rows from both logging and recentchanges table.

Parameters:
$row
Returns:
DatabaseLogEntry

Definition at line 150 of file LogEntry.php.

References $row.

Referenced by ApiQueryLogEvents\extractRowInfo(), getPerformer(), LogEventsList\logLine(), and LogFormatter\newFromRow().

Here is the caller graph for this function:


Member Data Documentation

DatabaseLogEntry::$row [protected]

Database result row.

Definition at line 161 of file LogEntry.php.

Referenced by __construct(), and newFromRow().


The documentation for this class was generated from the following file: