MediaWiki  REL1_22
FetchText Class Reference

Maintenance script used to fetch page text in a subprocess. More...

Inheritance diagram for FetchText:
Collaboration diagram for FetchText:

List of all members.

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.

Detailed Description

Maintenance script used to fetch page text in a subprocess.

Definition at line 32 of file fetchText.php.


Constructor & Destructor Documentation

Reimplemented from Maintenance.

Definition at line 33 of file fetchText.php.


Member Function Documentation

FetchText::doGetText ( db,
id 
) [private]

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

Parameters:
$dbDatabaseBase object
$idint The old_id
Returns:
String

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().


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