MediaWiki  1.34.0
MediaWiki\Extension\OATHAuth\OATHAuth Class Reference
Collaboration diagram for MediaWiki\Extension\OATHAuth\OATHAuth:

Public Member Functions

 __construct ( $config, $dbLBFactory)
 
 getAllModules ()
 Get all modules registered on the wiki. More...
 
 getModuleByKey ( $key)
 

Public Attributes

const AUTHENTICATED_OVER_2FA = 'OATHAuthAuthenticatedOver2FA'
 

Protected Attributes

Config $config
 
LBFactory $dbLBFactory
 
array $modules = []
 

Private Member Functions

 collectModules ()
 

Detailed Description

Definition at line 14 of file OATHAuth.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\OATHAuth\OATHAuth::__construct (   $config,
  $dbLBFactory 
)
Parameters
Config$config
LBFactory$dbLBFactory

Definition at line 35 of file OATHAuth.php.

References MediaWiki\Extension\OATHAuth\OATHAuth\$config, and MediaWiki\Extension\OATHAuth\OATHAuth\$dbLBFactory.

Member Function Documentation

◆ collectModules()

MediaWiki\Extension\OATHAuth\OATHAuth::collectModules ( )
private

◆ getAllModules()

MediaWiki\Extension\OATHAuth\OATHAuth::getAllModules ( )

◆ getModuleByKey()

MediaWiki\Extension\OATHAuth\OATHAuth::getModuleByKey (   $key)
Parameters
string$key
Returns
IModule|null

Definition at line 44 of file OATHAuth.php.

References MediaWiki\Extension\OATHAuth\OATHAuth\collectModules().

Referenced by MediaWiki\Extension\OATHAuth\OATHAuth\getAllModules().

Member Data Documentation

◆ $config

Config MediaWiki\Extension\OATHAuth\OATHAuth::$config
protected

Definition at line 20 of file OATHAuth.php.

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

◆ $dbLBFactory

LBFactory MediaWiki\Extension\OATHAuth\OATHAuth::$dbLBFactory
protected

Definition at line 24 of file OATHAuth.php.

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

◆ $modules

array MediaWiki\Extension\OATHAuth\OATHAuth::$modules = []
protected

Definition at line 29 of file OATHAuth.php.

Referenced by MediaWiki\Extension\OATHAuth\OATHAuth\getAllModules().

◆ AUTHENTICATED_OVER_2FA

const MediaWiki\Extension\OATHAuth\OATHAuth::AUTHENTICATED_OVER_2FA = 'OATHAuthAuthenticatedOver2FA'

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