MediaWiki
1.33.0
|
Concatenated gzip (CGZ) storage Improves compression ratio by concatenating like objects before gzipping. More...
Public Member Functions | |
__construct () | |
__sleep () | |
__wakeup () | |
addItem ( $text) | |
compress () | |
Compress the bulk data in the object. More... | |
getItem ( $hash) | |
getText () | |
isHappy () | |
Helper function for compression jobs Returns true until the object is "full" and ready to be committed. More... | |
removeItem ( $hash) | |
Remove an item. More... | |
setText ( $text) | |
uncompress () | |
Uncompress bulk data. More... | |
Public Attributes | |
$mCompressed = false | |
$mDefaultHash = '' | |
$mItems = [] | |
$mMaxCount = 100 | |
$mMaxSize = 10000000 | |
$mSize = 0 | |
$mVersion = 0 | |
Concatenated gzip (CGZ) storage Improves compression ratio by concatenating like objects before gzipping.
Definition at line 27 of file ConcatenatedGzipHistoryBlob.php.
ConcatenatedGzipHistoryBlob::__construct | ( | ) |
Definition at line 33 of file ConcatenatedGzipHistoryBlob.php.
ConcatenatedGzipHistoryBlob::__sleep | ( | ) |
ConcatenatedGzipHistoryBlob::__wakeup | ( | ) |
Definition at line 122 of file ConcatenatedGzipHistoryBlob.php.
References uncompress().
ConcatenatedGzipHistoryBlob::addItem | ( | $text | ) |
string | $text |
Implements HistoryBlob.
Definition at line 44 of file ConcatenatedGzipHistoryBlob.php.
References uncompress().
Referenced by setText().
ConcatenatedGzipHistoryBlob::compress | ( | ) |
Compress the bulk data in the object.
Definition at line 97 of file ConcatenatedGzipHistoryBlob.php.
References serialize().
Referenced by __sleep().
ConcatenatedGzipHistoryBlob::getItem | ( | $hash | ) |
string | $hash |
Implements HistoryBlob.
Definition at line 58 of file ConcatenatedGzipHistoryBlob.php.
References uncompress().
Referenced by getText().
ConcatenatedGzipHistoryBlob::getText | ( | ) |
Implements HistoryBlob.
Definition at line 79 of file ConcatenatedGzipHistoryBlob.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 132 of file ConcatenatedGzipHistoryBlob.php.
References $mMaxCount, and captcha-old\count.
ConcatenatedGzipHistoryBlob::removeItem | ( | $hash | ) |
Remove an item.
string | $hash |
Definition at line 89 of file ConcatenatedGzipHistoryBlob.php.
ConcatenatedGzipHistoryBlob::setText | ( | $text | ) |
string | $text |
Implements HistoryBlob.
Definition at line 71 of file ConcatenatedGzipHistoryBlob.php.
References addItem(), and uncompress().
ConcatenatedGzipHistoryBlob::uncompress | ( | ) |
Uncompress bulk data.
Definition at line 107 of file ConcatenatedGzipHistoryBlob.php.
References unserialize().
Referenced by __wakeup(), addItem(), getItem(), getText(), and setText().
ConcatenatedGzipHistoryBlob::$mCompressed = false |
Definition at line 28 of file ConcatenatedGzipHistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mDefaultHash = '' |
Definition at line 28 of file ConcatenatedGzipHistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mItems = [] |
Definition at line 28 of file ConcatenatedGzipHistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mMaxCount = 100 |
Definition at line 31 of file ConcatenatedGzipHistoryBlob.php.
Referenced by isHappy().
ConcatenatedGzipHistoryBlob::$mMaxSize = 10000000 |
Definition at line 30 of file ConcatenatedGzipHistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mSize = 0 |
Definition at line 29 of file ConcatenatedGzipHistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mVersion = 0 |
Definition at line 28 of file ConcatenatedGzipHistoryBlob.php.