MediaWiki REL1_34
IModule.php
Go to the documentation of this file.
1<?php
2
4
7use Message;
8
9interface 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}
Class representing a user from OATH's perspective.
Definition OATHUser.php:28
The Message class provides methods which fulfil two basic services:
Definition Message.php:162
A secondary provider mostly acts when the submitted authentication data has already been associated t...
getDescriptionMessage()
Return Message object for the short text to be displayed as description.
getManageForm( $action, OATHUser $user, OATHUserRepository $repo)
verify(OATHUser $user, array $data)
Run the validation.
isEnabled(OATHUser $user)
Is this module currently enabled for the given user Arguably, module is enabled just by the fact its ...
getDisableWarningMessage()
Module-specific text that will be shown when user is disabling the module, to warn of data-loss.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...