MediaWiki REL1_37
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.
 
 addItem ( $text, $textId)
 Add text.
 
 commit ()
 Commit the blob.
 
 getSize ()
 
 recompress ()
 Recompress text after some aberrant modification.
 

Public Attributes

 $blobClass
 
ConcatenatedGzipHistoryBlob false $cgz
 
RecompressTracked $parent
 
 $referrers
 

Private Attributes

array $texts
 

Detailed Description

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

Definition at line 704 of file recompressTracked.php.

Constructor & Destructor Documentation

◆ __construct()

CgzCopyTransaction::__construct (   $parent,
  $blobClass 
)

Create a transaction from a RecompressTracked object.

Parameters
RecompressTracked$parent
string$blobClass

Definition at line 719 of file recompressTracked.php.

References $blobClass, and $parent.

Member Function Documentation

◆ addItem()

CgzCopyTransaction::addItem (   $text,
  $textId 
)

Add text.

Returns false if it's ready to commit.

Parameters
string$text
int$textId
Returns
bool

Definition at line 733 of file recompressTracked.php.

References $blobClass.

◆ commit()

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 767 of file recompressTracked.php.

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

◆ getSize()

CgzCopyTransaction::getSize ( )

Definition at line 745 of file recompressTracked.php.

◆ recompress()

CgzCopyTransaction::recompress ( )

Recompress text after some aberrant modification.

Definition at line 752 of file recompressTracked.php.

References $blobClass.

Referenced by commit().

Member Data Documentation

◆ $blobClass

CgzCopyTransaction::$blobClass

Definition at line 707 of file recompressTracked.php.

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

◆ $cgz

ConcatenatedGzipHistoryBlob false CgzCopyTransaction::$cgz

Definition at line 709 of file recompressTracked.php.

◆ $parent

RecompressTracked CgzCopyTransaction::$parent

Definition at line 706 of file recompressTracked.php.

Referenced by __construct().

◆ $referrers

CgzCopyTransaction::$referrers

Definition at line 710 of file recompressTracked.php.

◆ $texts

array CgzCopyTransaction::$texts
private

Definition at line 712 of file recompressTracked.php.


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