MediaWiki REL1_39
HistoryBlobCurStub Class Reference

To speed up conversion from 1.4 to 1.5 schema, text rows can refer to the leftover cur table as the backend. More...

Public Member Functions

 __construct ( $curid=0)
 
 getText ()
 
 setLocation ( $id)
 Sets the location (cur_id) of the main object to which this object points.
 

Public Attributes

int $mCurId
 

Detailed Description

To speed up conversion from 1.4 to 1.5 schema, text rows can refer to the leftover cur table as the backend.

This avoids expensively copying hundreds of megabytes of data during the conversion downtime.

Definition at line 28 of file HistoryBlobCurStub.php.

Constructor & Destructor Documentation

◆ __construct()

HistoryBlobCurStub::__construct (   $curid = 0)
Parameters
int$curidThe cur_id pointed to

Definition at line 35 of file HistoryBlobCurStub.php.

Member Function Documentation

◆ getText()

HistoryBlobCurStub::getText ( )
Returns
string|false

Definition at line 52 of file HistoryBlobCurStub.php.

References $dbr, DB_REPLICA, and wfGetDB().

◆ setLocation()

HistoryBlobCurStub::setLocation (   $id)

Sets the location (cur_id) of the main object to which this object points.

Parameters
int$id

Definition at line 45 of file HistoryBlobCurStub.php.

Member Data Documentation

◆ $mCurId

int HistoryBlobCurStub::$mCurId

Definition at line 30 of file HistoryBlobCurStub.php.


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