MediaWiki
master
|
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... | ||||
equals (?UserIdentity $user) | ||||
| ||||
getGroupMemberships () | ||||
Replaces User::getGroupMemberships() More... | ||||
getGroups () | ||||
Replaces User::getUserGroups() More... | ||||
getId ( $wikiId=self::LOCAL) | ||||
getName () | ||||
Same as User::getName() More... | ||||
getUserPage () | ||||
Same as User::getUserPage() More... | ||||
getWikiId () | ||||
Returns the db Domain of the wiki the UserRightsProxy is associated with. More... | ||||
invalidateCache () | ||||
Replaces User::touchUser() More... | ||||
isAnon () | ||||
isRegistered () | ||||
| ||||
removeGroup ( $group) | ||||
Replaces User::removeGroup() More... | ||||
saveSettings () | ||||
setOption ( $option, $value) | ||||
Replaces User::setOption() More... | ||||
![]() | ||||
assertWiki ( $wikiId) | ||||
Throws if $wikiId is different from the return value of getWikiId(). More... | ||||
Static Public Member Functions | |
static | getDB ( $dbDomain, $ignoreInvalidDB=false) |
Open a database connection to work on for the requested user. More... | |
static | newFromId ( $dbDomain, $id, $ignoreInvalidDB=false) |
Factory function; get a remote user entry by ID number. More... | |
static | newFromName ( $dbDomain, $name, $ignoreInvalidDB=false) |
Factory function; get a remote user entry by name. More... | |
static | validDatabase ( $dbDomain) |
Confirm the selected database name is a valid local interwiki database name. More... | |
static | whoIs ( $dbDomain, $id, $ignoreInvalidDB=false) |
Same as User::whoIs() More... | |
Cut-down copy of User interface for local-interwiki-database user rights manipulation.
Definition at line 37 of file UserRightsProxy.php.
UserRightsProxy::addGroup | ( | $group, | |
$expiry = null |
|||
) |
Replaces User::addGroup()
string | $group | |
string | null | $expiry |
Definition at line 240 of file UserRightsProxy.php.
UserRightsProxy::equals | ( | ?UserIdentity | $user | ) |
UserIdentity | null | $user |
Implements MediaWiki\User\UserIdentity.
Definition at line 301 of file UserRightsProxy.php.
|
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 | $dbDomain | |
bool | $ignoreInvalidDB | If true, don't check if $dbDomain is in $wgLocalDatabases |
Definition at line 170 of file UserRightsProxy.php.
References DB_PRIMARY, and wfGetDB().
UserRightsProxy::getGroupMemberships | ( | ) |
Replaces User::getGroupMemberships()
Definition at line 229 of file UserRightsProxy.php.
UserRightsProxy::getGroups | ( | ) |
UserRightsProxy::getId | ( | $wikiId = self::LOCAL | ) |
string | false | $wikiId |
Implements MediaWiki\User\UserIdentity.
Definition at line 186 of file UserRightsProxy.php.
UserRightsProxy::getName | ( | ) |
Same as User::getName()
Implements MediaWiki\User\UserIdentity.
Definition at line 202 of file UserRightsProxy.php.
UserRightsProxy::getUserPage | ( | ) |
Same as User::getUserPage()
Definition at line 211 of file UserRightsProxy.php.
References NS_USER.
UserRightsProxy::getWikiId | ( | ) |
Returns the db Domain of the wiki the UserRightsProxy is associated with.
Implements MediaWiki\DAO\WikiAwareEntity.
Definition at line 321 of file UserRightsProxy.php.
UserRightsProxy::invalidateCache | ( | ) |
Replaces User::touchUser()
Definition at line 292 of file UserRightsProxy.php.
UserRightsProxy::isAnon | ( | ) |
Definition at line 193 of file UserRightsProxy.php.
UserRightsProxy::isRegistered | ( | ) |
Implements MediaWiki\User\UserIdentity.
Definition at line 311 of file UserRightsProxy.php.
|
static |
Factory function; get a remote user entry by ID number.
string | $dbDomain | Database name |
int | $id | User ID |
bool | $ignoreInvalidDB | If true, don't check if $dbDomain is in $wgLocalDatabases |
Definition at line 109 of file UserRightsProxy.php.
Referenced by whoIs().
|
static |
Factory function; get a remote user entry by name.
string | $dbDomain | Database name |
string | $name | User name |
bool | $ignoreInvalidDB | If true, don't check if $dbDomain is in $wgLocalDatabases |
Definition at line 121 of file UserRightsProxy.php.
Referenced by MediaWiki\Specials\SpecialUserRights\fetchUser().
UserRightsProxy::removeGroup | ( | $group | ) |
Replaces User::removeGroup()
string | $group |
Definition at line 255 of file UserRightsProxy.php.
UserRightsProxy::saveSettings | ( | ) |
Definition at line 271 of file UserRightsProxy.php.
UserRightsProxy::setOption | ( | $option, | |
$value | |||
) |
Replaces User::setOption()
string | $option | |
mixed | $value |
Definition at line 267 of file UserRightsProxy.php.
|
static |
Confirm the selected database name is a valid local interwiki database name.
string | $dbDomain | Database name |
Definition at line 78 of file UserRightsProxy.php.
Referenced by MediaWiki\Specials\SpecialUserRights\fetchUser().
|
static |
Same as User::whoIs()
string | $dbDomain | Database name |
int | $id | User ID |
bool | $ignoreInvalidDB | If true, don't check if $dbDomain is in $wgLocalDatabases |
Definition at line 92 of file UserRightsProxy.php.
References newFromId().
Referenced by MediaWiki\Specials\SpecialUserRights\fetchUser().