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

Static Public Member Functions

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

Detailed Description

Extends the LogEntryInterface with some basic functionality.

Since
1.19

Definition at line 113 of file LogEntry.php.

Member Function Documentation

static LogEntryBase::extractParams (   $blob)
static

Extract a parameter array from a blob.

Since
1.26
Parameters
string$blob
Returns
array

Definition at line 151 of file LogEntry.php.

References $blob, and unserialize().

Referenced by DatabaseLogEntry\getParameters().

LogEntryBase::getFullType ( )

The full logtype in format maintype/subtype.

Returns
string

Implements LogEntry.

Definition at line 115 of file LogEntry.php.

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

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

Implements LogEntry.

Definition at line 119 of file LogEntry.php.

References LogEntry\getDeleted().

LogEntryBase::isLegacy ( )

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

Returns
bool

Definition at line 129 of file LogEntry.php.

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

static LogEntryBase::makeParamBlob (   $params)
static

Create a blob from a parameter array.

Since
1.26
Parameters
array$params
Returns
string

Definition at line 140 of file LogEntry.php.

References $params, array(), and serialize().

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


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