1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
<?php
/**
* TMembershipUser class.
* Exposes and updates membership user information in the membership data store.
*
* @author Jason Ragsdale <jrags@jasrags.net>
* @version $Id: TMembershipUser.php 1398 2006-09-08 19:31:03Z xue $
* @package System.Web.Security
* @since 3.1
*/
Prado::using('System.Web.Security.TProviderException');
Prado::using('System.Web.Security.TMembership');
class TMembershipUser
{
private $_comment;
private $_creationDate;
private $_email;
private $_isApproved=false;
private $_isLockedOut=false;
private $_isOnline=false;
private $_lastActivityDate;
private $_lastLockoutDate;
private $_lastLoginDate;
private $_lastPasswordChangedDate;
private $_passwordQuestion;
private $_providerName;
private $_providerUserKey;
private $_userName;
public function __construct($providerName=null,$name=null,$providerUserKey=null,$email=null,$passwordQuestion=null,$comment=null,$isApproved=null,$isLockedOut=null,$creationDate=null,$lastLoginDate=null,$lastActivityDate=null,$lastPasswordChangedDate=null,$lastLockoutDate=null)
{
if (($providerName===null) || (TMembership::getProviders($providerName)===null))
{
throw new TProviderException('Membership_provider_name_invalid',$providerName);
}
if ($name!==null)
{
$name = trim($name);
}
if ($email!==null)
{
$email = trim($email);
}
if ($passwordQuestion!==null)
{
$passwordQuestion = trim($passwordQuestion);
}
$this->_providerName = $providerName;
$this->_userName = $name;
$this->_providerUserKey = $providerUserKey;
$this->_email = $email;
$this->_passwordQuestion = $passwordQuestion;
$this->_comment = $comment;
$this->_isApproved = $isApproved;
$this->_isLockedOut = $isLockedOut;
$this->_creationDate = $creationDate;
$this->_lastLoginDate = $lastLoginDate;
$this->_lastActivityDate = $lastActivityDate;
$this->_lastPasswordChangedDate = $lastPasswordChangedDate;
$this->_lastLockoutDate = $lastLockoutDate;
}
public function getComment()
{
return $this->_comment;
}
public function setApplicationName($value)
{
$this->_comment = TPropertyValue::ensureString($value);
}
public function getCreationDate()
{
return $this->_creationDate;
}
public function getEmail()
{
return $this->_email;
}
public function setEmail($value)
{
$this->_email = TPropertyValue::ensureString($value);
}
public function getIsApproved()
{
return $this->_isApproved;
}
public function setIsApproved($value)
{
$this->_isApproved = TPropertyValue::ensureBoolean($value);
}
public function getIsLockedOut()
{
return $this->_isLockedOut;
}
public function getIsOnline()
{
return $this->_isOnline;
}
public function getLastActivityDate()
{
return $this->_lastActivityDate;
}
public function setLastActivityDate($value)
{
$this->_lastActivityDate = TPropertyValue::ensureString($value);
}
public function getLastLockoutDate()
{
return $this->_lastLockoutDate;
}
public function getLastLoginDate()
{
return $this->_lastLoginDate;
}
public function setLastLoginDate($value)
{
$this->_lastLoginDate = TPropertyValue::ensureString($value);
}
public function getLastPasswordChangedDate()
{
return $this->_lastPasswordChangedDate;
}
public function getPasswordQuestion()
{
return $this->_passwordQuestion;
}
public function getProviderUserKey()
{
return $this->_providerUserKey;
}
public function getUserName()
{
return $this->_userName;
}
public function changePassword($oldPassword,$newPassword,$throwOnError=null)
{
}
public function getPassword()
{
// $throwOnError;
// $passwordAnswer;
// $answer;
// $answer,$useAnswer,$throwOnError;
}
public function resetPassword()
{
// $throwOnError;
// $passwordAnswer;
// $answer;
// $answer,$useAnswer,$throwOnError;
}
public function unlockUser()
{
}
public function update()
{
}
private function updateSelf()
{
}
}
?>
|