MediaWiki  REL1_19
ConcatenatedGzipHistoryBlob Class Reference

Concatenated gzip (CGZ) storage Improves compression ratio by concatenating like objects before gzipping. More...

Inheritance diagram for ConcatenatedGzipHistoryBlob:
Collaboration diagram for ConcatenatedGzipHistoryBlob:

List of all members.

Public Member Functions

 __construct ()
 Constructor.
 __sleep ()
 __wakeup ()
 addItem ($text)
 compress ()
 Compress the bulk data in the object.
 getItem ($hash)
 getText ()
 isHappy ()
 Helper function for compression jobs Returns true until the object is "full" and ready to be committed.
 removeItem ($hash)
 Remove an item.
 setText ($text)
 uncompress ()
 Uncompress bulk data.

Public Attributes

 $mCompressed = false
 $mDefaultHash = ''
 $mItems = array()
 $mMaxCount = 100
 $mMaxSize = 10000000
 $mSize = 0
 $mVersion = 0

Detailed Description

Concatenated gzip (CGZ) storage Improves compression ratio by concatenating like objects before gzipping.

Definition at line 54 of file HistoryBlob.php.


Constructor & Destructor Documentation

Constructor.

Definition at line 62 of file HistoryBlob.php.


Member Function Documentation

Returns:
array

Definition at line 145 of file HistoryBlob.php.

References compress().

Here is the call graph for this function:

Definition at line 150 of file HistoryBlob.php.

References uncompress().

Here is the call graph for this function:

Parameters:
$textstring
Returns:
string

Implements HistoryBlob.

Definition at line 72 of file HistoryBlob.php.

References uncompress().

Referenced by setText().

Here is the call graph for this function:

Here is the caller graph for this function:

Compress the bulk data in the object.

Definition at line 125 of file HistoryBlob.php.

Referenced by __sleep().

Here is the caller graph for this function:

Parameters:
$hashstring
Returns:
array|bool

Implements HistoryBlob.

Definition at line 86 of file HistoryBlob.php.

References uncompress().

Referenced by getText().

Here is the call graph for this function:

Here is the caller graph for this function:

Returns:
array|bool

Implements HistoryBlob.

Definition at line 107 of file HistoryBlob.php.

References getItem(), and uncompress().

Here is the call graph for this function:

Helper function for compression jobs Returns true until the object is "full" and ready to be committed.

Returns:
bool

Definition at line 160 of file HistoryBlob.php.

Remove an item.

Parameters:
$hashstring

Definition at line 117 of file HistoryBlob.php.

Parameters:
$textstring
Returns:
void

Implements HistoryBlob.

Definition at line 99 of file HistoryBlob.php.

References addItem(), and uncompress().

Here is the call graph for this function:

Uncompress bulk data.

Definition at line 135 of file HistoryBlob.php.

Referenced by __wakeup(), addItem(), getItem(), getText(), and setText().

Here is the caller graph for this function:


Member Data Documentation

ConcatenatedGzipHistoryBlob::$mCompressed = false

Definition at line 56 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mDefaultHash = ''

Definition at line 56 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mItems = array()

Definition at line 56 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mMaxCount = 100

Definition at line 59 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mMaxSize = 10000000

Definition at line 58 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mSize = 0

Definition at line 57 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mVersion = 0

Definition at line 56 of file HistoryBlob.php.


The documentation for this class was generated from the following file: