MediaWiki REL1_32
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() {
52 global $wgSitename, $wgOATHAuthAccountPrefix;
53 if ( $wgOATHAuthAccountPrefix !== false ) {
54 return $wgOATHAuthAccountPrefix;
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}
$wgSitename
Name of the site.
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...
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:47
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:2214