Go to the documentation of this file.
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 =
"~{$delUser}";
59 $delAction =
"~{$delAction}";
64 $userDbKey = $userTitle->getDBkey();
66 # Hide name from live edits
69 array(
"rev_deleted = rev_deleted $op $delUser" ),
70 array(
'rev_user' => $userId ),
73 # Hide name from deleted edits
76 array(
"ar_deleted = ar_deleted $op $delUser" ),
84 array(
"log_deleted = log_deleted $op $delUser" ),
85 array(
'log_user' => $userId,
"log_type != 'suppress'" ),
90 array(
"log_deleted = log_deleted $op $delAction" ),
91 array(
'log_namespace' =>
NS_USER,
'log_title' => $userDbKey,
92 "log_type != 'suppress'" ),
99 array(
"rc_deleted = rc_deleted $op $delUser" ),
105 array(
"rc_deleted = rc_deleted $op $delAction" ),
106 array(
'rc_namespace' =>
NS_USER,
'rc_title' => $userDbKey,
'rc_logid > 0' ),
110 # Hide name from live images
113 array(
"oi_deleted = oi_deleted $op $delUser" ),
118 # Hide name from deleted images
121 array(
"fa_deleted = fa_deleted $op $delUser" ),
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
& wfGetDB( $db, $groups=array(), $wiki=false)
Get a Database object.
static unsuppressUserName( $name, $userId, $dbw=null)
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
static makeTitleSafe( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
Allows to change the fields on the form that will be generated $name
Database abstraction object.
Backend functions for suppressing and unsuppressing all references to a given user,...
static setUsernameBitfields( $name, $userId, $op, $dbw)
Update *_deleted bitfields in various tables to hide or unhide usernames.
static suppressUserName( $name, $userId, $dbw=null)