MediaWiki  1.32.5
DumpPipeOutput Class Reference
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

Definition at line 31 of file DumpPipeOutput.php.

Constructor & Destructor Documentation

◆ __construct()

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

Reimplemented in Dump7ZipOutput.

Definition at line 39 of file DumpPipeOutput.php.

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

Member Function Documentation

◆ closeAndRename()

DumpPipeOutput::closeAndRename (   $newname,
  $open = false 
)
Parameters
string$newname
bool$open

Reimplemented from DumpFileOutput.

Reimplemented in Dump7ZipOutput.

Definition at line 83 of file DumpPipeOutput.php.

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

Referenced by closeRenameAndReopen().

◆ closeRenameAndReopen()

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

Reimplemented from DumpFileOutput.

Definition at line 75 of file DumpPipeOutput.php.

References closeAndRename().

◆ startCommand()

DumpPipeOutput::startCommand (   $command)
Parameters
string$command

Definition at line 63 of file DumpPipeOutput.php.

References $command.

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

◆ writeCloseStream()

DumpPipeOutput::writeCloseStream (   $string)
Parameters
string$string

Reimplemented from DumpFileOutput.

Definition at line 52 of file DumpPipeOutput.php.

Member Data Documentation

◆ $command

◆ $filename

DumpPipeOutput::$filename

Definition at line 32 of file DumpPipeOutput.php.

◆ $procOpenResource

DumpPipeOutput::$procOpenResource = false
protected

Definition at line 33 of file DumpPipeOutput.php.


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