|
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. | |
| getLocation () | |
| Gets the location of the main object. | |
| 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. | |
Protected 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. | |
Pointer object for an item within a CGZ blob stored in the text table.
WARNING: Objects of this class are serialized and permanently stored in the DB. Do not change the name or visibility of any property!
Note: the property visibility was changed in 2020 from public to protected. This may cause problems in future.
Definition at line 20 of file HistoryBlobStub.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 42 of file HistoryBlobStub.php.
| HistoryBlobStub::getHash | ( | ) |
Get the content hash.
Definition at line 138 of file HistoryBlobStub.php.
References $mHash.
| HistoryBlobStub::getLocation | ( | ) |
Gets the location of the main object.
Definition at line 59 of file HistoryBlobStub.php.
References $mOldId.
| HistoryBlobStub::getReferrer | ( | ) |
Gets the location of the referring object.
Definition at line 75 of file HistoryBlobStub.php.
References $mRef.
| HistoryBlobStub::getText | ( | ) |
Definition at line 82 of file HistoryBlobStub.php.
| HistoryBlobStub::setLocation | ( | $id | ) |
Sets the location (old_id) of the main object to which this object points.
| int | $id |
Definition at line 51 of file HistoryBlobStub.php.
| HistoryBlobStub::setReferrer | ( | $id | ) |
Sets the location (old_id) of the referring object.
| string | $id |
Definition at line 67 of file HistoryBlobStub.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 27 of file HistoryBlobStub.php.
|
protected |
Definition at line 33 of file HistoryBlobStub.php.
Referenced by getHash().
|
protected |
Definition at line 30 of file HistoryBlobStub.php.
Referenced by getLocation(), and getText().
|
protected |
Definition at line 36 of file HistoryBlobStub.php.
Referenced by getReferrer().