| [ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
BackupDumper that postprocesses XML dumps from dumpBackup.php to add page text Copyright (C) 2005 Brion Vibber <[email protected]> https://www.mediawiki.org/
| File Size: | 854 lines (25 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 1 file maintenance/backup.inc |
TextPassDumper:: (20 methods):
rotateDb()
initProgress()
dump()
processOption()
processFileOpt()
showReport()
setTimeExceeded()
checkIfTimeExceeded()
finalOptionCheck()
readDump()
getText()
getTextDb()
getTextSpawned()
openSpawn()
closeSpawn()
getTextSpawnedOnce()
startElement()
endElement()
characterData()
clearOpenElement()
Class: TextPassDumper - X-Ref
| rotateDb() X-Ref |
| Drop the database connection $this->db and try to get a new one. This function tries to get a /different/ connection if this is possible. Hence, (if this is possible) it switches to a different failover upon each call. This function resets $this->lb and closes all connections on it. |
| initProgress( $history = WikiExporter::FULL ) X-Ref |
| No description |
| dump( $history, $text = WikiExporter::TEXT ) X-Ref |
| No description |
| processOption( $opt, $val, $param ) X-Ref |
| No description |
| processFileOpt( $val, $param ) X-Ref |
| No description |
| showReport() X-Ref |
| Overridden to include prefetch ratio if enabled. |
| setTimeExceeded() X-Ref |
| No description |
| checkIfTimeExceeded() X-Ref |
| No description |
| finalOptionCheck() X-Ref |
| No description |
| readDump( $input ) X-Ref |
param: string $input return: bool |
| getText( $id ) X-Ref |
| Tries to get the revision text for a revision id. Upon errors, retries (Up to $this->maxFailures tries each call). If still no good revision get could be found even after this retrying, "" is returned. If no good revision text could be returned for $this->maxConsecutiveFailedTextRetrievals consecutive calls to getText, MWException is thrown. param: string $id The revision id to get the text for return: string The revision text for $id, or "" |
| getTextDb( $id ) X-Ref |
| May throw a database error if, say, the server dies during query. param: int $id return: bool|string |
| getTextSpawned( $id ) X-Ref |
| No description |
| openSpawn() X-Ref |
| No description |
| closeSpawn() X-Ref |
| No description |
| getTextSpawnedOnce( $id ) X-Ref |
| No description |
| startElement( $parser, $name, $attribs ) X-Ref |
| No description |
| endElement( $parser, $name ) X-Ref |
| No description |
| characterData( $parser, $data ) X-Ref |
| No description |
| clearOpenElement( $style ) X-Ref |
| No description |
| Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |