MediaWiki  1.33.0
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 33 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 41 of file DumpPipeOutput.php.

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

Member Function Documentation

◆ closeAndRename()

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

Reimplemented from DumpFileOutput.

Reimplemented in Dump7ZipOutput.

Definition at line 85 of file DumpPipeOutput.php.

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

Referenced by closeRenameAndReopen().

◆ closeRenameAndReopen()

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

Reimplemented from DumpFileOutput.

Definition at line 77 of file DumpPipeOutput.php.

References closeAndRename().

◆ startCommand()

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

Definition at line 65 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 54 of file DumpPipeOutput.php.

Member Data Documentation

◆ $command

◆ $filename

DumpPipeOutput::$filename

Definition at line 34 of file DumpPipeOutput.php.

◆ $procOpenResource

DumpPipeOutput::$procOpenResource = false
protected

Definition at line 35 of file DumpPipeOutput.php.


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