MediaWiki  1.23.14
dumpBackup.php File Reference

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'] )
 

Detailed Description

Script that dumps wiki pages or logging database into an XML interchange wrapper format for export or backup.

Copyright © 2005 Brion Vibber brion.nosp@m.@pob.nosp@m.ox.co.nosp@m.m 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

Definition in file dumpBackup.php.

Variable Documentation

◆ $dumper

◆ $optionsWithArgs

$optionsWithArgs = array( 'pagelist', 'start', 'end', 'revstart', 'revend' )

Definition at line 30 of file dumpBackup.php.

◆ $originalDir

$originalDir = getcwd()

Definition at line 28 of file dumpBackup.php.

◆ $textMode

$textMode = isset( $options['stub'] ) ? WikiExporter::STUB : WikiExporter::TEXT

Definition at line 72 of file dumpBackup.php.

◆ dumpUploadFileContents

$dumper dumpUploadFileContents = isset( $options['include-files'] )

Definition at line 70 of file dumpBackup.php.

Referenced by WikiExporter\outputPageStream().

◆ dumpUploads

$dumper dumpUploads = isset( $options['uploads'] )

Definition at line 69 of file dumpBackup.php.

Referenced by WikiExporter\outputPageStream().

◆ else

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.

◆ skipFooter

$dumper skipFooter = isset( $options['skip-footer'] )

Definition at line 68 of file dumpBackup.php.

Referenced by BackupDumper\dump().

◆ skipHeader

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().