Public Member Functions | |
getId () | |
isAnon () | |
getName () | |
getUserPage () | |
getGroups () | |
addGroup ($group) | |
removeGroup ($group) | |
invalidateCache () | |
Static Public Member Functions | |
static | validDatabase ($database) |
Confirm the selected database name is a valid local interwiki database name. | |
static | whoIs ($database, $id) |
static | newFromId ($database, $id) |
Factory function; get a remote user entry by ID number. | |
static | newFromName ($database, $name) |
static | getDB ($database) |
Open a database connection to work on for the requested user. | |
Private Member Functions | |
__construct ($db, $database, $name, $id) | |
Static Private Member Functions | |
static | newFromLookup ($database, $field, $value) |
Definition at line 8 of file UserRightsProxy.php.
UserRightsProxy::__construct | ( | $ | db, | |
$ | database, | |||
$ | name, | |||
$ | id | |||
) | [private] |
UserRightsProxy::addGroup | ( | $ | group | ) |
Definition at line 111 of file UserRightsProxy.php.
static UserRightsProxy::getDB | ( | $ | database | ) | [static] |
Open a database connection to work on for the requested user.
This may be a new connection to another database for remote users.
$database | string |
Definition at line 68 of file UserRightsProxy.php.
References $database, $wgDBname, $wgLocalDatabases, and wfGetDB().
Referenced by newFromLookup().
UserRightsProxy::getGroups | ( | ) |
UserRightsProxy::getId | ( | ) |
UserRightsProxy::getName | ( | ) |
UserRightsProxy::getUserPage | ( | ) |
UserRightsProxy::invalidateCache | ( | ) |
Definition at line 132 of file UserRightsProxy.php.
References $key, $wgMemc, and wfForeignMemcKey().
UserRightsProxy::isAnon | ( | ) |
static UserRightsProxy::newFromId | ( | $ | database, | |
$ | id | |||
) | [static] |
Factory function; get a remote user entry by ID number.
Definition at line 38 of file UserRightsProxy.php.
References $database, and newFromLookup().
Referenced by whoIs().
static UserRightsProxy::newFromLookup | ( | $ | database, | |
$ | field, | |||
$ | value | |||
) | [static, private] |
Definition at line 46 of file UserRightsProxy.php.
References $database, $db, $row, and getDB().
Referenced by newFromId(), and newFromName().
static UserRightsProxy::newFromName | ( | $ | database, | |
$ | name | |||
) | [static] |
Definition at line 42 of file UserRightsProxy.php.
References $database, $name, and newFromLookup().
Referenced by UserrightsPage::fetchUser().
UserRightsProxy::removeGroup | ( | $ | group | ) |
Definition at line 122 of file UserRightsProxy.php.
static UserRightsProxy::validDatabase | ( | $ | database | ) | [static] |
Confirm the selected database name is a valid local interwiki database name.
Definition at line 20 of file UserRightsProxy.php.
References $database, and $wgLocalDatabases.
Referenced by UserrightsPage::fetchUser().
static UserRightsProxy::whoIs | ( | $ | database, | |
$ | id | |||
) | [static] |
Definition at line 25 of file UserRightsProxy.php.
References $database, $user, and newFromId().
Referenced by UserrightsPage::fetchUser().