34 private $commentStore;
51 parent::__construct( $context,
$page,
$ids, $lbFactory );
52 $this->commentStore = $commentStore;
64 return 'deletelogentry';
78 if ( $result->numRows() == 1 ) {
91 $ids = array_map(
'intval', $this->ids );
93 $commentQuery = $this->commentStore->getJoin(
'log_comment' );
96 'tables' => [
'logging',
'actor' ] + $commentQuery[
'tables'],
108 'log_user' =>
'actor_user',
109 'log_user_text' =>
'actor_name'
110 ] + $commentQuery[
'fields'],
111 'conds' => [
'log_id' =>
$ids ],
112 'options' => [
'ORDER BY' => [
'log_timestamp DESC',
'log_id DESC' ] ],
114 'actor' => [
'JOIN',
'actor_id=log_actor' ]
115 ] + $commentQuery[
'joins'],
119 $queryInfo[
'tables'],
120 $queryInfo[
'fields'],
122 $queryInfo[
'join_conds'],
123 $queryInfo[
'options'],
128 $queryInfo[
'tables'],
129 $queryInfo[
'fields'],
132 $queryInfo[
'options'],
133 $queryInfo[
'join_conds']
138 return new RevDelLogItem( $this, $row, $this->commentStore );
142 return RevisionRecord::DELETED_RESTRICTED;
151 '4::ids' => $params[
'ids'],
152 '5::ofield' => $params[
'oldBits'],
153 '6::nfield' => $params[
'newBits'],
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
Item class for a logging table row.
List for logging table items.
getLogParams( $params)
Get log parameter array.
getLogAction()
Get the log action for this list type.
static getRestriction()
Get the user right required for this list type Override this function.
getSuppressBit()
Get the integer value of the flag used for suppression.
static getRelationType()
Get the DB field name associated with the ID list.
getType()
Get the internal type name of this list.
static suggestTarget( $target, array $ids)
Suggest a target for the revision deletion Optionally override this function.
static getRevdelConstant()
Get the revision deletion constant for this list type Override this function.
newItem( $row)
Create an item object from a DB result row.
__construct(IContextSource $context, PageIdentity $page, array $ids, LBFactory $lbFactory, CommentStore $commentStore)
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.