MediaWiki  REL1_19
DumpOutput Class Reference

Base class for output stream; prints to stdout or buffer or whereever. 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 whereever.

Definition at line 718 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:
$newnamemixed File name. May be a string or an array with one element
$openbool 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 769 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:
$newnamemixed File name. May be a string or an array with one element

Reimplemented in DumpPipeOutput, and DumpFileOutput.

Definition at line 758 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 777 of file Export.php.

DumpOutput::write ( string)

Override to write to a different stream type.

Returns:
bool

Reimplemented in DumpFileOutput.

Definition at line 747 of file Export.php.

References print.

Referenced by writeClosePage(), writeCloseStream(), writeLogItem(), writeOpenPage(), writeOpenStream(), and writeRevision().

Here is the caller graph for this function:

Definition at line 731 of file Export.php.

References write().

Here is the call graph for this function:

Definition at line 723 of file Export.php.

References write().

Here is the call graph for this function:

DumpOutput::writeLogItem ( rev,
string 
)

Definition at line 739 of file Export.php.

References write().

Here is the call graph for this function:

DumpOutput::writeOpenPage ( page,
string 
)

Definition at line 727 of file Export.php.

References write().

Here is the call graph for this function:

Definition at line 719 of file Export.php.

References write().

Here is the call graph for this function:

DumpOutput::writeRevision ( rev,
string 
)

Definition at line 735 of file Export.php.

References write().

Here is the call graph for this function:


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