MediaWiki  1.23.2
HistoryBlobStub Class Reference

Pointer object for an item within a CGZ blob stored in the text table. More...

Public Member Functions

 __construct ( $hash='', $oldid=0)
 
 getHash ()
 Get the content hash. More...
 
 getReferrer ()
 Gets the location of the referring object. More...
 
 getText ()
 
 setLocation ( $id)
 Sets the location (old_id) of the main object to which this object points. More...
 
 setReferrer ( $id)
 Sets the location (old_id) of the referring object. More...
 

Public Attributes

 $mHash
 
 $mOldId
 
 $mRef
 

Static Protected Attributes

static $blobCache = array()
 One-step cache variable to hold base blobs; operations that pull multiple revisions may often pull multiple times from the same blob. More...
 

Detailed Description

Pointer object for an item within a CGZ blob stored in the text table.

Definition at line 191 of file HistoryBlob.php.

Constructor & Destructor Documentation

◆ __construct()

HistoryBlobStub::__construct (   $hash = '',
  $oldid = 0 
)
Parameters
string$hashthe content hash of the text
$oldidInteger the old_id for the CGZ object

Definition at line 206 of file HistoryBlob.php.

References $hash.

Member Function Documentation

◆ getHash()

HistoryBlobStub::getHash ( )

Get the content hash.

Returns
string

Definition at line 284 of file HistoryBlob.php.

References $mHash.

◆ getReferrer()

HistoryBlobStub::getReferrer ( )

Gets the location of the referring object.

Definition at line 228 of file HistoryBlob.php.

References $mRef.

◆ getText()

HistoryBlobStub::getText ( )
Returns
string

Definition at line 235 of file HistoryBlob.php.

References $dbr, $flags, $mOldId, array(), DB_SLAVE, and wfGetDB().

◆ setLocation()

HistoryBlobStub::setLocation (   $id)

Sets the location (old_id) of the main object to which this object points.

Definition at line 214 of file HistoryBlob.php.

Referenced by CompressOld\compressWithConcat().

◆ setReferrer()

HistoryBlobStub::setReferrer (   $id)

Sets the location (old_id) of the referring object.

Definition at line 221 of file HistoryBlob.php.

Member Data Documentation

◆ $blobCache

HistoryBlobStub::$blobCache = array()
staticprotected

One-step cache variable to hold base blobs; operations that pull multiple revisions may often pull multiple times from the same blob.

By keeping the last-used one open, we avoid redundant unserialization and decompression overhead.

Definition at line 198 of file HistoryBlob.php.

◆ $mHash

HistoryBlobStub::$mHash

Definition at line 200 of file HistoryBlob.php.

Referenced by getHash().

◆ $mOldId

HistoryBlobStub::$mOldId

Definition at line 200 of file HistoryBlob.php.

Referenced by getText().

◆ $mRef

HistoryBlobStub::$mRef

Definition at line 200 of file HistoryBlob.php.

Referenced by getReferrer().


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