MediaWiki
REL1_22
|
Base class for output stream; prints to stdout or buffer or wherever. More...
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) |
Base class for output stream; prints to stdout or buffer or wherever.
Definition at line 886 of file Export.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).
$newname | mixed 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, DumpPipeOutput, and DumpFileOutput.
Definition at line 959 of file Export.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).
$newname | mixed File name. May be a string or an array with one element |
Reimplemented in DumpPipeOutput, and DumpFileOutput.
Definition at line 949 of file Export.php.
Returns the name of the file or files which are being written to, if there are any.
Reimplemented in DumpFileOutput.
Definition at line 967 of file Export.php.
DumpOutput::write | ( | $ | string | ) |
Override to write to a different stream type.
$string | string |
Reimplemented in DumpFileOutput.
Definition at line 938 of file Export.php.
DumpOutput::writeClosePage | ( | $ | string | ) |
$string | string |
Definition at line 913 of file Export.php.
DumpOutput::writeCloseStream | ( | $ | string | ) |
$string | string |
Reimplemented in DumpPipeOutput, and DumpFileOutput.
Definition at line 898 of file Export.php.
DumpOutput::writeLogItem | ( | $ | rev, |
$ | string | ||
) |
$rev | |
$string | string |
Definition at line 929 of file Export.php.
DumpOutput::writeOpenPage | ( | $ | page, |
$ | string | ||
) |
$page | |
$string | string |
Definition at line 906 of file Export.php.
DumpOutput::writeOpenStream | ( | $ | string | ) |
$string | string |
Definition at line 891 of file Export.php.
DumpOutput::writeRevision | ( | $ | rev, |
$ | string | ||
) |
$rev | |
$string | string |
Definition at line 921 of file Export.php.