MediaWiki
REL1_22
|
Maintenance script used to fetch page text in a subprocess. More...
Public Member Functions | |
__construct () | |
execute () | |
returns a string containing the following in order: textid length of text (-1 on error = failure to retrieve/unserialize/gunzip/etc) text (may be empty) | |
Private Member Functions | |
doGetText ($db, $id) | |
May throw a database error if, say, the server dies during query. |
Maintenance script used to fetch page text in a subprocess.
Definition at line 32 of file fetchText.php.
Reimplemented from Maintenance.
Definition at line 33 of file fetchText.php.
FetchText::doGetText | ( | $ | db, |
$ | id | ||
) | [private] |
May throw a database error if, say, the server dies during query.
$db | DatabaseBase object |
$id | int The old_id |
Definition at line 76 of file fetchText.php.
References array(), and Revision\getRevisionText().
Referenced by execute().
returns a string containing the following in order: textid
length of text (-1 on error = failure to retrieve/unserialize/gunzip/etc)
text (may be empty)
note that that the text string itself is *not* followed by newline
Reimplemented from Maintenance.
Definition at line 48 of file fetchText.php.
References doGetText(), Maintenance\getStdin(), Maintenance\output(), and wfGetDB().