MediaWiki REL1_33
SpecialOATH.php
Go to the documentation of this file.
1<?php
29 protected function getTargetPage() {
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}
static getOATHUserRepository()
Get the singleton OATH user repository.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
getTargetPage()
If the user already has OATH enabled, show them a page to disable If the user has OATH disabled,...
getUser()
Shortcut to get the User executing this instance.