|
MediaWiki
REL1_23
|
Maintenance script that compress the text of a wiki. More...


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) | |
Maintenance script that compress the text of a wiki.
Definition at line 51 of file compressOld.php.
Reimplemented from Maintenance.
Definition at line 58 of file compressOld.php.
References Maintenance\addOption().
| CompressOld::compressOldPages | ( | $ | start = 0, |
| $ | extdb = '' |
||
| ) | [private] |
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] |
| $row | |
| $extdb |
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] |
| $startId | |
| $maxChunkSize | |
| $beginDate | |
| $endDate | |
| $extdb | string |
| $maxPageId | bool|int |
Definition at line 179 of file compressOld.php.
References $conds, $dbr, $tables, array(), as, Maintenance\error(), Revision\getRevisionText(), LS_CHUNKED, Title\makeTitle(), Maintenance\output(), HistoryBlobStub\setLocation(), t(), wfGetDB(), and wfWaitForSlaves().
Referenced by execute().
Reimplemented from Maintenance.
Definition at line 70 of file compressOld.php.
References $success, $wgDBname, compressOldPages(), compressWithConcat(), Maintenance\error(), Maintenance\getOption(), global, and Maintenance\output().
| const CompressOld::LS_CHUNKED = 1 |
Definition at line 56 of file compressOld.php.
Referenced by compressWithConcat().
| const CompressOld::LS_INDIVIDUAL = 0 |
Definition at line 55 of file compressOld.php.