MediaWiki  1.28.0
CgzCopyTransaction Class Reference

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

Collaboration diagram for CgzCopyTransaction:

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 $cgz
 
RecompressTracked $parent
 
 $referrers
 

Detailed Description

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

Definition at line 700 of file recompressTracked.php.

Constructor & Destructor Documentation

CgzCopyTransaction::__construct (   $parent,
  $blobClass 
)

Create a transaction from a RecompressTracked object.

Parameters
RecompressTracked$parent
string$blobClass

Definition at line 713 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
string$text
int$textId
Returns
bool

Definition at line 727 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 761 of file recompressTracked.php.

References $res, as, DB_MASTER, DBO_TRX, recompress(), serialize(), and wfGetDB().

CgzCopyTransaction::getSize ( )

Definition at line 739 of file recompressTracked.php.

CgzCopyTransaction::recompress ( )

Recompress text after some aberrant modification.

Definition at line 746 of file recompressTracked.php.

References $blobClass, and as.

Referenced by commit().

Member Data Documentation

CgzCopyTransaction::$blobClass

Definition at line 703 of file recompressTracked.php.

Referenced by __construct(), addItem(), and recompress().

ConcatenatedGzipHistoryBlob CgzCopyTransaction::$cgz

Definition at line 705 of file recompressTracked.php.

RecompressTracked CgzCopyTransaction::$parent

Definition at line 702 of file recompressTracked.php.

Referenced by __construct().

CgzCopyTransaction::$referrers

Definition at line 706 of file recompressTracked.php.


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