|
MediaWiki
REL1_23
|
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, $dbw=null) |
| static | unsuppressUserName ($name, $userId, $dbw=null) |
Static Private Member Functions | |
| static | setUsernameBitfields ($name, $userId, $op, $dbw) |
| 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 32 of file RevisionDeleteUser.php.
| static RevisionDeleteUser::setUsernameBitfields | ( | $ | name, |
| $ | userId, | ||
| $ | op, | ||
| $ | dbw | ||
| ) | [static, private] |
Update *_deleted bitfields in various tables to hide or unhide usernames.
| $name | String username |
| $userId | Int user id |
| $op | String operator '|' or '&' |
| $dbw | null|DatabaseBase, if you happen to have one lying around |
Definition at line 42 of file RevisionDeleteUser.php.
References $name, array(), LogPage\DELETED_ACTION, Revision\DELETED_RESTRICTED, Revision\DELETED_USER, Title\makeTitleSafe(), and wfGetDB().
Referenced by suppressUserName(), and unsuppressUserName().
| static RevisionDeleteUser::suppressUserName | ( | $ | name, |
| $ | userId, | ||
| $ | dbw = null |
||
| ) | [static] |
Definition at line 129 of file RevisionDeleteUser.php.
References $name, and setUsernameBitfields().
| static RevisionDeleteUser::unsuppressUserName | ( | $ | name, |
| $ | userId, | ||
| $ | dbw = null |
||
| ) | [static] |
Definition at line 133 of file RevisionDeleteUser.php.
References $name, and setUsernameBitfields().
Referenced by SpecialUnblock\processUnblock().