MediaWiki REL1_33
|
Public Member Functions | |
__construct (ILoadBalancer $lb, BagOStuff $cache) | |
OATHUserRepository constructor. | |
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, and(), cache, DB_REPLICA, getDB(), and User\getName().
Referenced by persist().
|
private |
int | $index | DB_MASTER/DB_REPLICA |
Definition at line 137 of file OATHUserRepository.php.
References and().
Referenced by findByUser(), persist(), and remove().
OATHUserRepository::persist | ( | OATHUser | $user, |
$clientInfo ) |
OATHUser | $user | |
string | $clientInfo |
Definition at line 82 of file OATHUserRepository.php.
References cache, DB_MASTER, findByUser(), getDB(), and OATHUser\getUser().
OATHUserRepository::remove | ( | OATHUser | $user, |
$clientInfo ) |
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().