MediaWiki REL1_40
|
Inherits DumpOutput.
Inherited by 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 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 29 of file DumpFileOutput.php.
DumpFileOutput::__construct | ( | $file | ) |
string | $file |
Reimplemented in DumpBZip2Output, DumpDBZip2Output, DumpGZipOutput, and DumpLBZip2Output.
Definition at line 38 of file DumpFileOutput.php.
References $file.
|
protected |
string | string[] | $newname |
MWException |
Definition at line 83 of file DumpFileOutput.php.
Referenced by Dump7ZipOutput\closeAndRename(), closeAndRename(), and DumpPipeOutput\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 Dump7ZipOutput, and DumpPipeOutput.
Definition at line 96 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 113 of file DumpFileOutput.php.
References $filename.
|
protected |
string | $newname |
MWException |
Definition at line 72 of file DumpFileOutput.php.
Referenced by Dump7ZipOutput\closeAndRename(), closeAndRename(), and DumpPipeOutput\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.