MediaWiki  REL1_24
DumpOutput Class Reference

Base class for output stream; prints to stdout or buffer or wherever. More...

Inheritance diagram for DumpOutput:

List of all members.

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)

Detailed Description

Base class for output stream; prints to stdout or buffer or wherever.

Definition at line 905 of file Export.php.


Member Function Documentation

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).

Parameters:
string | array$newnameFile name. May be a string or an array with one element
bool$openIf 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 979 of file Export.php.

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).

Parameters:
string | array$newnameFile name. May be a string or an array with one element

Reimplemented in DumpPipeOutput, and DumpFileOutput.

Definition at line 968 of file Export.php.

Returns the name of the file or files which are being written to, if there are any.

Returns:
null

Reimplemented in DumpFileOutput.

Definition at line 987 of file Export.php.

DumpOutput::write ( string)

Override to write to a different stream type.

Parameters:
string$string
Returns:
bool

Reimplemented in DumpFileOutput.

Definition at line 957 of file Export.php.

Referenced by writeClosePage(), and writeCloseStream().

Parameters:
string$string

Definition at line 932 of file Export.php.

References write().

Parameters:
string$string

Reimplemented in DumpPipeOutput, and DumpFileOutput.

Definition at line 917 of file Export.php.

References write().

DumpOutput::writeLogItem ( rev,
string 
)
Parameters:
object$rev
string$string

Definition at line 948 of file Export.php.

DumpOutput::writeOpenPage ( page,
string 
)
Parameters:
object$page
string$string

Definition at line 925 of file Export.php.

Parameters:
string$string

Definition at line 910 of file Export.php.

DumpOutput::writeRevision ( rev,
string 
)
Parameters:
object$rev
string$string

Definition at line 940 of file Export.php.


The documentation for this class was generated from the following file: