MediaWiki  master
RCDatabaseLogEntry Class Reference

A subclass of DatabaseLogEntry for objects constructed from entries in the recentchanges table (rather than the logging table). More...

Inheritance diagram for RCDatabaseLogEntry:
Collaboration diagram for RCDatabaseLogEntry:

Public Member Functions

 getAssociatedRevId ()
 
 getComment ()
 Get the user provided comment. More...
 
 getDeleted ()
 Get the access restriction. More...
 
 getId ()
 Returns the unique database id. More...
 
 getPerformerIdentity ()
 
 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...
 
- Public Member Functions inherited from DatabaseLogEntry
 getParameters ()
 Get the extra parameters stored for this message. 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 newFromId ( $id, IDatabase $db)
 Loads a LogEntry with the given id from database. More...
 
- Static Public Member Functions inherited from DatabaseLogEntry
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

 getRawParameters ()
 Returns whatever is stored in the database field. More...
 
- Protected Member Functions inherited from DatabaseLogEntry
 __construct ( $row)
 

Additional Inherited Members

- Protected Attributes inherited from DatabaseLogEntry
bool $legacy
 Whether the parameters for this log entry are stored in new or old format. More...
 
array $params
 Parameters for log entry. More...
 
UserIdentity $performer
 
int $revId = null
 A rev id associated to the log entry. More...
 
stdClass $row
 Database result row. More...
 

Detailed Description

A subclass of DatabaseLogEntry for objects constructed from entries in the recentchanges table (rather than the logging table).

This class should only be used in context of the LogFormatter class.

Definition at line 37 of file RCDatabaseLogEntry.php.

Member Function Documentation

◆ getAssociatedRevId()

RCDatabaseLogEntry::getAssociatedRevId ( )

Reimplemented from DatabaseLogEntry.

Definition at line 59 of file RCDatabaseLogEntry.php.

◆ getComment()

RCDatabaseLogEntry::getComment ( )

Get the user provided comment.

Returns
string

Reimplemented from DatabaseLogEntry.

Definition at line 103 of file RCDatabaseLogEntry.php.

References DB_REPLICA, CommentStore\getStore(), and wfGetDB().

◆ getDeleted()

RCDatabaseLogEntry::getDeleted ( )

Get the access restriction.

Returns
int

Reimplemented from DatabaseLogEntry.

Definition at line 109 of file RCDatabaseLogEntry.php.

◆ getId()

RCDatabaseLogEntry::getId ( )

Returns the unique database id.

Returns
int

Reimplemented from DatabaseLogEntry.

Definition at line 51 of file RCDatabaseLogEntry.php.

Referenced by getPerformerIdentity().

◆ getPerformerIdentity()

RCDatabaseLogEntry::getPerformerIdentity ( )
Since
1.36
Returns
UserIdentity

Reimplemented from DatabaseLogEntry.

Definition at line 71 of file RCDatabaseLogEntry.php.

References DatabaseLogEntry\$performer, and getId().

◆ getRawParameters()

RCDatabaseLogEntry::getRawParameters ( )
protected

Returns whatever is stored in the database field.

Returns
string

Reimplemented from DatabaseLogEntry.

Definition at line 55 of file RCDatabaseLogEntry.php.

◆ getSelectQueryData()

static RCDatabaseLogEntry::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

Since 1.34, log_user and log_user_text have not been present in the database, but they continue to be available in query results as aliases.

Returns
array

Reimplemented from DatabaseLogEntry.

Definition at line 45 of file RCDatabaseLogEntry.php.

◆ getSubtype()

RCDatabaseLogEntry::getSubtype ( )

The log subtype.

Returns
string

Reimplemented from DatabaseLogEntry.

Definition at line 67 of file RCDatabaseLogEntry.php.

◆ getTarget()

RCDatabaseLogEntry::getTarget ( )

Get the target page of this action.

Returns
Title

Reimplemented from DatabaseLogEntry.

Definition at line 93 of file RCDatabaseLogEntry.php.

References Title\makeTitle().

◆ getTimestamp()

RCDatabaseLogEntry::getTimestamp ( )

Get the timestamp when the action was executed.

Returns
string

Reimplemented from DatabaseLogEntry.

Definition at line 99 of file RCDatabaseLogEntry.php.

References wfTimestamp().

◆ getType()

RCDatabaseLogEntry::getType ( )

The main log type.

Returns
string

Reimplemented from DatabaseLogEntry.

Definition at line 63 of file RCDatabaseLogEntry.php.

◆ newFromId()

static RCDatabaseLogEntry::newFromId (   $id,
IDatabase  $db 
)
static

Loads a LogEntry with the given id from database.

Parameters
int$id
IDatabase$db
Returns
DatabaseLogEntry|null

Reimplemented from DatabaseLogEntry.

Definition at line 39 of file RCDatabaseLogEntry.php.


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