MediaWiki REL1_33
OATHUser.php
Go to the documentation of this file.
1<?php
24class OATHUser {
26 private $user;
27
29 private $key;
30
36 public function __construct( User $user, OATHAuthKey $key = null ) {
37 $this->user = $user;
38 $this->key = $key;
39 }
40
44 public function getUser() {
45 return $this->user;
46 }
47
51 public function getIssuer() {
53 if ( $wgOATHAuthAccountPrefix !== false ) {
55 }
56 return $wgSitename;
57 }
58
62 public function getAccount() {
63 return $this->user->getName();
64 }
65
71 public function getKey() {
72 return $this->key;
73 }
74
80 public function setKey( OATHAuthKey $key = null ) {
81 $this->key = $key;
82 }
83}
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
$wgSitename
Name of the site.
Class representing a two-factor key.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
Definition OATHUser.php:24
User $user
Definition OATHUser.php:26
getAccount()
Definition OATHUser.php:62
getKey()
Get the key associated with this user.
Definition OATHUser.php:71
__construct(User $user, OATHAuthKey $key=null)
Constructor.
Definition OATHUser.php:36
OATHAuthKey null $key
Definition OATHUser.php:29
getIssuer()
Definition OATHUser.php:51
setKey(OATHAuthKey $key=null)
Set the key associated with this user.
Definition OATHUser.php:80
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition User.php:48
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation use $formDescriptor instead default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message key
Definition hooks.txt:2163