Refactor dumpBackup.php and dumpTextPass.php to be Maintenance subclasses
authorThis, that and the other <at.light@live.com.au>
Thu, 31 Dec 2015 09:46:54 +0000 (20:46 +1100)
committerThis, that and the other <at.light@live.com.au>
Thu, 31 Dec 2015 09:46:54 +0000 (20:46 +1100)
commit4abb45939234fe94ce1a78f3ef171a01b2e40511
tree888b9c56bb350263fd1a105a159a65b28ee55440
parentb1e61d9a8079c7eef233e2b1a62eebf2f64114d1
Refactor dumpBackup.php and dumpTextPass.php to be Maintenance subclasses

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
RELEASE-NOTES-1.27
autoload.php
includes/export/DumpDBZip2Output.php [new file with mode: 0644]
maintenance/backup.inc
maintenance/backupTextPass.inc [deleted file]
maintenance/dumpBackup.php
maintenance/dumpTextPass.php
tests/phpunit/maintenance/backupTextPassTest.php
tests/phpunit/maintenance/backup_LogTest.php
tests/phpunit/maintenance/backup_PageTest.php