41 parent::__construct( $context,
$page,
$ids, $lbFactory );
56 return 'deletelogentry';
61 return LogPage::DELETED_ACTION;
67 $result = $dbr->newSelectQueryBuilder()
68 ->select(
'log_type' )
71 ->where( [
'log_id' =>
$ids ] )
72 ->caller( __METHOD__ )->fetchResultSet();
73 if ( $result->numRows() == 1 ) {
86 $ids = array_map(
'intval', $this->ids );
87 $queryBuilder = $db->newSelectQueryBuilder()
99 'log_user' =>
'actor_user',
100 'log_user_text' =>
'actor_name',
101 'log_comment_text' =>
'comment_log_comment.comment_text',
102 'log_comment_data' =>
'comment_log_comment.comment_data',
103 'log_comment_cid' =>
'comment_log_comment.comment_id'
106 ->join(
'actor',
null,
'actor_id=log_actor' )
107 ->join(
'comment',
'comment_log_comment',
'comment_log_comment.comment_id = log_comment_id' )
108 ->where( [
'log_id' =>
$ids ] )
109 ->orderBy( [
'log_timestamp',
'log_id' ], SelectQueryBuilder::SORT_DESC );
112 ->addTagsToDisplayQuery( $queryBuilder,
'logging', $this->
getAuthority() );
114 return $queryBuilder->caller( __METHOD__ )->fetchResultSet();
124 $this->logFormatterFactory,
125 $this->changeTagsFormatter
137 '4::ids' => $params[
'ids'],
138 '5::ofield' => $params[
'oldBits'],
139 '6::nfield' => $params[
'newBits'],
145class_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.