MediaWiki REL1_40
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.
 

Public Attributes

const NO_CLASSES = [ 'allowed_classes' => false ]
 

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 13 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 29 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 49 of file HistoryBlobUtils.php.

References unserialize().

Member Data Documentation

◆ NO_CLASSES

const HistoryBlobUtils::NO_CLASSES = [ 'allowed_classes' => false ]

Definition at line 6 of file HistoryBlobUtils.php.


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