MediaWiki  REL1_19
HistoryBlobStub Class Reference

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

List of all members.

Public Member Functions

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

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.

Detailed Description

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

Definition at line 170 of file HistoryBlob.php.


Constructor & Destructor Documentation

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

Definition at line 185 of file HistoryBlob.php.


Member Function Documentation

Get the content hash.

Returns:
string

Definition at line 266 of file HistoryBlob.php.

Gets the location of the referring object.

Definition at line 207 of file HistoryBlob.php.

Returns:
string

Definition at line 214 of file HistoryBlob.php.

References $dbr, $fname, $url, wfGetDB(), and wfProfileOut().

Here is the call graph for this function:

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

Definition at line 193 of file HistoryBlob.php.

Referenced by CompressOld\compressWithConcat().

Here is the caller graph for this function:

Sets the location (old_id) of the referring object.

Definition at line 200 of file HistoryBlob.php.


Member Data Documentation

HistoryBlobStub::$blobCache = array() [static, protected]

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 177 of file HistoryBlob.php.

HistoryBlobStub::$mHash

Definition at line 179 of file HistoryBlob.php.

HistoryBlobStub::$mOldId

Definition at line 179 of file HistoryBlob.php.

HistoryBlobStub::$mRef

Definition at line 179 of file HistoryBlob.php.


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