MediaWiki  1.34.4
MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables Class Reference
Collaboration diagram for MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables:

Public Member Functions

 schemaUpdateOldUsersFromInstaller (DatabaseUpdater $updater)
 Helper function for converting old users to the new schema. More...
 

Static Public Member Functions

static callback ( $updater)
 
static convertToGenericFields (IDatabase $db)
 Converts old, TOTP specific, column values to new structure. More...
 
static schemaUpdateOldUsers (IDatabase $db)
 Helper function for converting old users to the new schema. More...
 
static schemaUpdateSubstituteForGenericFields (DatabaseUpdater $updater)
 Helper function for converting old, TOTP specific, column values to new structure. More...
 
static schemaUpdateTOTPToMultipleKeys (DatabaseUpdater $updater)
 Helper function for converting single TOTP keys to multi-key system. More...
 
static switchTOTPToMultipleKeys (IDatabase $db)
 Switch from using single keys to multi-key support. More...
 

Protected Member Functions

 __construct ( $updater, $base)
 
 execute ()
 

Protected Attributes

string $base
 
DatabaseUpdater $updater
 

Detailed Description

Definition at line 12 of file UpdateTables.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables::__construct (   $updater,
  $base 
)
protected

Member Function Documentation

◆ callback()

static MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables::callback (   $updater)
static

◆ convertToGenericFields()

static MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables::convertToGenericFields ( IDatabase  $db)
static

◆ execute()

MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables::execute ( )
protected

Definition at line 42 of file UpdateTables.php.

◆ schemaUpdateOldUsers()

static MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables::schemaUpdateOldUsers ( IDatabase  $db)
static

◆ schemaUpdateOldUsersFromInstaller()

MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables::schemaUpdateOldUsersFromInstaller ( DatabaseUpdater  $updater)

Helper function for converting old users to the new schema.

Parameters
DatabaseUpdater$updater
Returns
bool

Definition at line 93 of file UpdateTables.php.

References DB_MASTER, MediaWiki\MediaWikiServices\getInstance(), and MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables\schemaUpdateOldUsers().

◆ schemaUpdateSubstituteForGenericFields()

static MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables::schemaUpdateSubstituteForGenericFields ( DatabaseUpdater  $updater)
static

Helper function for converting old, TOTP specific, column values to new structure.

Parameters
DatabaseUpdater$updater
Returns
bool
Exceptions
ConfigException

Definition at line 107 of file UpdateTables.php.

References MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables\convertToGenericFields(), DB_MASTER, and MediaWiki\MediaWikiServices\getInstance().

◆ schemaUpdateTOTPToMultipleKeys()

static MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables::schemaUpdateTOTPToMultipleKeys ( DatabaseUpdater  $updater)
static

Helper function for converting single TOTP keys to multi-key system.

Parameters
DatabaseUpdater$updater
Returns
bool
Exceptions
ConfigException

Definition at line 121 of file UpdateTables.php.

References DB_MASTER, MediaWiki\MediaWikiServices\getInstance(), and MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables\switchTOTPToMultipleKeys().

◆ switchTOTPToMultipleKeys()

static MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables::switchTOTPToMultipleKeys ( IDatabase  $db)
static

Member Data Documentation

◆ $base

string MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables::$base
protected

◆ $updater

DatabaseUpdater MediaWiki\Extension\OATHAuth\Hook\LoadExtensionSchemaUpdates\UpdateTables::$updater
protected

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