MediaWiki REL1_30
LogEntryBase Class Reference

Extends the LogEntryInterface with some basic functionality. More...

Inheritance diagram for LogEntryBase:
Collaboration diagram for LogEntryBase:

Public Member Functions

 getFullType ()
 The full logtype in format maintype/subtype.
 
 isDeleted ( $field)
 
 isLegacy ()
 Whether the parameters for this log are stored in new or old format.
 
- Public Member Functions inherited from LogEntry
 getComment ()
 Get the user provided comment.
 
 getDeleted ()
 Get the access restriction.
 
 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.
 

Static Public Member Functions

static extractParams ( $blob)
 Extract a parameter array from a blob.
 
static makeParamBlob ( $params)
 Create a blob from a parameter array.
 

Detailed Description

Extends the LogEntryInterface with some basic functionality.

Since
1.19

Definition at line 115 of file LogEntry.php.

Member Function Documentation

◆ extractParams()

static LogEntryBase::extractParams ( $blob)
static

Extract a parameter array from a blob.

Since
1.26
Parameters
string$blob
Returns
array

Definition at line 153 of file LogEntry.php.

References $blob, and unserialize().

Referenced by DatabaseLogEntry\getParameters().

◆ getFullType()

LogEntryBase::getFullType ( )

The full logtype in format maintype/subtype.

Returns
string

Implements LogEntry.

Definition at line 117 of file LogEntry.php.

References LogEntry\getSubtype(), and LogEntry\getType().

Referenced by LogFormatter\newFromEntry().

◆ isDeleted()

LogEntryBase::isDeleted ( $field)
Parameters
int$fieldOne of LogPage::DELETED_* bitfield constants
Returns
bool

Implements LogEntry.

Definition at line 121 of file LogEntry.php.

References LogEntry\getDeleted().

◆ isLegacy()

LogEntryBase::isLegacy ( )

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

Returns
bool

Reimplemented in DatabaseLogEntry, and ManualLogEntry.

Definition at line 131 of file LogEntry.php.

Referenced by LogFormatter\extractParameters(), and LogFormatter\getIRCActionText().

◆ makeParamBlob()

static LogEntryBase::makeParamBlob ( $params)
static

Create a blob from a parameter array.

Since
1.26
Parameters
array$params
Returns
string

Definition at line 142 of file LogEntry.php.

References $params, and serialize().

Referenced by LogFormatterTestCase\expandDatabaseRow(), ManualLogEntry\getRecentChange(), ManualLogEntry\insert(), LocalFile\recordUpload2(), and RCFeedIntegrationTest\testNotify().


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