|
MediaWiki master
|
Inherits MediaWiki\Export\DumpFileOutput.
Inherited by MediaWiki\Export\Dump7ZipOutput, MediaWiki\Export\DumpBZip2Output, MediaWiki\Export\DumpDBZip2Output, MediaWiki\Export\DumpGZipOutput, and MediaWiki\Export\DumpLBZip2Output.

Public Member Functions | |||||||
| __construct ( $command, $file=null) | |||||||
| closeAndRename ( $newname, $open=false) | |||||||
Close the old file, and move it to a specified name.Use this for the last piece of a file written out at specified checkpoints (e.g. every n hours).
| |||||||
| closeRenameAndReopen ( $newname) | |||||||
Close the old file, move it to a specified name, and reopen new file with the old name.Use this for writing out a file in multiple pieces at specified checkpoints (e.g. every n hours).
| |||||||
| startCommand ( $command) | |||||||
| writeCloseStream ( $string) | |||||||
Public Member Functions inherited from MediaWiki\Export\DumpFileOutput | |||||||
| __construct ( $file) | |||||||
| getFilenames () | |||||||
| write ( $string) | |||||||
Public Member Functions inherited from MediaWiki\Export\DumpOutput | |||||||
| writeClosePage ( $string) | |||||||
| writeLogItem ( $rev, $string) | |||||||
| writeOpenPage ( $page, $string) | |||||||
| writeOpenStream ( $string) | |||||||
| writeRevision ( $rev, $string) | |||||||
Protected Attributes | |
| string | $command |
| string null | $filename |
| resource false | $procOpenResource = false |
Protected Attributes inherited from MediaWiki\Export\DumpFileOutput | |
| string | $filename |
| resource false | $handle = false |
Additional Inherited Members | |
Protected Member Functions inherited from MediaWiki\Export\DumpFileOutput | |
| checkRenameArgCount ( $newname) | |
| renameOrException ( $newname) | |
Definition at line 21 of file DumpPipeOutput.php.
| MediaWiki\Export\DumpPipeOutput::__construct | ( | $command, | |
| $file = null ) |
| string | $command | |
| string | null | $file |
Reimplemented in MediaWiki\Export\Dump7ZipOutput.
Definition at line 33 of file DumpPipeOutput.php.
References MediaWiki\Export\DumpPipeOutput\$command, and MediaWiki\Export\DumpPipeOutput\startCommand().
| MediaWiki\Export\DumpPipeOutput::closeAndRename | ( | $newname, | |
| $open = false ) |
Close the old file, and move it to a specified name.Use this for the last piece of a file written out at specified checkpoints (e.g. every n hours).
| string | string[] | $newname | File name. May be a string or an array with one element |
| bool | $open | If true, a new file with the old filename will be opened again for writing (default: false) |
Reimplemented from MediaWiki\Export\DumpFileOutput.
Reimplemented in MediaWiki\Export\Dump7ZipOutput.
Definition at line 76 of file DumpPipeOutput.php.
References MediaWiki\Export\DumpPipeOutput\$command, MediaWiki\Export\DumpFileOutput\checkRenameArgCount(), MediaWiki\Export\DumpFileOutput\renameOrException(), and MediaWiki\Export\DumpPipeOutput\startCommand().
Referenced by MediaWiki\Export\DumpPipeOutput\closeRenameAndReopen().
| MediaWiki\Export\DumpPipeOutput::closeRenameAndReopen | ( | $newname | ) |
Close the old file, move it to a specified name, and reopen new file with the old name.Use this for writing out a file in multiple pieces at specified checkpoints (e.g. every n hours).
| string | string[] | $newname | File name. May be a string or an array with one element |
Reimplemented from MediaWiki\Export\DumpFileOutput.
Definition at line 69 of file DumpPipeOutput.php.
References MediaWiki\Export\DumpPipeOutput\closeAndRename().
| MediaWiki\Export\DumpPipeOutput::startCommand | ( | $command | ) |
| string | $command |
Definition at line 57 of file DumpPipeOutput.php.
References MediaWiki\Export\DumpPipeOutput\$command.
Referenced by MediaWiki\Export\DumpPipeOutput\__construct(), MediaWiki\Export\Dump7ZipOutput\closeAndRename(), and MediaWiki\Export\DumpPipeOutput\closeAndRename().
| MediaWiki\Export\DumpPipeOutput::writeCloseStream | ( | $string | ) |
| string | $string |
Reimplemented from MediaWiki\Export\DumpFileOutput.
Definition at line 46 of file DumpPipeOutput.php.
|
protected |
Definition at line 23 of file DumpPipeOutput.php.
Referenced by MediaWiki\Export\DumpPipeOutput\__construct(), MediaWiki\Export\Dump7ZipOutput\__construct(), MediaWiki\Export\Dump7ZipOutput\closeAndRename(), MediaWiki\Export\DumpPipeOutput\closeAndRename(), and MediaWiki\Export\DumpPipeOutput\startCommand().
|
protected |
Definition at line 25 of file DumpPipeOutput.php.
|
protected |
Definition at line 27 of file DumpPipeOutput.php.