mCurId = $curid; } /** * Sets the location (cur_id) of the main object to which this object * points * * @param int $id */ function setLocation( $id ) { $this->mCurId = $id; } /** * @return string|bool */ function getText() { $dbr = wfGetDB( DB_REPLICA ); $row = $dbr->selectRow( 'cur', [ 'cur_text' ], [ 'cur_id' => $this->mCurId ] ); if ( !$row ) { return false; } return $row->cur_text; } } // phpcs:ignore Generic.CodeAnalysis.UnconditionalIfStatement.Found if ( false ) { // Blobs generated by MediaWiki < 1.5 on PHP 4 were serialized with the // class name coerced to lowercase. We can improve efficiency by adding // autoload entries for the lowercase variants of these classes (T166759). // The code below is never executed, but it is picked up by the AutoloadGenerator // parser, which scans for class_alias() calls. class_alias( HistoryBlobCurStub::class, 'historyblobcurstub' ); }