3
* $RCSfile: GalleryPendingUser.inc,v $
5
* Gallery - a web based photo album viewer and editor
6
* Copyright (C) 2000-2005 Bharat Mediratta
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or (at
11
* your option) any later version.
13
* This program is distributed in the hope that it will be useful, but
14
* WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
23
* @package SelfRegistration
24
* @subpackage ClassInterfaces
25
* @version $Revision: 1.10 $ $Date: 2005/08/23 03:49:52 $
26
* @author Bharat Mediratta <bharat@menalto.com>
30
* Interface class for the GalleryPendingUser class.
31
* (Class schema version: 1.0)
33
* This file is automatically generated from XML embedded in the
34
* class, combined with the ClassCode.xsl file. You should not modify
35
* it by hand, as your changes will be lost next time this file is
36
* rebuilt. If you want to add more getters/setters, you should add
37
* them in the core class. If you want to change the format of this
38
* file, then you should edit the XSL template.
40
* @package SelfRegistration
43
class GalleryPendingUser extends GalleryPendingUser_core {
46
* Return meta information about the members of this class
48
* @return array member => array(type, class)
50
function getPersistentMemberInfo() {
51
$meta = parent::getPersistentMemberInfo();
52
$meta['members']['userName'] = array('class' => 'GalleryPendingUser', 'type' => STORAGE_TYPE_STRING);
54
$meta['members']['fullName'] = array('class' => 'GalleryPendingUser', 'type' => STORAGE_TYPE_STRING);
56
$meta['members']['hashedPassword'] = array('class' => 'GalleryPendingUser', 'type' => STORAGE_TYPE_STRING);
58
$meta['members']['email'] = array('class' => 'GalleryPendingUser', 'type' => STORAGE_TYPE_STRING);
60
$meta['members']['language'] = array('class' => 'GalleryPendingUser', 'type' => STORAGE_TYPE_STRING);
62
$meta['members']['registrationKey'] = array('class' => 'GalleryPendingUser', 'type' => STORAGE_TYPE_STRING);
68
* Get the data from this persistent object as an associative array
70
* @return array memberName => memberValue
72
function getMemberData() {
73
$data = parent::getMemberData();
74
$data['userName'] = isset($this->_userName) ? $this->_userName : null;
75
$data['fullName'] = isset($this->_fullName) ? $this->_fullName : null;
76
$data['hashedPassword'] = isset($this->_hashedPassword) ? $this->_hashedPassword : null;
77
$data['email'] = isset($this->_email) ? $this->_email : null;
78
$data['language'] = isset($this->_language) ? $this->_language : null;
79
$data['registrationKey'] = isset($this->_registrationKey) ? $this->_registrationKey : null;
84
* Return the name of this class with the proper mix of uppercase and
85
* lowercase (get_class() always returns lowercase)
87
* @return string class name
89
function getClassName() {
90
return 'GalleryPendingUser';
94
* Return the path to the PHP file for this class, relative to the gallery2 dir
98
function getClassFile() {
100
basename(dirname(dirname(dirname(__FILE__)))) .
101
'/classes/GalleryPendingUser.class';
105
* Get the value of userName
107
* @return STRING the value
109
function getuserName() {
110
if (!isset($this->_userName)) {
113
return $this->_userName;
117
* Set the value of userName
119
* @param STRING the value
121
function setuserName($value) {
122
/* Convert unset values to null, to avoid generating warnings. */
123
$value = isset($value) ? $value : null;
124
$value = $this->_truncateString($value, 32);
125
$orig = isset($this->_userName) ? $this->_userName : null;
127
/* Only take action if the value actually changes */
128
if ($value != $orig) {
129
$this->setModifiedFlag('userName', $value);
130
$this->_userName = $value;
135
* Get the value of fullName
137
* @return STRING the value
139
function getfullName() {
140
if (!isset($this->_fullName)) {
143
return $this->_fullName;
147
* Set the value of fullName
149
* @param STRING the value
151
function setfullName($value) {
152
/* Convert unset values to null, to avoid generating warnings. */
153
$value = isset($value) ? $value : null;
154
$value = $this->_truncateString($value, 128);
155
$orig = isset($this->_fullName) ? $this->_fullName : null;
157
/* Only take action if the value actually changes */
158
if ($value != $orig) {
159
$this->setModifiedFlag('fullName', $value);
160
$this->_fullName = $value;
165
* Get the value of hashedPassword
167
* @return STRING the value
169
function gethashedPassword() {
170
if (!isset($this->_hashedPassword)) {
173
return $this->_hashedPassword;
177
* Set the value of hashedPassword
179
* @param STRING the value
181
function sethashedPassword($value) {
182
/* Convert unset values to null, to avoid generating warnings. */
183
$value = isset($value) ? $value : null;
184
$value = $this->_truncateString($value, 128);
185
$orig = isset($this->_hashedPassword) ? $this->_hashedPassword : null;
187
/* Only take action if the value actually changes */
188
if ($value != $orig) {
189
$this->setModifiedFlag('hashedPassword', $value);
190
$this->_hashedPassword = $value;
195
* Get the value of email
197
* @return STRING the value
199
function getemail() {
200
if (!isset($this->_email)) {
203
return $this->_email;
207
* Set the value of email
209
* @param STRING the value
211
function setemail($value) {
212
/* Convert unset values to null, to avoid generating warnings. */
213
$value = isset($value) ? $value : null;
214
$value = $this->_truncateString($value, 128);
215
$orig = isset($this->_email) ? $this->_email : null;
217
/* Only take action if the value actually changes */
218
if ($value != $orig) {
219
$this->setModifiedFlag('email', $value);
220
$this->_email = $value;
225
* Get the value of language
227
* @return STRING the value
229
function getlanguage() {
230
if (!isset($this->_language)) {
233
return $this->_language;
237
* Set the value of language
239
* @param STRING the value
241
function setlanguage($value) {
242
/* Convert unset values to null, to avoid generating warnings. */
243
$value = isset($value) ? $value : null;
244
$value = $this->_truncateString($value, 128);
245
$orig = isset($this->_language) ? $this->_language : null;
247
/* Only take action if the value actually changes */
248
if ($value != $orig) {
249
$this->setModifiedFlag('language', $value);
250
$this->_language = $value;
255
* Get the value of registrationKey
257
* @return STRING the value
259
function getregistrationKey() {
260
if (!isset($this->_registrationKey)) {
263
return $this->_registrationKey;
267
* Set the value of registrationKey
269
* @param STRING the value
271
function setregistrationKey($value) {
272
/* Convert unset values to null, to avoid generating warnings. */
273
$value = isset($value) ? $value : null;
274
$value = $this->_truncateString($value, 32);
275
$orig = isset($this->_registrationKey) ? $this->_registrationKey : null;
277
/* Only take action if the value actually changes */
278
if ($value != $orig) {
279
$this->setModifiedFlag('registrationKey', $value);
280
$this->_registrationKey = $value;