MediaWiki
1.34.0
|
Public Member Functions | |||||||
__construct ( $file) | |||||||
checkRenameArgCount ( $newname) | |||||||
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 () | |||||||
renameOrException ( $newname) | |||||||
write ( $string) | |||||||
writeCloseStream ( $string) | |||||||
Public Member Functions inherited from DumpOutput | |||||||
writeClosePage ( $string) | |||||||
writeLogItem ( $rev, $string) | |||||||
writeOpenPage ( $page, $string) | |||||||
writeOpenStream ( $string) | |||||||
writeRevision ( $rev, $string) | |||||||
Protected Attributes | |
string | $filename |
resource false | $handle = false |
Definition at line 29 of file DumpFileOutput.php.
DumpFileOutput::__construct | ( | $file | ) |
string | $file |
Reimplemented in DumpLBZip2Output, DumpBZip2Output, DumpDBZip2Output, and DumpGZipOutput.
Definition at line 38 of file DumpFileOutput.php.
References $file.
DumpFileOutput::checkRenameArgCount | ( | $newname | ) |
string | string[] | $newname |
MWException |
Definition at line 83 of file DumpFileOutput.php.
Referenced by Dump7ZipOutput\closeAndRename(), DumpPipeOutput\closeAndRename(), and closeAndRename().
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 DumpOutput.
Reimplemented in DumpPipeOutput, and Dump7ZipOutput.
Definition at line 97 of file DumpFileOutput.php.
References checkRenameArgCount(), and renameOrException().
Referenced by closeRenameAndReopen().
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 DumpOutput.
Reimplemented in DumpPipeOutput.
Definition at line 64 of file DumpFileOutput.php.
References closeAndRename().
DumpFileOutput::getFilenames | ( | ) |
Reimplemented from DumpOutput.
Definition at line 114 of file DumpFileOutput.php.
References $filename.
DumpFileOutput::renameOrException | ( | $newname | ) |
string | $newname |
MWException |
Definition at line 72 of file DumpFileOutput.php.
Referenced by Dump7ZipOutput\closeAndRename(), DumpPipeOutput\closeAndRename(), and closeAndRename().
DumpFileOutput::write | ( | $string | ) |
string | $string |
Reimplemented from DumpOutput.
Definition at line 57 of file DumpFileOutput.php.
DumpFileOutput::writeCloseStream | ( | $string | ) |
string | $string |
Reimplemented from DumpOutput.
Reimplemented in DumpPipeOutput.
Definition at line 46 of file DumpFileOutput.php.
|
protected |
Definition at line 33 of file DumpFileOutput.php.
Referenced by getFilenames().
|
protected |
Definition at line 31 of file DumpFileOutput.php.