MediaWiki REL1_31
|
Public Member Functions | |
__construct (LoadBalancer $lb, BagOStuff $cache) | |
OATHUserRepository constructor. | |
findByUser (User $user) | |
persist (OATHUser $user) | |
remove (OATHUser $user) | |
Protected Attributes | |
BagOStuff | $cache |
LoadBalancer | $lb |
Private Member Functions | |
getDB ( $index) | |
Definition at line 22 of file OATHUserRepository.php.
OATHUserRepository::__construct | ( | LoadBalancer | $lb, |
BagOStuff | $cache ) |
OATHUserRepository constructor.
LoadBalancer | $lb | |
BagOStuff | $cache |
Definition at line 34 of file OATHUserRepository.php.
OATHUserRepository::findByUser | ( | User | $user | ) |
User | $user |
Definition at line 43 of file OATHUserRepository.php.
References $res, cache, DB_REPLICA, getDB(), and User\getName().
|
private |
integer | $index | DB_MASTER/DB_REPLICA |
Definition at line 98 of file OATHUserRepository.php.
Referenced by findByUser(), persist(), and remove().
OATHUserRepository::persist | ( | OATHUser | $user | ) |
OATHUser | $user |
Definition at line 68 of file OATHUserRepository.php.
References cache, DB_MASTER, getDB(), and OATHUser\getUser().
OATHUserRepository::remove | ( | OATHUser | $user | ) |
|
protected |
Definition at line 27 of file OATHUserRepository.php.
Referenced by __construct().
|
protected |
Definition at line 24 of file OATHUserRepository.php.
Referenced by __construct().