Use the Maintenance class's new $orderedOptions and support for passing options multiple times. This allows for option "chaining". The BackupDumper and TextPassDumper class now extend Maintenance, but should continue to function as before. The public function processArgs() has been removed and replaced by processOptions(), which takes no parameters. It is unlikely that users of these classes were calling processArgs. Inheritors of these classes that overrode processOption() will now need to override processOptions() and use Maintenance::getOption() and friends. The maintenance/backupTextPass.inc file has been deleted. Users should include maintenance/dumpTextPass.php instead. Bug: T122587 Change-Id: I2473ee119c185d1b2b00ac4b1e70ee8a6cafe4a3
36 lines
1.1 KiB
PHP
36 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Sends dump output via the bgzip2 compressor.
|
|
*
|
|
* Copyright © 2003, 2005, 2006 Brion Vibber <brion@pobox.com>
|
|
* https://www.mediawiki.org/
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
*
|
|
* @file
|
|
*/
|
|
|
|
/**
|
|
* @ingroup Dump
|
|
*/
|
|
class DumpDBZip2Output extends DumpPipeOutput {
|
|
/**
|
|
* @param string $file
|
|
*/
|
|
function __construct( $file ) {
|
|
parent::__construct( "dbzip2", $file );
|
|
}
|
|
}
|