MediaWiki  1.34.4
MediaWiki\Extension\OATHAuth\OATHUserRepository Class Reference
Collaboration diagram for MediaWiki\Extension\OATHAuth\OATHUserRepository:

Public Member Functions

 __construct (ILoadBalancer $lb, BagOStuff $cache, OATHAuth $auth)
 OATHUserRepository constructor. More...
 
 findByUser (User $user)
 
 persist (OATHUser $user, $clientInfo=null)
 
 remove (OATHUser $user, $clientInfo)
 
 setLogger (LoggerInterface $logger)
 

Protected Attributes

OATHAuth $auth
 
BagOStuff $cache
 
ILoadBalancer $lb
 

Private Member Functions

 checkAndResolveLegacy ( $data, $row)
 Checks if the DB data is in the new format, if not converts old data to new. More...
 
 getDB ( $index)
 
 isLegacy ( $row)
 

Private Attributes

LoggerInterface $logger
 

Detailed Description

Definition at line 34 of file OATHUserRepository.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ checkAndResolveLegacy()

MediaWiki\Extension\OATHAuth\OATHUserRepository::checkAndResolveLegacy (   $data,
  $row 
)
private

Checks if the DB data is in the new format, if not converts old data to new.

Parameters
string$data
stdClass$row
Returns
string

Definition at line 214 of file OATHUserRepository.php.

References FormatJson\encode().

Referenced by MediaWiki\Extension\OATHAuth\OATHUserRepository\findByUser().

◆ findByUser()

◆ getDB()

MediaWiki\Extension\OATHAuth\OATHUserRepository::getDB (   $index)
private

◆ isLegacy()

MediaWiki\Extension\OATHAuth\OATHUserRepository::isLegacy (   $row)
private
Parameters
stdClass$row
Returns
bool

Definition at line 196 of file OATHUserRepository.php.

Referenced by MediaWiki\Extension\OATHAuth\OATHUserRepository\findByUser().

◆ persist()

◆ remove()

MediaWiki\Extension\OATHAuth\OATHUserRepository::remove ( OATHUser  $user,
  $clientInfo 
)

◆ setLogger()

MediaWiki\Extension\OATHAuth\OATHUserRepository::setLogger ( LoggerInterface  $logger)
Parameters
LoggerInterface$logger

Definition at line 66 of file OATHUserRepository.php.

References MediaWiki\Extension\OATHAuth\OATHUserRepository\$logger.

Referenced by MediaWiki\Extension\OATHAuth\OATHUserRepository\__construct().

Member Data Documentation

◆ $auth

OATHAuth MediaWiki\Extension\OATHAuth\OATHUserRepository::$auth
protected

◆ $cache

BagOStuff MediaWiki\Extension\OATHAuth\OATHUserRepository::$cache
protected

◆ $lb

ILoadBalancer MediaWiki\Extension\OATHAuth\OATHUserRepository::$lb
protected

◆ $logger

LoggerInterface MediaWiki\Extension\OATHAuth\OATHUserRepository::$logger
private

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