TextPassDumper Class Reference
[Maintenance]

Inherits BackupDumper.

List of all members.

Public Member Functions

 dump ()
 processOption ($opt, $val, $param)
 processFileOpt ($val, $param)
 showReport ()
 Overridden to include prefetch ratio if enabled.
 readDump ($input)
 getText ($id)
 openSpawn ()
 startElement ($parser, $name, $attribs)
 endElement ($parser, $name)
 characterData ($parser, $data)
 clearOpenElement ($style)

Public Attributes

 $prefetch = null
 $input = "php://stdin"
 $history = WikiExporter::FULL
 $fetchCount = 0
 $prefetchCount = 0
 $failures = 0
 $maxFailures = 200
 $failureTimeout = 5
 $php = "php"
 $spawn = false
 $spawnProc = false
 $spawnWrite = false
 $spawnRead = false
 $spawnErr = false

Private Member Functions

 doGetText ($id)
 getTextDbSafe ($id)
 Fetch a text revision from the database, retrying in case of failure.
 getTextDb ($id)
 May throw a database error if, say, the server dies during query.
 getTextSpawned ($id)
 closeSpawn ()
 getTextSpawnedOnce ($id)


Detailed Description

Definition at line 102 of file dumpTextPass.php.


Member Function Documentation

TextPassDumper::characterData ( parser,
data 
)

Definition at line 476 of file dumpTextPass.php.

References clearOpenElement().

Referenced by startElement().

TextPassDumper::clearOpenElement ( style  ) 

Definition at line 488 of file dumpTextPass.php.

References Xml::element().

Referenced by characterData(), endElement(), and startElement().

TextPassDumper::closeSpawn (  )  [private]

Definition at line 375 of file dumpTextPass.php.

References wfRestoreWarnings(), and wfSuppressWarnings().

Referenced by dump(), and getTextSpawned().

TextPassDumper::doGetText ( id  )  [private]

Definition at line 267 of file dumpTextPass.php.

References getTextDbSafe(), and getTextSpawned().

Referenced by getText().

TextPassDumper::dump (  ) 

TextPassDumper::endElement ( parser,
name 
)

Definition at line 455 of file dumpTextPass.php.

References $name, and clearOpenElement().

TextPassDumper::getText ( id  ) 

Definition at line 250 of file dumpTextPass.php.

References $text, and doGetText().

Referenced by startElement().

TextPassDumper::getTextDb ( id  )  [private]

May throw a database error if, say, the server dies during query.

Definition at line 307 of file dumpTextPass.php.

References $row, $text, UtfNormal::cleanUp(), and Revision::getRevisionText().

Referenced by getTextDbSafe().

TextPassDumper::getTextDbSafe ( id  )  [private]

Fetch a text revision from the database, retrying in case of failure.

This may survive some transitory errors by reconnecting, but may not survive a long-term server outage.

Definition at line 280 of file dumpTextPass.php.

References $text, getTextDb(), and BackupDumper::progress().

Referenced by doGetText().

TextPassDumper::getTextSpawned ( id  )  [private]

TextPassDumper::getTextSpawnedOnce ( id  )  [private]

Definition at line 392 of file dumpTextPass.php.

References $ok, $text, UtfNormal::cleanUp(), and BackupDumper::progress().

Referenced by getTextSpawned().

TextPassDumper::openSpawn (  ) 

Definition at line 345 of file dumpTextPass.php.

References $cmd, $IP, $spec, $wgDBname, and BackupDumper::progress().

Referenced by getTextSpawned().

TextPassDumper::processFileOpt ( val,
param 
)

Definition at line 176 of file dumpTextPass.php.

Referenced by processOption().

TextPassDumper::processOption ( opt,
val,
param 
)

Reimplemented from BackupDumper.

Definition at line 149 of file dumpTextPass.php.

References $IP, $url, WikiExporter::CURRENT, WikiExporter::FULL, and processFileOpt().

TextPassDumper::readDump ( input  ) 

Definition at line 220 of file dumpTextPass.php.

References $input, $offset, and wfDebug().

Referenced by dump().

TextPassDumper::showReport (  ) 

Overridden to include prefetch ratio if enabled.

Reimplemented from BackupDumper.

Definition at line 194 of file dumpTextPass.php.

References BackupDumper::progress(), BackupDumper::revCount(), wfTime(), wfTimestamp(), and wfWikiID().

TextPassDumper::startElement ( parser,
name,
attribs 
)

Definition at line 427 of file dumpTextPass.php.

References $name, $text, characterData(), clearOpenElement(), and getText().


Member Data Documentation

TextPassDumper::$failures = 0

Definition at line 109 of file dumpTextPass.php.

TextPassDumper::$failureTimeout = 5

Definition at line 111 of file dumpTextPass.php.

TextPassDumper::$fetchCount = 0

Definition at line 106 of file dumpTextPass.php.

TextPassDumper::$history = WikiExporter::FULL

Definition at line 105 of file dumpTextPass.php.

TextPassDumper::$input = "php://stdin"

Definition at line 104 of file dumpTextPass.php.

Referenced by dump(), and readDump().

TextPassDumper::$maxFailures = 200

Definition at line 110 of file dumpTextPass.php.

TextPassDumper::$php = "php"

Definition at line 113 of file dumpTextPass.php.

TextPassDumper::$prefetch = null

Definition at line 103 of file dumpTextPass.php.

TextPassDumper::$prefetchCount = 0

Definition at line 107 of file dumpTextPass.php.

TextPassDumper::$spawn = false

Definition at line 114 of file dumpTextPass.php.

TextPassDumper::$spawnErr = false

Definition at line 118 of file dumpTextPass.php.

TextPassDumper::$spawnProc = false

Definition at line 115 of file dumpTextPass.php.

TextPassDumper::$spawnRead = false

Definition at line 117 of file dumpTextPass.php.

TextPassDumper::$spawnWrite = false

Definition at line 116 of file dumpTextPass.php.


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

Generated on Sat Sep 5 02:08:48 2009 for MediaWiki by  doxygen 1.5.9