MediaWiki  REL1_22
CompressOld Class Reference

Maintenance script that compress the text of a wiki. More...

Inheritance diagram for CompressOld:
Collaboration diagram for CompressOld:

List of all members.

Public Member Functions

 __construct ()
 execute ()

Public Attributes

const LS_CHUNKED = 1
const LS_INDIVIDUAL = 0

Private Member Functions

 compressOldPages ($start=0, $extdb= '')
 compressPage ($row, $extdb)
 compressWithConcat ($startId, $maxChunkSize, $beginDate, $endDate, $extdb="", $maxPageId=false)

Detailed Description

Maintenance script that compress the text of a wiki.

Definition at line 51 of file compressOld.php.


Constructor & Destructor Documentation

Reimplemented from Maintenance.

Definition at line 58 of file compressOld.php.

References Maintenance\addOption().


Member Function Documentation

CompressOld::compressOldPages ( start = 0,
extdb = '' 
) [private]
Todo:
document

Definition at line 111 of file compressOld.php.

References $last, $res, array(), as, compressPage(), empty, Maintenance\output(), and wfGetDB().

Referenced by execute().

CompressOld::compressPage ( row,
extdb 
) [private]
Todo:
document
Parameters:
$row
$extdb
Returns:
bool

Definition at line 138 of file compressOld.php.

References $flags, array(), Maintenance\error(), ExternalStoreDB\store(), and wfGetDB().

Referenced by compressOldPages().

CompressOld::compressWithConcat ( startId,
maxChunkSize,
beginDate,
endDate,
extdb = "",
maxPageId = false 
) [private]
Parameters:
$startId
$maxChunkSize
$beginDate
$endDate
$extdbstring
$maxPageIdbool|int
Returns:
bool

Definition at line 179 of file compressOld.php.

References $dbr, array(), as, Maintenance\error(), Revision\getRevisionText(), LS_CHUNKED, Title\makeTitle(), Maintenance\output(), HistoryBlobStub\setLocation(), t(), wfGetDB(), and wfWaitForSlaves().

Referenced by execute().


Member Data Documentation

Definition at line 56 of file compressOld.php.

Referenced by compressWithConcat().

Todo:
document

Definition at line 55 of file compressOld.php.


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