Inherits HistoryBlob.
Public Member Functions | |
ConcatenatedGzipHistoryBlob () | |
Constructor. | |
addItem ($text) | |
Adds an item of text, returns a stub object which points to the item. | |
getItem ($hash) | |
Get item by key, or false if the key is not present. | |
setText ($text) | |
Set the "default text" This concept is an odd property of the current DB schema, whereby each text item has a revision associated with it. | |
getText () | |
Get default text. | |
removeItem ($hash) | |
Remove an item. | |
compress () | |
Compress the bulk data in the object. | |
uncompress () | |
Uncompress bulk data. | |
__sleep () | |
__wakeup () | |
isHappy () | |
Helper function for compression jobs Returns true until the object is "full" and ready to be committed. | |
Public Attributes | |
$mVersion = 0 | |
$mCompressed = false | |
$mItems = array() | |
$mDefaultHash = '' | |
$mSize = 0 | |
$mMaxSize = 10000000 | |
$mMaxCount = 100 |
Definition at line 43 of file HistoryBlob.php.
ConcatenatedGzipHistoryBlob::__sleep | ( | ) |
ConcatenatedGzipHistoryBlob::__wakeup | ( | ) |
ConcatenatedGzipHistoryBlob::addItem | ( | $ | text | ) |
Adds an item of text, returns a stub object which points to the item.
You must call setLocation() on the stub object before storing it to the database Returns the key for getItem()
Implements HistoryBlob.
Definition at line 57 of file HistoryBlob.php.
References $text, and uncompress().
Referenced by setText().
ConcatenatedGzipHistoryBlob::compress | ( | ) |
Compress the bulk data in the object.
Definition at line 97 of file HistoryBlob.php.
Referenced by __sleep().
ConcatenatedGzipHistoryBlob::ConcatenatedGzipHistoryBlob | ( | ) |
ConcatenatedGzipHistoryBlob::getItem | ( | $ | key | ) |
Get item by key, or false if the key is not present.
Implements HistoryBlob.
Definition at line 67 of file HistoryBlob.php.
References uncompress().
Referenced by getText().
ConcatenatedGzipHistoryBlob::getText | ( | ) |
Get default text.
This is called from Revision::getRevisionText()
Implements HistoryBlob.
Definition at line 81 of file HistoryBlob.php.
References getItem(), and uncompress().
ConcatenatedGzipHistoryBlob::isHappy | ( | ) |
Helper function for compression jobs Returns true until the object is "full" and ready to be committed.
Definition at line 128 of file HistoryBlob.php.
ConcatenatedGzipHistoryBlob::removeItem | ( | $ | hash | ) |
ConcatenatedGzipHistoryBlob::setText | ( | $ | text | ) |
Set the "default text" This concept is an odd property of the current DB schema, whereby each text item has a revision associated with it.
The default text is the text of the associated revision. There may, however, be other revisions in the same object.
Default text is not required for two-part external storage URLs.
Implements HistoryBlob.
Definition at line 76 of file HistoryBlob.php.
References $text, addItem(), and uncompress().
ConcatenatedGzipHistoryBlob::uncompress | ( | ) |
Uncompress bulk data.
Definition at line 107 of file HistoryBlob.php.
Referenced by __wakeup(), addItem(), getItem(), getText(), and setText().
ConcatenatedGzipHistoryBlob::$mCompressed = false |
Definition at line 45 of file HistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mDefaultHash = '' |
Definition at line 45 of file HistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mItems = array() |
Definition at line 45 of file HistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mMaxCount = 100 |
Definition at line 48 of file HistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mMaxSize = 10000000 |
Definition at line 47 of file HistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mSize = 0 |
Definition at line 46 of file HistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mVersion = 0 |
Definition at line 45 of file HistoryBlob.php.