|
MediaWiki
master
|
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 | |
| string | $mHash |
| int | $mOldId |
| string | $mRef |
Static Protected Attributes | |
| static array | $blobCache = [] |
| One-step cache variable to hold base blobs; operations that pull multiple revisions may often pull multiple times from the same blob. More... | |
Pointer object for an item within a CGZ blob stored in the text table.
Definition at line 190 of file HistoryBlob.php.
| HistoryBlobStub::__construct | ( | $hash = '', |
|
$oldid = 0 |
|||
| ) |
| string | $hash | The content hash of the text |
| int | $oldid | The old_id for the CGZ object |
Definition at line 212 of file HistoryBlob.php.
| HistoryBlobStub::getHash | ( | ) |
Get the content hash.
Definition at line 301 of file HistoryBlob.php.
References $mHash.
| HistoryBlobStub::getReferrer | ( | ) |
Gets the location of the referring object.
Definition at line 237 of file HistoryBlob.php.
References $mRef.
| HistoryBlobStub::getText | ( | ) |
Definition at line 244 of file HistoryBlob.php.
References $dbr, $flags, $mOldId, DB_SLAVE, ExternalStore\fetchFromURL(), unserialize(), and wfGetDB().
| HistoryBlobStub::setLocation | ( | $id | ) |
Sets the location (old_id) of the main object to which this object points.
| int | $id |
Definition at line 221 of file HistoryBlob.php.
Referenced by CompressOld\compressWithConcat().
| HistoryBlobStub::setReferrer | ( | $id | ) |
Sets the location (old_id) of the referring object.
| string | $id |
Definition at line 229 of file HistoryBlob.php.
|
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 197 of file HistoryBlob.php.
| string HistoryBlobStub::$mHash |
Definition at line 203 of file HistoryBlob.php.
Referenced by getHash().
| int HistoryBlobStub::$mOldId |
Definition at line 200 of file HistoryBlob.php.
Referenced by getText().
| string HistoryBlobStub::$mRef |
Definition at line 206 of file HistoryBlob.php.
Referenced by getReferrer().