MediaWiki REL1_32
|
Cut-down copy of User interface for local-interwiki-database user rights manipulation. More...
Public Member Functions | |
addGroup ( $group, $expiry=null) | |
Replaces User::addGroup() | |
getDBName () | |
Accessor for $this->database. | |
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 ( $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) | |
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 29 of file UserRightsProxy.php.
|
private |
IDatabase | $db | Db connection |
string | $database | Database name |
string | $name | User name |
int | $id | User ID |
Definition at line 39 of file UserRightsProxy.php.
References $name.
UserRightsProxy::addGroup | ( | $group, | |
$expiry = null ) |
Replaces User::addGroup()
string | $group | |
string | null | $expiry |
Definition at line 221 of file UserRightsProxy.php.
References wfTimestamp().
|
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 | $database | |
bool | $ignoreInvalidDB | If true, don't check if $database is in $wgLocalDatabases |
Definition at line 151 of file UserRightsProxy.php.
References $wgDBname, DB_MASTER, and wfGetDB().
Referenced by newFromLookup().
UserRightsProxy::getDBName | ( | ) |
Accessor for $this->database.
Definition at line 52 of file UserRightsProxy.php.
UserRightsProxy::getGroupMemberships | ( | ) |
Replaces User::getGroupMemberships()
Definition at line 210 of file UserRightsProxy.php.
UserRightsProxy::getGroups | ( | ) |
UserRightsProxy::getId | ( | ) |
UserRightsProxy::getName | ( | ) |
Same as User::getName()
Definition at line 183 of file UserRightsProxy.php.
Referenced by getUserPage().
UserRightsProxy::getUserPage | ( | ) |
Same as User::getUserPage()
Definition at line 192 of file UserRightsProxy.php.
References getName().
UserRightsProxy::invalidateCache | ( | ) |
Replaces User::touchUser()
Definition at line 272 of file UserRightsProxy.php.
References User\purge().
Referenced by saveSettings().
UserRightsProxy::isAnon | ( | ) |
|
static |
Factory function; get a remote user entry by ID number.
string | $database | Database name |
int | $id | User ID |
bool | $ignoreInvalidDB | If true, don't check if $database is in $wgLocalDatabases |
Definition at line 92 of file UserRightsProxy.php.
References newFromLookup().
Referenced by whoIs().
|
staticprivate |
string | $database | |
string | $field | |
string | $value | |
bool | $ignoreInvalidDB |
Definition at line 115 of file UserRightsProxy.php.
References $value, $wgSharedDB, $wgSharedTables, and getDB().
Referenced by newFromId(), and newFromName().
|
static |
Factory function; get a remote user entry by name.
string | $database | Database name |
string | $name | User name |
bool | $ignoreInvalidDB | If true, don't check if $database is in $wgLocalDatabases |
Definition at line 104 of file UserRightsProxy.php.
References newFromLookup().
Referenced by UserrightsPage\fetchUser().
UserRightsProxy::removeGroup | ( | $group | ) |
Replaces User::removeGroup()
string | $group |
Definition at line 236 of file UserRightsProxy.php.
UserRightsProxy::saveSettings | ( | ) |
Definition at line 253 of file UserRightsProxy.php.
References $rows, $value, and invalidateCache().
UserRightsProxy::setOption | ( | $option, | |
$value ) |
Replaces User::setOption()
string | $option | |
mixed | $value |
Definition at line 249 of file UserRightsProxy.php.
References $value.
|
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 $wgLocalDatabases.
Referenced by UserrightsPage\fetchUser().
|
static |
Same as User::whoIs()
string | $database | Database name |
int | $id | User ID |
bool | $ignoreInvalidDB | If true, don't check if $database is in $wgLocalDatabases |
Definition at line 75 of file UserRightsProxy.php.
References newFromId().
Referenced by UserrightsPage\fetchUser().