MediaWiki
REL1_34
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\OATHUserRepository
Definition
OATHUserRepository.php:34
MediaWiki\Extension\OATHAuth\OATHUser
Class representing a user from OATH's perspective.
Definition
OATHUser.php:28
Message
The Message class provides methods which fulfil two basic services:
Definition
Message.php:162
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\HTMLForm\IManageForm
Definition
IManageForm.php:10
MediaWiki\Extension\OATHAuth\IModule
Definition
IModule.php:9
MediaWiki\Extension\OATHAuth\IModule\newKey
newKey(array $data)
MediaWiki\Extension\OATHAuth\IModule\getDescriptionMessage
getDescriptionMessage()
Return Message object for the short text to be displayed as description.
MediaWiki\Extension\OATHAuth\IModule\getDisplayName
getDisplayName()
MediaWiki\Extension\OATHAuth\IModule\getDataFromUser
getDataFromUser(OATHUser $user)
MediaWiki\Extension\OATHAuth\IModule\getManageForm
getManageForm( $action, OATHUser $user, OATHUserRepository $repo)
MediaWiki\Extension\OATHAuth\IModule\verify
verify(OATHUser $user, array $data)
Run the validation.
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\IModule\getName
getName()
Name of the module.
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\Extension\OATHAuth\IModule\getSecondaryAuthProvider
getSecondaryAuthProvider()
MediaWiki\Extension\OATHAuth
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
extensions
OATHAuth
src
IModule.php
Generated on Mon Nov 25 2024 16:04:39 for MediaWiki by
1.10.0