XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
XCube_Identity.class.php
1<?php
12
18 public $mName = '';
19
24 public $_mAuthenticationType = '';
25
26 public function __construct() {
27 }
28
34 public function setAuthenticationType( $type ) {
35 $this->_mAuthenticationType = $type;
36 }
37
42 public function getAuthenticationType() {
43 return $this->_mAuthenticationType;
44 }
45
51 public function setName( $name ) {
52 $this->mName = $name;
53 }
54
60 public function getName() {
61 return $this->mName;
62 }
63
69 public function isAuthenticated() {
70 }
71}
72
80 public $mIdentity;
81
86 public $_mRoles = [];
87
88 public function __construct( $identity, $roles = [] ) {
89 $this->mIdentity =& $identity;
90 $this->_mRoles = $roles;
91 }
92
97 public function getIdentity() {
98 return $this->mIdentity;
99 }
100
108 public function isInRole( $rolename ) {
109 }
110}