MediaWiki
1.33.0
|
Cut-down copy of User interface for local-interwiki-database user rights manipulation. More...
Public Member Functions | |
addGroup ( $group, $expiry=null) | |
Replaces User::addGroup() More... | |
getGroupMemberships () | |
Replaces User::getGroupMemberships() More... | |
getGroups () | |
Replaces User::getUserGroups() More... | |
getId () | |
getName () | |
Same as User::getName() More... | |
getUserPage () | |
Same as User::getUserPage() More... | |
invalidateCache () | |
Replaces User::touchUser() More... | |
isAnon () | |
removeGroup ( $group) | |
Replaces User::removeGroup() More... | |
saveSettings () | |
setOption ( $option, $value) | |
Replaces User::setOption() More... | |
Static Public Member Functions | |
static | getDB ( $wikiId, $ignoreInvalidDB=false) |
Open a database connection to work on for the requested user. More... | |
static | newFromId ( $wikiId, $id, $ignoreInvalidDB=false) |
Factory function; get a remote user entry by ID number. More... | |
static | newFromName ( $wikiId, $name, $ignoreInvalidDB=false) |
Factory function; get a remote user entry by name. More... | |
static | validDatabase ( $wikiId) |
Confirm the selected database name is a valid local interwiki database name. More... | |
static | whoIs ( $wikiId, $id, $ignoreInvalidDB=false) |
Same as User::whoIs() More... | |
Private Member Functions | |
__construct ( $db, $wikiId, $name, $id) | |
Static Private Member Functions | |
static | newFromLookup ( $wikiId, $field, $value, $ignoreInvalidDB=false) |
Private Attributes | |
IDatabase | $db |
int | $id |
string | $name |
array | $newOptions |
string | $wikiId |
Cut-down copy of User interface for local-interwiki-database user rights manipulation.
Definition at line 29 of file UserRightsProxy.php.
|
private |
Definition at line 49 of file UserRightsProxy.php.
UserRightsProxy::addGroup | ( | $group, | |
$expiry = null |
|||
) |
Replaces User::addGroup()
string | $group | |
string | null | $expiry |
Definition at line 220 of file UserRightsProxy.php.
References wfTimestamp().
|
static |
Open a database connection to work on for the requested user.
This may be a new connection to another database for remote users.
string | $wikiId | |
bool | $ignoreInvalidDB | If true, don't check if $wikiId is in $wgLocalDatabases |
Definition at line 151 of file UserRightsProxy.php.
References $wikiId, DB_MASTER, WikiMap\isCurrentWikiId(), and wfGetDB().
Referenced by newFromLookup().
UserRightsProxy::getGroupMemberships | ( | ) |
Replaces User::getGroupMemberships()
Definition at line 209 of file UserRightsProxy.php.
References UserGroupMembership\getMembershipsForUser().
UserRightsProxy::getGroups | ( | ) |
UserRightsProxy::getId | ( | ) |
Definition at line 166 of file UserRightsProxy.php.
References $id.
Referenced by isAnon().
UserRightsProxy::getName | ( | ) |
Same as User::getName()
Definition at line 182 of file UserRightsProxy.php.
Referenced by getUserPage().
UserRightsProxy::getUserPage | ( | ) |
Same as User::getUserPage()
Definition at line 191 of file UserRightsProxy.php.
References getName(), Title\makeTitle(), and NS_USER.
UserRightsProxy::invalidateCache | ( | ) |
Replaces User::touchUser()
Definition at line 271 of file UserRightsProxy.php.
References $id, User\purge(), and use.
Referenced by saveSettings().
UserRightsProxy::isAnon | ( | ) |
|
static |
Factory function; get a remote user entry by ID number.
string | $wikiId | Database name |
int | $id | User ID |
bool | $ignoreInvalidDB | If true, don't check if $wikiId is in $wgLocalDatabases |
Definition at line 93 of file UserRightsProxy.php.
References $id, $wikiId, and newFromLookup().
Referenced by whoIs().
|
staticprivate |
string | $wikiId | |
string | $field | |
string | $value | |
bool | $ignoreInvalidDB |
Definition at line 116 of file UserRightsProxy.php.
References $db, $value, $wgSharedDB, $wgSharedTables, $wikiId, and getDB().
Referenced by newFromId(), and newFromName().
|
static |
Factory function; get a remote user entry by name.
string | $wikiId | Database name |
string | $name | User name |
bool | $ignoreInvalidDB | If true, don't check if $wikiId is in $wgLocalDatabases |
Definition at line 105 of file UserRightsProxy.php.
References $name, $wikiId, and newFromLookup().
Referenced by UserrightsPage\fetchUser().
UserRightsProxy::removeGroup | ( | $group | ) |
Replaces User::removeGroup()
string | $group |
Definition at line 235 of file UserRightsProxy.php.
References UserGroupMembership\getMembership().
UserRightsProxy::saveSettings | ( | ) |
Definition at line 252 of file UserRightsProxy.php.
References $id, $rows, $value, as, and invalidateCache().
UserRightsProxy::setOption | ( | $option, | |
$value | |||
) |
Replaces User::setOption()
string | $option | |
mixed | $value |
Definition at line 248 of file UserRightsProxy.php.
References $value.
|
static |
Confirm the selected database name is a valid local interwiki database name.
string | $wikiId | Database name |
Definition at line 63 of file UserRightsProxy.php.
References $wgLocalDatabases, and $wikiId.
Referenced by UserrightsPage\fetchUser().
|
static |
Same as User::whoIs()
string | $wikiId | Database name |
int | $id | User ID |
bool | $ignoreInvalidDB | If true, don't check if $wikiId is in $wgLocalDatabases |
Definition at line 76 of file UserRightsProxy.php.
References $id, $user, $wikiId, and newFromId().
Referenced by UserrightsPage\fetchUser().
|
private |
Definition at line 31 of file UserRightsProxy.php.
Referenced by __construct(), and newFromLookup().
|
private |
Definition at line 37 of file UserRightsProxy.php.
Referenced by __construct(), getId(), invalidateCache(), newFromId(), saveSettings(), and whoIs().
|
private |
Definition at line 35 of file UserRightsProxy.php.
Referenced by __construct(), and newFromName().
|
private |
Definition at line 39 of file UserRightsProxy.php.
|
private |
Definition at line 33 of file UserRightsProxy.php.
Referenced by __construct(), getDB(), getName(), newFromId(), newFromLookup(), newFromName(), validDatabase(), and whoIs().