MediaWiki master
MediaWiki\Logging\LogEntryBase Class Reference

Extends the LogEntry Interface with some basic functionality. More...

Inherits MediaWiki\Logging\LogEntry.

Inherited by MediaWiki\Logging\DatabaseLogEntry, and MediaWiki\Logging\ManualLogEntry.

Collaboration diagram for MediaWiki\Logging\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 MediaWiki\Logging\LogEntry
 getComment ()
 Get the user provided comment.
 
 getDeleted ()
 Get the access restriction.
 
 getParameters ()
 Get the extra parameters stored for this message.
 
 getPerformerIdentity ()
 
 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 LogEntry Interface with some basic functionality.

Since
1.19

Definition at line 33 of file LogEntryBase.php.

Member Function Documentation

◆ extractParams()

static MediaWiki\Logging\LogEntryBase::extractParams ( $blob)
static

Extract a parameter array from a blob.

Since
1.26
Parameters
string$blob
Returns
array|false

Definition at line 71 of file LogEntryBase.php.

Referenced by MediaWiki\Logging\DatabaseLogEntry\getParameters().

◆ getFullType()

MediaWiki\Logging\LogEntryBase::getFullType ( )

The full logtype in format maintype/subtype.

Returns
string

Implements MediaWiki\Logging\LogEntry.

Definition at line 35 of file LogEntryBase.php.

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

◆ isDeleted()

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

Implements MediaWiki\Logging\LogEntry.

Definition at line 39 of file LogEntryBase.php.

References MediaWiki\Logging\LogEntry\getDeleted().

◆ isLegacy()

MediaWiki\Logging\LogEntryBase::isLegacy ( )

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

Returns
bool

Reimplemented in MediaWiki\Logging\DatabaseLogEntry, and MediaWiki\Logging\ManualLogEntry.

Definition at line 49 of file LogEntryBase.php.

◆ makeParamBlob()

static MediaWiki\Logging\LogEntryBase::makeParamBlob ( $params)
static

Create a blob from a parameter array.

Since
1.26
Parameters
array$params
Returns
string

Definition at line 60 of file LogEntryBase.php.

Referenced by MediaWiki\Logging\ManualLogEntry\getRecentChange(), and MediaWiki\Logging\ManualLogEntry\insert().


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