|
MediaWiki
REL1_19
|


Public Member Functions | |
| __construct () | |
| Default constructor. | |
| execute () | |
| Do the actual work. | |
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) | |
Definition at line 45 of file compressOld.php.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from Maintenance.
Definition at line 52 of file compressOld.php.
References Maintenance\addOption().

| CompressOld::compressOldPages | ( | $ | start = 0, |
| $ | extdb = '' |
||
| ) | [private] |
Definition at line 105 of file compressOld.php.
References $res, compressPage(), Maintenance\output(), and wfGetDB().
Referenced by execute().


| CompressOld::compressPage | ( | $ | row, |
| $ | extdb | ||
| ) | [private] |
| $row | |
| $extdb |
Definition at line 132 of file compressOld.php.
References Maintenance\error(), ExternalStoreDB\store(), and wfGetDB().
Referenced by compressOldPages().


| CompressOld::compressWithConcat | ( | $ | startId, |
| $ | maxChunkSize, | ||
| $ | beginDate, | ||
| $ | endDate, | ||
| $ | extdb = "", |
||
| $ | maxPageId = false |
||
| ) | [private] |
| $startId | |
| $maxChunkSize | |
| $beginDate | |
| $endDate | |
| $extdb | string |
| $maxPageId | bool|int |
Definition at line 173 of file compressOld.php.
References $dbr, $url, Maintenance\error(), Revision\getRevisionText(), LS_CHUNKED, Title\makeTitle(), Maintenance\output(), HistoryBlobStub\setLocation(), wfGetDB(), and wfWaitForSlaves().
Referenced by execute().


Do the actual work.
All child classes will need to implement this
Reimplemented from Maintenance.
Definition at line 64 of file compressOld.php.
References $success, $wgDBname, compressOldPages(), compressWithConcat(), Maintenance\error(), Maintenance\getOption(), and Maintenance\output().

| const CompressOld::LS_CHUNKED = 1 |
Definition at line 50 of file compressOld.php.
Referenced by compressWithConcat().
| const CompressOld::LS_INDIVIDUAL = 0 |
Definition at line 49 of file compressOld.php.