|
MediaWiki
master
|
A CentralIdLookup provider that just uses local IDs. More...


Public Member Functions | |
| isAttached (User $user, $wikiId=null) | |
| lookupCentralIds (array $idToName, $audience=self::AUDIENCE_PUBLIC, $flags=self::READ_NORMAL) | |
| lookupUserNames (array $nameToId, $audience=self::AUDIENCE_PUBLIC, $flags=self::READ_NORMAL) | |
Public Member Functions inherited from CentralIdLookup | |
| centralIdFromLocalUser (User $user, $audience=self::AUDIENCE_PUBLIC, $flags=self::READ_NORMAL) | |
| Given a local User object, return the central ID. More... | |
| centralIdFromName ($name, $audience=self::AUDIENCE_PUBLIC, $flags=self::READ_NORMAL) | |
| Given a (local) user name, return the central ID. More... | |
| getProviderId () | |
| isAttached (User $user, $wikiId=null) | |
| Check that a User is attached on the specified wiki. More... | |
| localUserFromCentralId ($id, $audience=self::AUDIENCE_PUBLIC, $flags=self::READ_NORMAL) | |
| Given a central user ID, return a local User object. More... | |
| lookupCentralIds (array $idToName, $audience=self::AUDIENCE_PUBLIC, $flags=self::READ_NORMAL) | |
| Given central user IDs, return the (local) user names. More... | |
| lookupUserNames (array $nameToId, $audience=self::AUDIENCE_PUBLIC, $flags=self::READ_NORMAL) | |
| Given (local) user names, return the central IDs. More... | |
| nameFromCentralId ($id, $audience=self::AUDIENCE_PUBLIC, $flags=self::READ_NORMAL) | |
| Given a central user ID, return the (local) user name. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from CentralIdLookup | |
| static | factory ($providerId=null) |
| Fetch a CentralIdLookup. More... | |
| static | resetCache () |
| Reset internal cache for unit testing. More... | |
Public Attributes inherited from CentralIdLookup | |
| const | AUDIENCE_PUBLIC = 1 |
| const | AUDIENCE_RAW = 2 |
Public Attributes inherited from IDBAccessObject | |
| const | READ_EXCLUSIVE = 7 |
| const | READ_LATEST = 1 |
| const | READ_LOCKING = 3 |
| const | READ_NONE = -1 |
| const | READ_NORMAL = 0 |
Protected Member Functions inherited from CentralIdLookup | |
| checkAudience ($audience) | |
| Check that the "audience" parameter is valid. More... | |
A CentralIdLookup provider that just uses local IDs.
Useful if the wiki isn't part of a cluster or you're using shared user tables.
Definition at line 33 of file LocalIdLookup.php.
| LocalIdLookup::isAttached | ( | User | $user, |
$wikiId = null |
|||
| ) |
Definition at line 35 of file LocalIdLookup.php.
References $wgLocalDatabases, $wgSharedDB, $wgSharedTables, User\getId(), global, and wfWikiID().
| LocalIdLookup::lookupCentralIds | ( | array | $idToName, |
$audience = self::AUDIENCE_PUBLIC, |
|||
$flags = self::READ_NORMAL |
|||
| ) |
| LocalIdLookup::lookupUserNames | ( | array | $nameToId, |
$audience = self::AUDIENCE_PUBLIC, |
|||
$flags = self::READ_NORMAL |
|||
| ) |