MediaWiki  1.23.14
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. More...
 

Public Attributes

 $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.

Serialized HistoryBlobCurStub objects will be inserted into the text table on conversion if $wgLegacySchemaConversion is set to true.

Definition at line 297 of file HistoryBlob.php.

Constructor & Destructor Documentation

◆ __construct()

HistoryBlobCurStub::__construct (   $curid = 0)
Parameters
$curidInteger: the cur_id pointed to

Definition at line 303 of file HistoryBlob.php.

Member Function Documentation

◆ getText()

HistoryBlobCurStub::getText ( )
Returns
string|bool

Definition at line 320 of file HistoryBlob.php.

References $dbr, array(), DB_SLAVE, and wfGetDB().

◆ setLocation()

HistoryBlobCurStub::setLocation (   $id)

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

Parameters
$idint

Definition at line 313 of file HistoryBlob.php.

Member Data Documentation

◆ $mCurId

HistoryBlobCurStub::$mCurId

Definition at line 298 of file HistoryBlob.php.


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