|
MediaWiki master
|
Inherits MediaWiki\Export\DumpOutput.
Inherited by MediaWiki\Export\DumpPipeOutput.

Public Member Functions | |||||||
| __construct ( $file) | |||||||
| 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).
| |||||||
| getFilenames () | |||||||
| write ( $string) | |||||||
| writeCloseStream ( $string) | |||||||
Public Member Functions inherited from MediaWiki\Export\DumpOutput | |||||||
| writeClosePage ( $string) | |||||||
| writeLogItem ( $rev, $string) | |||||||
| writeOpenPage ( $page, $string) | |||||||
| writeOpenStream ( $string) | |||||||
| writeRevision ( $rev, $string) | |||||||
Protected Member Functions | |
| checkRenameArgCount ( $newname) | |
| renameOrException ( $newname) | |
Protected Attributes | |
| string | $filename |
| resource false | $handle = false |
Definition at line 20 of file DumpFileOutput.php.
| MediaWiki\Export\DumpFileOutput::__construct | ( | $file | ) |
| string | $file |
Reimplemented in MediaWiki\Export\DumpBZip2Output, MediaWiki\Export\DumpDBZip2Output, MediaWiki\Export\DumpGZipOutput, and MediaWiki\Export\DumpLBZip2Output.
Definition at line 29 of file DumpFileOutput.php.
|
protected |
| string | string[] | $newname |
| MWException |
Definition at line 73 of file DumpFileOutput.php.
Referenced by MediaWiki\Export\Dump7ZipOutput\closeAndRename(), MediaWiki\Export\DumpFileOutput\closeAndRename(), and MediaWiki\Export\DumpPipeOutput\closeAndRename().
| MediaWiki\Export\DumpFileOutput::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\DumpOutput.
Reimplemented in MediaWiki\Export\Dump7ZipOutput, and MediaWiki\Export\DumpPipeOutput.
Definition at line 86 of file DumpFileOutput.php.
References MediaWiki\Export\DumpFileOutput\checkRenameArgCount(), and MediaWiki\Export\DumpFileOutput\renameOrException().
Referenced by MediaWiki\Export\DumpFileOutput\closeRenameAndReopen().
| MediaWiki\Export\DumpFileOutput::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\DumpOutput.
Reimplemented in MediaWiki\Export\DumpPipeOutput.
Definition at line 55 of file DumpFileOutput.php.
References MediaWiki\Export\DumpFileOutput\closeAndRename().
| MediaWiki\Export\DumpFileOutput::getFilenames | ( | ) |
Reimplemented from MediaWiki\Export\DumpOutput.
Definition at line 103 of file DumpFileOutput.php.
References MediaWiki\Export\DumpFileOutput\$filename.
|
protected |
| string | $newname |
Definition at line 62 of file DumpFileOutput.php.
Referenced by MediaWiki\Export\Dump7ZipOutput\closeAndRename(), MediaWiki\Export\DumpFileOutput\closeAndRename(), and MediaWiki\Export\DumpPipeOutput\closeAndRename().
| MediaWiki\Export\DumpFileOutput::write | ( | $string | ) |
| string | $string |
Reimplemented from MediaWiki\Export\DumpOutput.
Definition at line 48 of file DumpFileOutput.php.
| MediaWiki\Export\DumpFileOutput::writeCloseStream | ( | $string | ) |
| string | $string |
Reimplemented from MediaWiki\Export\DumpOutput.
Reimplemented in MediaWiki\Export\DumpPipeOutput.
Definition at line 37 of file DumpFileOutput.php.
|
protected |
Definition at line 24 of file DumpFileOutput.php.
Referenced by MediaWiki\Export\DumpFileOutput\getFilenames().
|
protected |
Definition at line 22 of file DumpFileOutput.php.