MediaWiki
1.34.0
|
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. More... | |
addItem ( $text, $textId) | |
Add text. More... | |
commit () | |
Commit the blob. More... | |
getSize () | |
recompress () | |
Recompress text after some aberrant modification. More... | |
Public Attributes | |
$blobClass | |
ConcatenatedGzipHistoryBlob false | $cgz |
RecompressTracked | $parent |
$referrers | |
Private Attributes | |
array | $texts |
Class to represent a recompression operation for a single CGZ blob.
Definition at line 716 of file recompressTracked.php.
CgzCopyTransaction::__construct | ( | $parent, | |
$blobClass | |||
) |
Create a transaction from a RecompressTracked object.
RecompressTracked | $parent | |
string | $blobClass |
Definition at line 731 of file recompressTracked.php.
References $blobClass, and $parent.
CgzCopyTransaction::addItem | ( | $text, | |
$textId | |||
) |
Add text.
Returns false if it's ready to commit.
string | $text | |
int | $textId |
Definition at line 745 of file recompressTracked.php.
References $blobClass.
CgzCopyTransaction::commit | ( | ) |
Commit the blob.
Does nothing if no text items have been added. May skip the move if –copy-only is set.
Definition at line 779 of file recompressTracked.php.
References $res, DB_MASTER, DBO_TRX, recompress(), serialize(), and wfGetDB().
CgzCopyTransaction::getSize | ( | ) |
Definition at line 757 of file recompressTracked.php.
CgzCopyTransaction::recompress | ( | ) |
Recompress text after some aberrant modification.
Definition at line 764 of file recompressTracked.php.
References $blobClass.
Referenced by commit().
CgzCopyTransaction::$blobClass |
Definition at line 719 of file recompressTracked.php.
Referenced by __construct(), addItem(), and recompress().
ConcatenatedGzipHistoryBlob false CgzCopyTransaction::$cgz |
Definition at line 721 of file recompressTracked.php.
RecompressTracked CgzCopyTransaction::$parent |
Definition at line 718 of file recompressTracked.php.
Referenced by __construct().
CgzCopyTransaction::$referrers |
Definition at line 722 of file recompressTracked.php.
|
private |
Definition at line 724 of file recompressTracked.php.