MediaWiki master
HistoryBlobUtils Class Reference

Static Public Member Functions

static getAllowedClasses ()
 Get the classes which are allowed to be contained in a text or ES row.
 
static unserialize (string $str, bool $allowDouble=false)
 Unserialize a HistoryBlob.
 
static unserializeArray (string $str)
 Unserialize array data with no classes.
 

Detailed Description

Definition at line 5 of file HistoryBlobUtils.php.

Member Function Documentation

◆ getAllowedClasses()

static HistoryBlobUtils::getAllowedClasses ( )
static

Get the classes which are allowed to be contained in a text or ES row.

Returns
string[]

Definition at line 12 of file HistoryBlobUtils.php.

◆ unserialize()

static HistoryBlobUtils::unserialize ( string $str,
bool $allowDouble = false )
static

Unserialize a HistoryBlob.

Parameters
string$str
bool$allowDoubleAllow double serialization
Returns
HistoryBlob|HistoryBlobStub|HistoryBlobCurStub|null

Definition at line 28 of file HistoryBlobUtils.php.

References unserialize().

Referenced by MediaWiki\Storage\SqlBlobStore\decompressData(), unserialize(), and unserializeArray().

◆ unserializeArray()

static HistoryBlobUtils::unserializeArray ( string $str)
static

Unserialize array data with no classes.

Parameters
string$str
Returns
array

Definition at line 48 of file HistoryBlobUtils.php.

References unserialize().


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