MediaWiki  1.32.5
Dump7ZipOutput Class Reference
Inheritance diagram for Dump7ZipOutput:
Collaboration diagram for Dump7ZipOutput:

Public Member Functions

 __construct ( $file, $cmpLevel=4)
 
 closeAndRename ( $newname, $open=false)
 
 setup7zCommand ( $file)
 
- Public Member Functions inherited from DumpPipeOutput
 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)
 

Protected Attributes

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

Additional Inherited Members

- Public Attributes inherited from DumpPipeOutput
 $filename
 
- Public Attributes inherited from DumpFileOutput
 $filename
 

Detailed Description

Definition at line 29 of file Dump7ZipOutput.php.

Constructor & Destructor Documentation

◆ __construct()

Dump7ZipOutput::__construct (   $file,
  $cmpLevel = 4 
)
Parameters
string$file
int$cmpLevelCompression level passed to 7za command's -mx

Reimplemented from DumpPipeOutput.

Definition at line 39 of file Dump7ZipOutput.php.

References DumpPipeOutput\$command, and setup7zCommand().

Member Function Documentation

◆ closeAndRename()

Dump7ZipOutput::closeAndRename (   $newname,
  $open = false 
)

◆ setup7zCommand()

Dump7ZipOutput::setup7zCommand (   $file)
Parameters
string$file
Returns
string

Definition at line 50 of file Dump7ZipOutput.php.

References DumpPipeOutput\$command, wfEscapeShellArg(), and wfGetNull().

Referenced by __construct(), and closeAndRename().

Member Data Documentation

◆ $compressionLevel

int Dump7ZipOutput::$compressionLevel
protected

Definition at line 33 of file Dump7ZipOutput.php.


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