MediaWiki REL1_35
|
Cut-down copy of User interface for local-interwiki-database user rights manipulation. More...
Public Member Functions | |
addGroup ( $group, $expiry=null) | |
Replaces User::addGroup() | |
getGroupMemberships () | |
Replaces User::getGroupMemberships() | |
getGroups () | |
Replaces User::getUserGroups() | |
getId () | |
getName () | |
Same as User::getName() | |
getUserPage () | |
Same as User::getUserPage() | |
invalidateCache () | |
Replaces User::touchUser() | |
isAnon () | |
removeGroup ( $group) | |
Replaces User::removeGroup() | |
saveSettings () | |
setOption ( $option, $value) | |
Replaces User::setOption() | |
Static Public Member Functions | |
static | getDB ( $dbDomain, $ignoreInvalidDB=false) |
Open a database connection to work on for the requested user. | |
static | newFromId ( $dbDomain, $id, $ignoreInvalidDB=false) |
Factory function; get a remote user entry by ID number. | |
static | newFromName ( $dbDomain, $name, $ignoreInvalidDB=false) |
Factory function; get a remote user entry by name. | |
static | validDatabase ( $dbDomain) |
Confirm the selected database name is a valid local interwiki database name. | |
static | whoIs ( $dbDomain, $id, $ignoreInvalidDB=false) |
Same as User::whoIs() | |
Private Member Functions | |
__construct ( $db, $dbDomain, $name, $id) | |
Static Private Member Functions | |
static | newFromLookup ( $dbDomain, $field, $value, $ignoreInvalidDB=false) |
Private Attributes | |
IDatabase | $db |
string | $dbDomain |
int | $id |
string | $name |
array | $newOptions |
UserGroupManager | $userGroupManager |
Cut-down copy of User interface for local-interwiki-database user rights manipulation.
Definition at line 32 of file UserRightsProxy.php.
|
private |
IDatabase | $db | Db connection |
string | $dbDomain | Database name |
string | $name | User name |
int | $id | User ID |
Definition at line 54 of file UserRightsProxy.php.
UserRightsProxy::addGroup | ( | $group, | |
$expiry = null |
|||
) |
Replaces User::addGroup()
string | $group | |
string | null | $expiry |
Definition at line 233 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 159 of file UserRightsProxy.php.
UserRightsProxy::getGroupMemberships | ( | ) |
Replaces User::getGroupMemberships()
Definition at line 217 of file UserRightsProxy.php.
UserRightsProxy::getGroups | ( | ) |
UserRightsProxy::getId | ( | ) |
Definition at line 174 of file UserRightsProxy.php.
References $id.
Referenced by addGroup(), getGroupMemberships(), isAnon(), and removeGroup().
UserRightsProxy::getName | ( | ) |
Same as User::getName()
Definition at line 190 of file UserRightsProxy.php.
References $dbDomain.
Referenced by addGroup(), getGroupMemberships(), getUserPage(), and removeGroup().
UserRightsProxy::getUserPage | ( | ) |
UserRightsProxy::invalidateCache | ( | ) |
Replaces User::touchUser()
Definition at line 289 of file UserRightsProxy.php.
References $id, and User\purge().
Referenced by saveSettings().
UserRightsProxy::isAnon | ( | ) |
|
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 101 of file UserRightsProxy.php.
References $dbDomain, $id, and newFromLookup().
Referenced by whoIs().
|
staticprivate |
string | $dbDomain | |
string | $field | |
string | $value | |
bool | $ignoreInvalidDB |
Definition at line 124 of file UserRightsProxy.php.
References $db, $dbDomain, $wgSharedDB, $wgSharedTables, and getDB().
Referenced by newFromId(), and newFromName().
|
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 113 of file UserRightsProxy.php.
References $dbDomain, $name, and newFromLookup().
Referenced by UserrightsPage\fetchUser().
UserRightsProxy::removeGroup | ( | $group | ) |
Replaces User::removeGroup()
string | $group |
Definition at line 250 of file UserRightsProxy.php.
UserRightsProxy::saveSettings | ( | ) |
Definition at line 268 of file UserRightsProxy.php.
References $id, and invalidateCache().
UserRightsProxy::setOption | ( | $option, | |
$value | |||
) |
Replaces User::setOption()
string | $option | |
mixed | $value |
Definition at line 264 of file UserRightsProxy.php.
|
static |
Confirm the selected database name is a valid local interwiki database name.
string | $dbDomain | Database name |
Definition at line 71 of file UserRightsProxy.php.
References $dbDomain, and $wgLocalDatabases.
Referenced by UserrightsPage\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 84 of file UserRightsProxy.php.
References $dbDomain, $id, and newFromId().
Referenced by UserrightsPage\fetchUser().
|
private |
Definition at line 34 of file UserRightsProxy.php.
Referenced by __construct(), and newFromLookup().
|
private |
Definition at line 36 of file UserRightsProxy.php.
Referenced by __construct(), getDB(), getName(), newFromId(), newFromLookup(), newFromName(), validDatabase(), and whoIs().
|
private |
Definition at line 40 of file UserRightsProxy.php.
Referenced by __construct(), getId(), invalidateCache(), newFromId(), saveSettings(), and whoIs().
|
private |
Definition at line 38 of file UserRightsProxy.php.
Referenced by __construct(), and newFromName().
|
private |
Definition at line 42 of file UserRightsProxy.php.
|
private |
Definition at line 44 of file UserRightsProxy.php.