MediaWiki  master
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
 

Protected Attributes

 $command
 
 $procOpenResource = false
 
- Protected Attributes inherited from DumpFileOutput
string $filename
 
resource false $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

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

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

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

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: