MediaWiki  1.27.2
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)
 
 closeAndRename ($newname, $open=false)
 
 closeRenameAndReopen ($newname)
 
 getFilenames ()
 
 renameOrException ($newname)
 
 write ($string)
 
 writeCloseStream ($string)
 
- Public Member Functions inherited from DumpOutput
 closeAndRename ($newname, $open=false)
 Close the old file, and move it to a specified name. More...
 
 closeRenameAndReopen ($newname)
 Close the old file, move it to a specified name, and reopen new file with the old name. More...
 
 getFilenames ()
 Returns the name of the file or files which are being written to, if there are any. More...
 
 write ($string)
 Override to write to a different stream type. More...
 
 writeClosePage ($string)
 
 writeCloseStream ($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

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

Definition at line 39 of file DumpPipeOutput.php.

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

Member Function Documentation

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

Definition at line 83 of file DumpPipeOutput.php.

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

Referenced by closeRenameAndReopen().

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

Definition at line 75 of file DumpPipeOutput.php.

References closeAndRename().

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

Definition at line 63 of file DumpPipeOutput.php.

References $command.

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

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

Definition at line 52 of file DumpPipeOutput.php.

Member Data Documentation

DumpPipeOutput::$filename

Definition at line 32 of file DumpPipeOutput.php.

DumpPipeOutput::$procOpenResource = false
protected

Definition at line 33 of file DumpPipeOutput.php.


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