MediaWiki
REL1_22
|
Class to represent a recompression operation for a single CGZ blob. More...
Public Member Functions | |
__construct ($parent, $blobClass) | |
Create a transaction from a RecompressTracked object. | |
addItem ($text, $textId) | |
Add text. | |
commit () | |
Commit the blob. | |
getSize () | |
recompress () | |
Recompress text after some aberrant modification. | |
Public Attributes | |
$blobClass | |
$cgz | |
$parent | |
$referrers |
Class to represent a recompression operation for a single CGZ blob.
Definition at line 678 of file recompressTracked.php.
CgzCopyTransaction::__construct | ( | $ | parent, |
$ | blobClass | ||
) |
Create a transaction from a RecompressTracked object.
Definition at line 687 of file recompressTracked.php.
References $blobClass, $parent, and array().
CgzCopyTransaction::addItem | ( | $ | text, |
$ | textId | ||
) |
Add text.
Returns false if it's ready to commit.
$text | string |
$textId |
Definition at line 701 of file recompressTracked.php.
References $hash.
Commit the blob.
Does nothing if no text items have been added. May skip the move if --copy-only is set.
Definition at line 734 of file recompressTracked.php.
References $hash, $res, array(), as, recompress(), and wfGetDB().
Definition at line 712 of file recompressTracked.php.
CgzCopyTransaction::$blobClass |
Definition at line 680 of file recompressTracked.php.
Referenced by __construct().
CgzCopyTransaction::$cgz |
Definition at line 681 of file recompressTracked.php.
CgzCopyTransaction::$parent |
Definition at line 679 of file recompressTracked.php.
Referenced by __construct().
CgzCopyTransaction::$referrers |
Definition at line 682 of file recompressTracked.php.