row->rc_logid; } protected function getRawParameters() { return $this->row->rc_params; } public function getAssociatedRevId() { return $this->row->rc_this_oldid; } public function getType() { return $this->row->rc_log_type; } public function getSubtype() { return $this->row->rc_log_action; } public function getPerformer() { if ( !$this->performer ) { $actorId = isset( $this->row->rc_actor ) ? (int)$this->row->rc_actor : 0; $userId = (int)$this->row->rc_user; if ( $actorId !== 0 ) { $this->performer = User::newFromActorId( $actorId ); } elseif ( $userId !== 0 ) { $this->performer = User::newFromId( $userId ); } else { $userText = $this->row->rc_user_text; // Might be an IP, don't validate the username $this->performer = User::newFromName( $userText, false ); } } return $this->performer; } public function getTarget() { $namespace = $this->row->rc_namespace; $page = $this->row->rc_title; return Title::makeTitle( $namespace, $page ); } public function getTimestamp() { return wfTimestamp( TS_MW, $this->row->rc_timestamp ); } public function getComment() { return CommentStore::getStore() // Legacy because the row may have used RecentChange::selectFields() ->getCommentLegacy( wfGetDB( DB_REPLICA ), 'rc_comment', $this->row )->text; } public function getDeleted() { return $this->row->rc_deleted; } }