[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/maintenance/ -> fetchText.php (summary)

Communications protocol. This is used by dumpTextPass.php when the --spawn option is present. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 91 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 maintenance/Maintenance.php

Defines 1 class

FetchText:: (3 methods):
  __construct()
  execute()
  doGetText()


Class: FetchText  - X-Ref

Maintenance script used to fetch page text in a subprocess.

__construct()   X-Ref
No description

execute()   X-Ref
returns a string containing the following in order:
textid
\n
length of text (-1 on error = failure to retrieve/unserialize/gunzip/etc)
\n
text  (may be empty)

note that that the text string itself is *not* followed by newline

doGetText( $db, $id )   X-Ref
May throw a database error if, say, the server dies during query.

param: DatabaseBase $db
param: int $id The old_id
return: string



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1