MediaWiki
REL1_33
SpecialOATH.php
Go to the documentation of this file.
1
<?php
22
class
SpecialOATH
extends
ProxySpecialPage
{
29
protected
function
getTargetPage
() {
30
$repo =
OATHAuthHooks::getOATHUserRepository
();
31
32
$user = $repo->findByUser( $this->
getUser
() );
33
34
if
( $user->getKey() ===
null
) {
35
return
new
SpecialOATHEnable
( $repo, $user );
36
}
else
{
37
return
new
SpecialOATHDisable
( $repo, $user );
38
}
39
}
40
41
protected
function
getGroupName
() {
42
return
'oath'
;
43
}
44
}
OATHAuthHooks\getOATHUserRepository
static getOATHUserRepository()
Get the singleton OATH user repository.
Definition
OATHAuthHooks.php:34
ProxySpecialPage
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
Definition
ProxySpecialPage.php:23
SpecialOATHDisable
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
Definition
SpecialOATHDisable.php:24
SpecialOATHEnable
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
Definition
SpecialOATHEnable.php:24
SpecialOATH
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
Definition
SpecialOATH.php:22
SpecialOATH\getTargetPage
getTargetPage()
If the user already has OATH enabled, show them a page to disable If the user has OATH disabled,...
Definition
SpecialOATH.php:29
SpecialOATH\getGroupName
getGroupName()
Definition
SpecialOATH.php:41
SpecialPage\getUser
getUser()
Shortcut to get the User executing this instance.
Definition
SpecialPage.php:735
extensions
OATHAuth
includes
special
SpecialOATH.php
Generated on Mon Nov 25 2024 15:48:57 for MediaWiki by
1.10.0