|
MediaWiki
REL1_19
|
Cut-down copy of User interface for local-interwiki-database user rights manipulation. More...
Public Member Functions | |
| addGroup ($group) | |
| Replaces User::addUserGroup() | |
| getDBName () | |
| Accessor for $this->database. | |
| getGroups () | |
| Replaces User::getUserGroups() | |
| getId () | |
| getName () | |
| Same as User::getName() | |
| getUserPage () | |
| Same as User::getUserPage() | |
| invalidateCache () | |
| Replaces User::touchUser() | |
| isAnon () | |
| removeGroup ($group) | |
| Replaces User::removeUserGroup() | |
| saveSettings () | |
| setOption ($option, $value) | |
| Replaces User::setOption() | |
Static Public Member Functions | |
| static | getDB ($database, $ignoreInvalidDB=false) |
| Open a database connection to work on for the requested user. | |
| static | newFromId ($database, $id, $ignoreInvalidDB=false) |
| Factory function; get a remote user entry by ID number. | |
| static | newFromName ($database, $name, $ignoreInvalidDB=false) |
| Factory function; get a remote user entry by name. | |
| static | validDatabase ($database) |
| Confirm the selected database name is a valid local interwiki database name. | |
| static | whoIs ($database, $id, $ignoreInvalidDB=false) |
| Same as User::whoIs() | |
Private Member Functions | |
| __construct ($db, $database, $name, $id) | |
| Constructor. | |
Static Private Member Functions | |
| static | newFromLookup ($database, $field, $value, $ignoreInvalidDB=false) |
Cut-down copy of User interface for local-interwiki-database user rights manipulation.
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.
| UserRightsProxy::addGroup | ( | $ | group | ) |
Replaces User::addUserGroup()
Definition at line 182 of file UserRightsProxy.php.
| static UserRightsProxy::getDB | ( | $ | database, |
| $ | ignoreInvalidDB = false |
||
| ) | [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 |
| $ignoreInvalidDB | Boolean: if true, don't check if $database is in $wgLocalDatabases |
Definition at line 119 of file UserRightsProxy.php.
References $wgDBname, and wfGetDB().
Referenced by newFromLookup().


Accessor for $this->database.
Definition at line 32 of file UserRightsProxy.php.
Definition at line 135 of file UserRightsProxy.php.
Referenced by isAnon().

Same as User::getName()
Definition at line 151 of file UserRightsProxy.php.
Referenced by getUserPage().

Same as User::getUserPage()
Definition at line 160 of file UserRightsProxy.php.
References getName(), and Title\makeTitle().

Replaces User::touchUser()
Definition at line 230 of file UserRightsProxy.php.
References $wgMemc, and wfForeignMemcKey().
Referenced by saveSettings().


Definition at line 142 of file UserRightsProxy.php.
References getId().

| static UserRightsProxy::newFromId | ( | $ | database, |
| $ | id, | ||
| $ | ignoreInvalidDB = false |
||
| ) | [static] |
Factory function; get a remote user entry by ID number.
| $database | String: database name |
| $id | Integer: user ID |
| $ignoreInvalidDB | Boolean: if true, don't check if $database is in $wgLocalDatabases |
Definition at line 72 of file UserRightsProxy.php.
References newFromLookup().
Referenced by whoIs().


| static UserRightsProxy::newFromLookup | ( | $ | database, |
| $ | field, | ||
| $ | value, | ||
| $ | ignoreInvalidDB = false |
||
| ) | [static, private] |
| $database | |
| $field | |
| $value | |
| $ignoreInvalidDB | bool |
Definition at line 95 of file UserRightsProxy.php.
References getDB().
Referenced by newFromId(), and newFromName().


| static UserRightsProxy::newFromName | ( | $ | database, |
| $ | name, | ||
| $ | ignoreInvalidDB = false |
||
| ) | [static] |
Factory function; get a remote user entry by name.
| $database | String: database name |
| $name | String: user name |
| $ignoreInvalidDB | Boolean: if true, don't check if $database is in $wgLocalDatabases |
Definition at line 84 of file UserRightsProxy.php.
References newFromLookup().
Referenced by UserrightsPage\fetchUser().


| UserRightsProxy::removeGroup | ( | $ | group | ) |
Replaces User::removeUserGroup()
Definition at line 195 of file UserRightsProxy.php.
Definition at line 211 of file UserRightsProxy.php.
References $rows, and invalidateCache().

| UserRightsProxy::setOption | ( | $ | option, |
| $ | value | ||
| ) |
Replaces User::setOption()
Definition at line 207 of file UserRightsProxy.php.
| static UserRightsProxy::validDatabase | ( | $ | database | ) | [static] |
Confirm the selected database name is a valid local interwiki database name.
| $database | String: database name |
Definition at line 42 of file UserRightsProxy.php.
References $wgLocalDatabases.
Referenced by UserrightsPage\fetchUser().

| static UserRightsProxy::whoIs | ( | $ | database, |
| $ | id, | ||
| $ | ignoreInvalidDB = false |
||
| ) | [static] |
Same as User::whoIs()
| $database | String: database name |
| $id | Integer: user ID |
| $ignoreInvalidDB | Boolean: if true, don't check if $database is in $wgLocalDatabases |
Definition at line 55 of file UserRightsProxy.php.
References $user, and newFromId().
Referenced by UserrightsPage\fetchUser().

