Public Member Functions | |
getDBName () | |
Accessor for $this->database. | |
getId () | |
isAnon () | |
getName () | |
Same as User::getName(). | |
getUserPage () | |
Same as User::getUserPage(). | |
getGroups () | |
Replaces User::getUserGroups(). | |
addGroup ($group) | |
Replaces User::addUserGroup(). | |
removeGroup ($group) | |
Replaces User::removeUserGroup(). | |
invalidateCache () | |
Replaces User::touchUser(). | |
Static Public Member Functions | |
static | validDatabase ($database) |
Confirm the selected database name is a valid local interwiki database name. | |
static | whoIs ($database, $id) |
Same as User::whoIs(). | |
static | newFromId ($database, $id) |
Factory function; get a remote user entry by ID number. | |
static | newFromName ($database, $name) |
Factory function; get a remote user entry by name. | |
static | getDB ($database) |
Open a database connection to work on for the requested user. | |
Private Member Functions | |
__construct ($db, $database, $name, $id) | |
Constructor. | |
Static Private Member Functions | |
static | newFromLookup ($database, $field, $value) |
Definition at line 7 of file UserRightsProxy.php.
UserRightsProxy::__construct | ( | $ | db, | |
$ | database, | |||
$ | name, | |||
$ | id | |||
) | [private] |
Constructor.
$db | DatabaseBase: db connection | |
$database | String: database name | |
$name | String: user name | |
$id | Integer: user ID |
Definition at line 19 of file UserRightsProxy.php.
References $name.
UserRightsProxy::addGroup | ( | $ | group | ) |
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 107 of file UserRightsProxy.php.
References $wgDBname, $wgLocalDatabases, and wfGetDB().
Referenced by newFromLookup().
UserRightsProxy::getDBName | ( | ) |
Accessor for $this->database.
Definition at line 31 of file UserRightsProxy.php.
UserRightsProxy::getGroups | ( | ) |
Replaces User::getUserGroups().
Definition at line 149 of file UserRightsProxy.php.
References $res.
UserRightsProxy::getId | ( | ) |
UserRightsProxy::getName | ( | ) |
Same as User::getName().
Definition at line 133 of file UserRightsProxy.php.
Referenced by getUserPage().
UserRightsProxy::getUserPage | ( | ) |
Same as User::getUserPage().
Definition at line 142 of file UserRightsProxy.php.
References getName(), and Title::makeTitle().
UserRightsProxy::invalidateCache | ( | ) |
Replaces User::touchUser().
Definition at line 189 of file UserRightsProxy.php.
References $wgMemc, and wfForeignMemcKey().
UserRightsProxy::isAnon | ( | ) |
static UserRightsProxy::newFromId | ( | $ | database, | |
$ | id | |||
) | [static] |
Factory function; get a remote user entry by ID number.
$database | String: database name | |
$id | Integer: user ID |
Definition at line 69 of file UserRightsProxy.php.
References newFromLookup().
Referenced by whoIs().
static UserRightsProxy::newFromLookup | ( | $ | database, | |
$ | field, | |||
$ | value | |||
) | [static, private] |
Definition at line 84 of file UserRightsProxy.php.
References getDB().
Referenced by newFromId(), and newFromName().
static UserRightsProxy::newFromName | ( | $ | database, | |
$ | name | |||
) | [static] |
Factory function; get a remote user entry by name.
$database | String: database name | |
$name | String: user name |
Definition at line 80 of file UserRightsProxy.php.
References $name, and newFromLookup().
Referenced by UserrightsPage::fetchUser().
UserRightsProxy::removeGroup | ( | $ | group | ) |
static UserRightsProxy::validDatabase | ( | $ | database | ) | [static] |
Confirm the selected database name is a valid local interwiki database name.
$database | String: database name |
Definition at line 41 of file UserRightsProxy.php.
References $wgLocalDatabases.
Referenced by UserrightsPage::fetchUser().
static UserRightsProxy::whoIs | ( | $ | database, | |
$ | id | |||
) | [static] |
Same as User::whoIs().
$database | String: database name | |
$id | Integer: user ID |
Definition at line 53 of file UserRightsProxy.php.
References newFromId().
Referenced by UserrightsPage::fetchUser().