$db = wfGetDB( DB_SLAVE );
$stdin = $this->getStdin();
while ( !feof( $stdin ) ) {
$db = wfGetDB( DB_SLAVE );
$stdin = $this->getStdin();
while ( !feof( $stdin ) ) {
}
$textId = intval( $line );
$text = $this->doGetText( $db, $textId );
}
$textId = intval( $line );
$text = $this->doGetText( $db, $textId );