MediaWiki  1.23.12
DumpPipeOutput Class Reference

Stream outputter to send data to a file via some filter program. More...

Inheritance diagram for DumpPipeOutput:
Collaboration diagram for DumpPipeOutput:

Public Member Functions

 __construct ( $command, $file=null)
 
 closeAndRename ( $newname, $open=false)
 
 closeRenameAndReopen ( $newname)
 
 startCommand ( $command)
 
 writeCloseStream ( $string)
 
- Public Member Functions inherited from DumpFileOutput
 __construct ( $file)
 
 checkRenameArgCount ( $newname)
 
 getFilenames ()
 
 renameOrException ( $newname)
 
 write ( $string)
 
- Public Member Functions inherited from DumpOutput
 writeClosePage ( $string)
 
 writeLogItem ( $rev, $string)
 
 writeOpenPage ( $page, $string)
 
 writeOpenStream ( $string)
 
 writeRevision ( $rev, $string)
 

Public Attributes

 $filename
 
- Public Attributes inherited from DumpFileOutput
 $filename
 

Protected Attributes

 $command
 
 $procOpenResource = false
 
- Protected Attributes inherited from DumpFileOutput
 $handle = false
 

Detailed Description

Stream outputter to send data to a file via some filter program.

Even if compression is available in a library, using a separate program can allow us to make use of a multi-processor system.

Definition at line 1075 of file Export.php.

Constructor & Destructor Documentation

◆ __construct()

DumpPipeOutput::__construct (   $command,
  $file = null 
)
Parameters
$command
$filenull

Definition at line 1083 of file Export.php.

References $command, $file, startCommand(), and wfEscapeShellArg().

Member Function Documentation

◆ closeAndRename()

DumpPipeOutput::closeAndRename (   $newname,
  $open = false 
)
Parameters
$newnamemixed
$openbool

Reimplemented from DumpFileOutput.

Reimplemented in Dump7ZipOutput.

Definition at line 1127 of file Export.php.

References $command, DumpFileOutput\checkRenameArgCount(), DumpFileOutput\renameOrException(), startCommand(), and wfEscapeShellArg().

Referenced by closeRenameAndReopen().

◆ closeRenameAndReopen()

DumpPipeOutput::closeRenameAndReopen (   $newname)
Parameters
mixed$newname

Reimplemented from DumpFileOutput.

Definition at line 1119 of file Export.php.

References closeAndRename().

◆ startCommand()

DumpPipeOutput::startCommand (   $command)
Parameters
$command

Definition at line 1107 of file Export.php.

References $command, and array().

Referenced by __construct(), closeAndRename(), and Dump7ZipOutput\closeAndRename().

◆ writeCloseStream()

DumpPipeOutput::writeCloseStream (   $string)
Parameters
$stringstring

Reimplemented from DumpFileOutput.

Definition at line 1096 of file Export.php.

Member Data Documentation

◆ $command

◆ $filename

DumpPipeOutput::$filename

Definition at line 1076 of file Export.php.

◆ $procOpenResource

DumpPipeOutput::$procOpenResource = false
protected

Definition at line 1077 of file Export.php.


The documentation for this class was generated from the following file: