29 private $commentStore;
49 parent::__construct( $context,
$page,
$ids, $lbFactory );
50 $this->commentStore = $commentStore;
51 $this->logFormatterFactory = $logFormatterFactory;
66 return 'deletelogentry';
71 return LogPage::DELETED_ACTION;
77 $result = $dbr->newSelectQueryBuilder()
78 ->select(
'log_type' )
81 ->where( [
'log_id' =>
$ids ] )
82 ->caller( __METHOD__ )->fetchResultSet();
83 if ( $result->numRows() == 1 ) {
96 $ids = array_map(
'intval', $this->ids );
97 $queryBuilder = $db->newSelectQueryBuilder()
109 'log_user' =>
'actor_user',
110 'log_user_text' =>
'actor_name',
111 'log_comment_text' =>
'comment_log_comment.comment_text',
112 'log_comment_data' =>
'comment_log_comment.comment_data',
113 'log_comment_cid' =>
'comment_log_comment.comment_id'
116 ->join(
'actor',
null,
'actor_id=log_actor' )
117 ->join(
'comment',
'comment_log_comment',
'comment_log_comment.comment_id = log_comment_id' )
118 ->where( [
'log_id' =>
$ids ] )
119 ->orderBy( [
'log_timestamp',
'log_id' ], SelectQueryBuilder::SORT_DESC );
123 return $queryBuilder->caller( __METHOD__ )->fetchResultSet();
133 $this->logFormatterFactory
145 '4::ids' => $params[
'ids'],
146 '5::ofield' => $params[
'oldBits'],
147 '6::nfield' => $params[
'newBits'],
153class_alias( RevDelLogList::class,
'RevDelLogList' );
Class to simplify the use of log pages.
Parent class for all special pages.
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name If you don't need a full Title object,...
Interface for objects which can provide a MediaWiki context on request.
Interface for objects (potentially) representing an editable wiki page.