* @return array
*/
public static function getSelectQueryData() {
- $commentQuery = CommentStore::newKey( 'log_comment' )->getJoin();
+ $commentQuery = CommentStore::getStore()->getJoin( 'log_comment' );
$tables = [ 'logging', 'user' ] + $commentQuery['tables'];
$fields = [
public function getParameters() {
if ( !isset( $this->params ) ) {
$blob = $this->getRawParameters();
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
$params = LogEntryBase::extractParams( $blob );
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
if ( $params !== false ) {
$this->params = $params;
$this->legacy = false;
}
public function getComment() {
- return CommentStore::newKey( 'log_comment' )->getComment( $this->row )->text;
+ return CommentStore::getStore()->getComment( 'log_comment', $this->row )->text;
}
public function getDeleted() {
}
public function getComment() {
- return CommentStore::newKey( 'rc_comment' )
+ return CommentStore::getStore()
// Legacy because the row may have used RecentChange::selectFields()
- ->getCommentLegacy( wfGetDB( DB_REPLICA ), $this->row )->text;
+ ->getCommentLegacy( wfGetDB( DB_REPLICA ), 'rc_comment', $this->row )->text;
}
public function getDeleted() {
if ( isset( $this->deleted ) ) {
$data['log_deleted'] = $this->deleted;
}
- $data += CommentStore::newKey( 'log_comment' )->insert( $dbw, $comment );
+ $data += CommentStore::getStore()->insert( $dbw, 'log_comment', $comment );
$dbw->insert( 'logging', $data, __METHOD__ );
$this->id = $dbw->insertId();