UserRightsProxy Class Reference

Cut-down copy of User interface for local-interwiki-database user rights manipulation. More...

List of all members.

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)


Detailed Description

Cut-down copy of User interface for local-interwiki-database user rights manipulation.

Definition at line 8 of file UserRightsProxy.php.


Constructor & Destructor Documentation

UserRightsProxy::__construct ( db,
database,
name,
id 
) [private]

Definition at line 9 of file UserRightsProxy.php.

References $database, $db, and $name.


Member Function Documentation

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.

Parameters:
$database string
Returns:
Database or null if invalid selection

Definition at line 68 of file UserRightsProxy.php.

References $database, $wgDBname, $wgLocalDatabases, and wfGetDB().

Referenced by newFromLookup().

UserRightsProxy::getGroups (  ) 

Definition at line 98 of file UserRightsProxy.php.

References $res, and $row.

UserRightsProxy::getId (  ) 

Definition at line 81 of file UserRightsProxy.php.

Referenced by isAnon().

UserRightsProxy::getName (  ) 

Definition at line 89 of file UserRightsProxy.php.

Referenced by getUserPage().

UserRightsProxy::getUserPage (  ) 

Definition at line 93 of file UserRightsProxy.php.

References getName(), and Title::makeTitle().

UserRightsProxy::invalidateCache (  ) 

Definition at line 132 of file UserRightsProxy.php.

References $key, $wgMemc, and wfForeignMemcKey().

UserRightsProxy::isAnon (  ) 

Definition at line 85 of file UserRightsProxy.php.

References getId().

static UserRightsProxy::newFromId ( database,
id 
) [static]

Factory function; get a remote user entry by ID number.

Returns:
UserRightsProxy or null if doesn't exist

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.

Returns:
bool

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().


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:50 2009 for MediaWiki by  doxygen 1.5.9