MediaWiki
1.34.0
IModule.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Extension\OATHAuth
;
4
5
use
MediaWiki\Auth\SecondaryAuthenticationProvider
;
6
use
MediaWiki\Extension\OATHAuth\HTMLForm\IManageForm
;
7
use
Message
;
8
9
interface
IModule
{
14
public
function
getName
();
15
19
public
function
getDisplayName
();
20
26
public
function
newKey
( array $data );
27
32
public
function
getDataFromUser
(
OATHUser
$user );
33
37
public
function
getSecondaryAuthProvider
();
38
47
public
function
isEnabled
(
OATHUser
$user );
48
56
public
function
verify
(
OATHUser
$user, array $data );
57
64
public
function
getManageForm
(
$action
,
OATHUser
$user,
OATHUserRepository
$repo );
65
70
public
function
getDescriptionMessage
();
71
79
public
function
getDisableWarningMessage
();
80
}
MediaWiki\Extension\OATHAuth\IModule\isEnabled
isEnabled(OATHUser $user)
Is this module currently enabled for the given user Arguably, module is enabled just by the fact its ...
MediaWiki\Extension\OATHAuth\OATHUser
Class representing a user from OATH's perspective.
Definition:
OATHUser.php:28
MediaWiki\Extension\OATHAuth\IModule\getSecondaryAuthProvider
getSecondaryAuthProvider()
MediaWiki\Extension\OATHAuth\IModule\verify
verify(OATHUser $user, array $data)
Run the validation.
MediaWiki\Extension\OATHAuth\IModule\newKey
newKey(array $data)
MediaWiki\Extension\OATHAuth\IModule\getManageForm
getManageForm( $action, OATHUser $user, OATHUserRepository $repo)
Message
MediaWiki\Extension\OATHAuth\OATHUserRepository
Definition:
OATHUserRepository.php:33
MediaWiki\Extension\OATHAuth\IModule\getDataFromUser
getDataFromUser(OATHUser $user)
MediaWiki\Extension\OATHAuth\IModule\getDescriptionMessage
getDescriptionMessage()
Return Message object for the short text to be displayed as description.
MediaWiki\Auth\SecondaryAuthenticationProvider
A secondary provider mostly acts when the submitted authentication data has already been associated t...
Definition:
SecondaryAuthenticationProvider.php:52
MediaWiki\Extension\OATHAuth\IModule\getDisplayName
getDisplayName()
MediaWiki\Extension\OATHAuth\IModule\getDisableWarningMessage
getDisableWarningMessage()
Module-specific text that will be shown when user is disabling the module, to warn of data-loss.
MediaWiki\$action
string $action
Cache what action this request is.
Definition:
MediaWiki.php:48
MediaWiki\Extension\OATHAuth
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
MediaWiki\Extension\OATHAuth\HTMLForm\IManageForm
Definition:
IManageForm.php:10
MediaWiki\Extension\OATHAuth\IModule\getName
getName()
Name of the module.
MediaWiki\Extension\OATHAuth\IModule
Definition:
IModule.php:9
extensions
OATHAuth
src
IModule.php
Generated on Thu Dec 19 2019 14:53:55 for MediaWiki by
1.8.16