MediaWiki REL1_37
|
Backend functions for suppressing and unsuppressing all references to a given user, used when blocking with HideUser enabled. More...
Static Public Member Functions | |
static | suppressUserName ( $name, $userId, IDatabase $dbw=null) |
static | unsuppressUserName ( $name, $userId, IDatabase $dbw=null) |
Static Private Member Functions | |
static | buildSetBitDeletedField ( $field, $op, $value, IDatabase $dbw) |
static | setUsernameBitfields ( $name, $userId, $op, IDatabase $dbw=null) |
Update *_deleted bitfields in various tables to hide or unhide usernames. | |
Backend functions for suppressing and unsuppressing all references to a given user, used when blocking with HideUser enabled.
This was spun out of SpecialBlockip.php in 1.18; at some point it needs to be rewritten to either use RevisionDelete abstraction, or at least schema abstraction.
Definition at line 35 of file RevisionDeleteUser.php.
|
staticprivate |
Definition at line 161 of file RevisionDeleteUser.php.
References Wikimedia\Rdbms\IDatabase\bitAnd(), and Wikimedia\Rdbms\IDatabase\bitOr().
|
staticprivate |
Update *_deleted bitfields in various tables to hide or unhide usernames.
string | $name | Username |
int | $userId | User id |
string | $op | Operator '|' or '&' |
null | IDatabase | $dbw | If you happen to have one lying around |
Definition at line 46 of file RevisionDeleteUser.php.
References $wgActorTableSchemaMigrationStage, DB_PRIMARY, LogPage\DELETED_ACTION, NS_USER, SCHEMA_COMPAT_READ_TEMP, and wfGetDB().
|
static |
string | $name | User name |
int | $userId | Both user name and ID must be provided |
IDatabase | null | $dbw | If you happen to have one lying around |
Definition at line 173 of file RevisionDeleteUser.php.
|
static |
string | $name | User name |
int | $userId | Both user name and ID must be provided |
IDatabase | null | $dbw | If you happen to have one lying around |
Definition at line 183 of file RevisionDeleteUser.php.