|
MediaWiki
REL1_23
|
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 27 of file UserRightsProxy.php.
| UserRightsProxy::__construct | ( | $ | db, |
| $ | database, | ||
| $ | name, | ||
| $ | id | ||
| ) | [private] |
Constructor.
| $db | DatabaseBase: db connection | |
| string | $database | database name |
| string | $name | user name |
| $id | Integer: user ID |
Definition at line 39 of file UserRightsProxy.php.
| UserRightsProxy::addGroup | ( | $ | group | ) |
Replaces User::addUserGroup()
Definition at line 203 of file UserRightsProxy.php.
References array().
| 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 139 of file UserRightsProxy.php.
References $wgDBname, array(), global, and wfGetDB().
Referenced by newFromLookup().
Accessor for $this->database.
Definition at line 52 of file UserRightsProxy.php.
References database.
Same as User::getName()
Definition at line 171 of file UserRightsProxy.php.
References database, and name.
Referenced by getUserPage().
Same as User::getUserPage()
Definition at line 180 of file UserRightsProxy.php.
References getName(), and Title\makeTitle().
Replaces User::touchUser()
Definition at line 251 of file UserRightsProxy.php.
References $key, $wgMemc, array(), database, global, and wfForeignMemcKey().
Referenced by saveSettings().
| static UserRightsProxy::newFromId | ( | $ | database, |
| $ | id, | ||
| $ | ignoreInvalidDB = false |
||
| ) | [static] |
Factory function; get a remote user entry by ID number.
| string | $database | database name |
| $id | Integer: user ID | |
| $ignoreInvalidDB | Boolean: if true, don't check if $database is in $wgLocalDatabases |
Definition at line 92 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 115 of file UserRightsProxy.php.
References $value, array(), and getDB().
Referenced by newFromId(), and newFromName().
| static UserRightsProxy::newFromName | ( | $ | database, |
| $ | name, | ||
| $ | ignoreInvalidDB = false |
||
| ) | [static] |
Factory function; get a remote user entry by name.
| string | $database | database name |
| string | $name | user name |
| $ignoreInvalidDB | Boolean: if true, don't check if $database is in $wgLocalDatabases |
Definition at line 104 of file UserRightsProxy.php.
References $name, and newFromLookup().
Referenced by UserrightsPage\fetchUser().
| UserRightsProxy::removeGroup | ( | $ | group | ) |
Replaces User::removeUserGroup()
Definition at line 216 of file UserRightsProxy.php.
References array().
Definition at line 232 of file UserRightsProxy.php.
References $value, array(), as, and invalidateCache().
| UserRightsProxy::setOption | ( | $ | option, |
| $ | value | ||
| ) |
| static UserRightsProxy::validDatabase | ( | $ | database | ) | [static] |
Confirm the selected database name is a valid local interwiki database name.
| string | $database | database name |
Definition at line 62 of file UserRightsProxy.php.
References global.
Referenced by UserrightsPage\fetchUser().
| static UserRightsProxy::whoIs | ( | $ | database, |
| $ | id, | ||
| $ | ignoreInvalidDB = false |
||
| ) | [static] |
Same as User::whoIs()
| string | $database | database name |
| $id | Integer: user ID | |
| $ignoreInvalidDB | Boolean: if true, don't check if $database is in $wgLocalDatabases |
Definition at line 75 of file UserRightsProxy.php.
References $user, and newFromId().
Referenced by UserrightsPage\fetchUser().