|
MediaWiki master
|
Inherited by DumpFileOutput, and 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 15 of file DumpOutput.php.
| 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 Dump7ZipOutput, DumpFileOutput, and DumpPipeOutput.
Definition at line 88 of file DumpOutput.php.
| 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 DumpFileOutput, and DumpPipeOutput.
Definition at line 77 of file DumpOutput.php.
| DumpOutput::getFilenames | ( | ) |
Returns the name of the file or files which are being written to, if there are any.
Reimplemented in DumpFileOutput.
Definition at line 96 of file DumpOutput.php.
| DumpOutput::write | ( | $string | ) |
Override to write to a different stream type.
| string | $string |
Reimplemented in DumpFileOutput, and DumpStringOutput.
Definition at line 66 of file DumpOutput.php.
Referenced by writeClosePage(), writeCloseStream(), writeLogItem(), writeOpenPage(), writeOpenStream(), and writeRevision().
| DumpOutput::writeClosePage | ( | $string | ) |
| DumpOutput::writeCloseStream | ( | $string | ) |
| string | $string |
Reimplemented in DumpFileOutput, and DumpPipeOutput.
Definition at line 27 of file DumpOutput.php.
References write().
| DumpOutput::writeLogItem | ( | $rev, | |
| $string ) |
| stdClass | $rev | |
| string | $string |
Definition at line 58 of file DumpOutput.php.
References write().
| DumpOutput::writeOpenPage | ( | $page, | |
| $string ) |
| stdClass | null | $page | |
| string | $string |
Definition at line 35 of file DumpOutput.php.
References write().
| DumpOutput::writeOpenStream | ( | $string | ) |
| DumpOutput::writeRevision | ( | $rev, | |
| $string ) |
| stdClass | null | $rev | |
| string | $string |
Definition at line 50 of file DumpOutput.php.
References write().