MediaWiki
1.33.0
|
Public Member Functions | |
__construct (ILoadBalancer $lb, BagOStuff $cache) | |
OATHUserRepository constructor. More... | |
findByUser (User $user) | |
persist (OATHUser $user, $clientInfo) | |
remove (OATHUser $user, $clientInfo) | |
setLogger (LoggerInterface $logger) | |
Protected Attributes | |
BagOStuff | $cache |
ILoadBalancer | $lb |
Private Member Functions | |
getDB ( $index) | |
Private Attributes | |
LoggerInterface | $logger |
Definition at line 23 of file OATHUserRepository.php.
OATHUserRepository::__construct | ( | ILoadBalancer | $lb, |
BagOStuff | $cache | ||
) |
OATHUserRepository constructor.
ILoadBalancer | $lb | |
BagOStuff | $cache |
Definition at line 38 of file OATHUserRepository.php.
References $cache, $lb, cache, and setLogger().
OATHUserRepository::findByUser | ( | User | $user | ) |
User | $user |
Definition at line 56 of file OATHUserRepository.php.
References $res, $user, cache, DB_REPLICA, CentralIdLookup\factory(), getDB(), and User\getName().
Referenced by persist().
|
private |
int | $index | DB_MASTER/DB_REPLICA |
Definition at line 137 of file OATHUserRepository.php.
Referenced by findByUser(), persist(), and remove().
OATHUserRepository::persist | ( | OATHUser | $user, |
$clientInfo | |||
) |
OATHUser | $user | |
string | $clientInfo |
Definition at line 82 of file OATHUserRepository.php.
References $user, cache, DB_MASTER, CentralIdLookup\factory(), findByUser(), getDB(), and OATHUser\getUser().
OATHUserRepository::remove | ( | OATHUser | $user, |
$clientInfo | |||
) |
OATHUser | $user | |
string | $clientInfo |
Definition at line 117 of file OATHUserRepository.php.
References $user, cache, DB_MASTER, CentralIdLookup\factory(), and getDB().
OATHUserRepository::setLogger | ( | LoggerInterface | $logger | ) |
LoggerInterface | $logger |
Definition at line 48 of file OATHUserRepository.php.
References $logger.
Referenced by __construct().
|
protected |
Definition at line 28 of file OATHUserRepository.php.
Referenced by __construct().
|
protected |
Definition at line 25 of file OATHUserRepository.php.
Referenced by __construct().
|
private |
Definition at line 31 of file OATHUserRepository.php.
Referenced by setLogger().