MediaWiki
1.23.2
|
Script that dumps wiki pages or logging database into an XML interchange wrapper format for export or backup. More...
Go to the source code of this file.
Variables | |
$dumper = new BackupDumper( $argv ) | |
$optionsWithArgs = array( 'pagelist', 'start', 'end', 'revstart', 'revend' ) | |
$originalDir = getcwd() | |
$textMode = isset( $options['stub'] ) ? WikiExporter::STUB : WikiExporter::TEXT | |
$dumper | dumpUploadFileContents = isset( $options['include-files'] ) |
$dumper | dumpUploads = isset( $options['uploads'] ) |
if(isset( $options['full'])) elseif(isset( $options['current'])) elseif(isset( $options['stable'])) elseif(isset( $options['logs'])) elseif(isset( $options['revrange'])) | else |
$dumper | skipFooter = isset( $options['skip-footer'] ) |
if(isset( $options['quiet'])) if(isset( $options['pagelist'])) if(isset( $options['start'])) if(isset( $options['end'])) if(isset( $options['revstart'])) if(isset( $options['revend'])) $dumper | skipHeader = isset( $options['skip-header'] ) |
Script that dumps wiki pages or logging database into an XML interchange wrapper format for export or backup.
Copyright © 2005 Brion Vibber brion @pob ox.co mhttps://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
Definition in file dumpBackup.php.
$dumper = new BackupDumper( $argv ) |
Definition at line 35 of file dumpBackup.php.
Referenced by TextPassDumperTest\checkpointHelper(), BackupDumperPageTest\testCurrentStubGzip(), BackupDumperPageTest\testCurrentStubPlain(), BackupDumperPageTest\testFullStubPlain(), BackupDumperPageTest\testFullTextPlain(), TextPassDumperTest\testPlain(), BackupDumperLoggerTest\testPlain(), TextPassDumperTest\testPrefetchPlain(), BackupDumperPageTest\testXmlDumpsBackupUseCase(), and BackupDumperLoggerTest\testXmlDumpsBackupUseCaseLogging().
Definition at line 30 of file dumpBackup.php.
$originalDir = getcwd() |
Definition at line 28 of file dumpBackup.php.
$textMode = isset( $options['stub'] ) ? WikiExporter::STUB : WikiExporter::TEXT |
Definition at line 72 of file dumpBackup.php.
$dumper dumpUploadFileContents = isset( $options['include-files'] ) |
Definition at line 70 of file dumpBackup.php.
Referenced by WikiExporter\outputPageStream().
$dumper dumpUploads = isset( $options['uploads'] ) |
Definition at line 69 of file dumpBackup.php.
Referenced by WikiExporter\outputPageStream().
if (isset($options[ 'full'])) elseif (isset($options[ 'current'])) elseif (isset($options[ 'stable'])) elseif (isset($options[ 'logs'])) elseif (isset($options[ 'revrange'])) else |
Definition at line 84 of file dumpBackup.php.
$dumper skipFooter = isset( $options['skip-footer'] ) |
Definition at line 68 of file dumpBackup.php.
Referenced by BackupDumper\dump().
if (isset($options[ 'quiet'])) if (isset($options[ 'pagelist'])) if (isset($options[ 'start'])) if (isset($options[ 'end'])) if (isset($options[ 'revstart'])) if (isset($options[ 'revend'])) $dumper skipHeader = isset( $options['skip-header'] ) |
Definition at line 67 of file dumpBackup.php.
Referenced by BackupDumper\dump().