MediaWiki
REL1_22
|
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. | |
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. |
Pointer object for an item within a CGZ blob stored in the text table.
Definition at line 189 of file HistoryBlob.php.
HistoryBlobStub::__construct | ( | $ | hash = '' , |
$ | oldid = 0 |
||
) |
string | $hash | the content hash of the text |
$oldid | Integer the old_id for the CGZ object |
Definition at line 204 of file HistoryBlob.php.
References $hash.
Gets the location of the referring object.
Definition at line 226 of file HistoryBlob.php.
HistoryBlobStub::setLocation | ( | $ | id | ) |
Sets the location (old_id) of the main object to which this object points.
Definition at line 212 of file HistoryBlob.php.
Referenced by CompressOld\compressWithConcat().
HistoryBlobStub::setReferrer | ( | $ | id | ) |
Sets the location (old_id) of the referring object.
Definition at line 219 of file HistoryBlob.php.
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 196 of file HistoryBlob.php.
HistoryBlobStub::$mHash |
Definition at line 198 of file HistoryBlob.php.
HistoryBlobStub::$mOldId |
Definition at line 198 of file HistoryBlob.php.
HistoryBlobStub::$mRef |
Definition at line 198 of file HistoryBlob.php.