MediaWiki  REL1_19
CgzCopyTransaction Class Reference

Class to represent a recompression operation for a single CGZ blob. More...

List of all members.

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

Detailed Description

Class to represent a recompression operation for a single CGZ blob.

Definition at line 672 of file recompressTracked.php.


Constructor & Destructor Documentation

CgzCopyTransaction::__construct ( parent,
blobClass 
)

Create a transaction from a RecompressTracked object.

Definition at line 681 of file recompressTracked.php.

References $blobClass, and $parent.


Member Function Documentation

CgzCopyTransaction::addItem ( text,
textId 
)

Add text.

Returns false if it's ready to commit.

Parameters:
$textstring
$textId
Returns:
bool

Definition at line 695 of file recompressTracked.php.

Commit the blob.

Does nothing if no text items have been added. May skip the move if --copy-only is set.

Definition at line 728 of file recompressTracked.php.

References $res, $url, recompress(), and wfGetDB().

Here is the call graph for this function:

Definition at line 706 of file recompressTracked.php.

Recompress text after some aberrant modification.

Definition at line 713 of file recompressTracked.php.

Referenced by commit().

Here is the caller graph for this function:


Member Data Documentation

CgzCopyTransaction::$blobClass

Definition at line 674 of file recompressTracked.php.

Referenced by __construct().

CgzCopyTransaction::$cgz

Definition at line 675 of file recompressTracked.php.

CgzCopyTransaction::$parent

Definition at line 673 of file recompressTracked.php.

Referenced by __construct().

CgzCopyTransaction::$referrers

Definition at line 676 of file recompressTracked.php.


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