|
MediaWiki master
|
Inherited by MediaWiki\Export\DumpFileOutput, and MediaWiki\Export\DumpStringOutput.
Public Member Functions | |
| closeAndRename ( $newname, $open=false) | |
| Close the old file, and move it to a specified name. | |
| closeRenameAndReopen ( $newname) | |
| Close the old file, move it to a specified name, and reopen new file with the old name. | |
| getFilenames () | |
| Returns the name of the file or files which are being written to, if there are any. | |
| write ( $string) | |
| Override to write to a different stream type. | |
| writeClosePage ( $string) | |
| writeCloseStream ( $string) | |
| writeLogItem ( $rev, $string) | |
| writeOpenPage ( $page, $string) | |
| writeOpenStream ( $string) | |
| writeRevision ( $rev, $string) | |
Definition at line 17 of file DumpOutput.php.
| MediaWiki\Export\DumpOutput::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 in MediaWiki\Export\Dump7ZipOutput, MediaWiki\Export\DumpFileOutput, and MediaWiki\Export\DumpPipeOutput.
Definition at line 90 of file DumpOutput.php.
| MediaWiki\Export\DumpOutput::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 in MediaWiki\Export\DumpFileOutput, and MediaWiki\Export\DumpPipeOutput.
Definition at line 79 of file DumpOutput.php.
| MediaWiki\Export\DumpOutput::getFilenames | ( | ) |
Returns the name of the file or files which are being written to, if there are any.
Reimplemented in MediaWiki\Export\DumpFileOutput.
Definition at line 98 of file DumpOutput.php.
| MediaWiki\Export\DumpOutput::write | ( | $string | ) |
Override to write to a different stream type.
| string | $string |
Reimplemented in MediaWiki\Export\DumpFileOutput, and MediaWiki\Export\DumpStringOutput.
Definition at line 68 of file DumpOutput.php.
Referenced by MediaWiki\Export\DumpOutput\writeClosePage(), MediaWiki\Export\DumpOutput\writeCloseStream(), MediaWiki\Export\DumpOutput\writeLogItem(), MediaWiki\Export\DumpOutput\writeOpenPage(), MediaWiki\Export\DumpOutput\writeOpenStream(), and MediaWiki\Export\DumpOutput\writeRevision().
| MediaWiki\Export\DumpOutput::writeClosePage | ( | $string | ) |
| string | $string |
Definition at line 44 of file DumpOutput.php.
References MediaWiki\Export\DumpOutput\write().
| MediaWiki\Export\DumpOutput::writeCloseStream | ( | $string | ) |
| string | $string |
Reimplemented in MediaWiki\Export\DumpFileOutput, and MediaWiki\Export\DumpPipeOutput.
Definition at line 29 of file DumpOutput.php.
References MediaWiki\Export\DumpOutput\write().
| MediaWiki\Export\DumpOutput::writeLogItem | ( | $rev, | |
| $string ) |
| \\stdClass | $rev | |
| string | $string |
Definition at line 60 of file DumpOutput.php.
References MediaWiki\Export\DumpOutput\write().
| MediaWiki\Export\DumpOutput::writeOpenPage | ( | $page, | |
| $string ) |
| \\stdClass | null | $page | |
| string | $string |
Definition at line 37 of file DumpOutput.php.
References MediaWiki\Export\DumpOutput\write().
| MediaWiki\Export\DumpOutput::writeOpenStream | ( | $string | ) |
| string | $string |
Definition at line 22 of file DumpOutput.php.
References MediaWiki\Export\DumpOutput\write().
| MediaWiki\Export\DumpOutput::writeRevision | ( | $rev, | |
| $string ) |
| \\stdClass | null | $rev | |
| string | $string |
Definition at line 52 of file DumpOutput.php.
References MediaWiki\Export\DumpOutput\write().