43 if ( !$userId || ( $op !==
'|' && $op !==
'&' ) ) {
50 # To suppress, we OR the current bitfields with Revision::DELETED_USER
51 # to put a 1 in the username *_deleted bit. To unsuppress we AND the
52 # current bitfields with the inverse of Revision::DELETED_USER. The
53 # username bit is made to 0 (x & 0 = 0), while others are unchanged (x & 1 = x).
54 # The same goes for the sysop-restricted *_deleted bit.
58 $delUser = $dbw->bitNot( $delUser );
59 $delAction = $dbw->bitNot( $delAction );
64 $userDbKey = $userTitle->getDBkey();
66 # Hide name from live edits
69 [ self::buildSetBitDeletedField(
'rev_deleted', $op, $delUser, $dbw ) ],
70 [
'rev_user' => $userId ],
73 # Hide name from deleted edits
76 [ self::buildSetBitDeletedField(
'ar_deleted', $op, $delUser, $dbw ) ],
77 [
'ar_user_text' =>
$name ],
84 [ self::buildSetBitDeletedField(
'log_deleted', $op, $delUser, $dbw ) ],
85 [
'log_user' => $userId,
'log_type != ' . $dbw->addQuotes(
'suppress' ) ],
90 [ self::buildSetBitDeletedField(
'log_deleted', $op, $delAction, $dbw ) ],
91 [
'log_namespace' =>
NS_USER,
'log_title' => $userDbKey,
92 'log_type != ' . $dbw->addQuotes(
'suppress' ) ],
99 [ self::buildSetBitDeletedField(
'rc_deleted', $op, $delUser, $dbw ) ],
100 [
'rc_user_text' =>
$name ],
105 [ self::buildSetBitDeletedField(
'rc_deleted', $op, $delAction, $dbw ) ],
106 [
'rc_namespace' =>
NS_USER,
'rc_title' => $userDbKey,
'rc_logid > 0' ],
110 # Hide name from live images
113 [ self::buildSetBitDeletedField(
'oi_deleted', $op, $delUser, $dbw ) ],
114 [
'oi_user_text' =>
$name ],
118 # Hide name from deleted images
121 [ self::buildSetBitDeletedField(
'fa_deleted', $op, $delUser, $dbw ) ],
122 [
'fa_user_text' =>
$name ],