~ubuntu-branches/ubuntu/hardy/gallery2/hardy-security

« back to all changes in this revision

Viewing changes to modules/register/classes/interfaces/GalleryPendingUser.inc

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2006-04-16 16:42:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060416164235-8uy0u4bfjdxpge2o
Tags: 2.1.1-1
* New upstream release (Closes: #362936)
  + Bugfixes for Postgres7 (Closes: #359000, #362152)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
/*
3
 
 * $RCSfile: GalleryPendingUser.inc,v $
4
 
 *
5
 
 * Gallery - a web based photo album viewer and editor
6
 
 * Copyright (C) 2000-2005 Bharat Mediratta
7
 
 * 
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.
12
 
 * 
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.
17
 
 * 
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.
21
 
 */
22
 
/**
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>
27
 
 */
28
 
 
29
 
/**
30
 
 * Interface class for the GalleryPendingUser class.
31
 
 * (Class schema version: 1.0)
32
 
 *
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.
39
 
 *
40
 
 * @package SelfRegistration
41
 
 * @subpackage Classes
42
 
 */
43
 
class GalleryPendingUser extends GalleryPendingUser_core {
44
 
  
45
 
    /**
46
 
     * Return meta information about the members of this class
47
 
     *
48
 
     * @return array member => array(type, class)
49
 
     */
50
 
    function getPersistentMemberInfo() {
51
 
        $meta = parent::getPersistentMemberInfo();
52
 
        $meta['members']['userName'] = array('class' => 'GalleryPendingUser', 'type' => STORAGE_TYPE_STRING);
53
 
    
54
 
        $meta['members']['fullName'] = array('class' => 'GalleryPendingUser', 'type' => STORAGE_TYPE_STRING);
55
 
    
56
 
        $meta['members']['hashedPassword'] = array('class' => 'GalleryPendingUser', 'type' => STORAGE_TYPE_STRING);
57
 
    
58
 
        $meta['members']['email'] = array('class' => 'GalleryPendingUser', 'type' => STORAGE_TYPE_STRING);
59
 
    
60
 
        $meta['members']['language'] = array('class' => 'GalleryPendingUser', 'type' => STORAGE_TYPE_STRING);
61
 
    
62
 
        $meta['members']['registrationKey'] = array('class' => 'GalleryPendingUser', 'type' => STORAGE_TYPE_STRING);
63
 
    
64
 
        return $meta;
65
 
    }
66
 
 
67
 
    /**
68
 
     * Get the data from this persistent object as an associative array
69
 
     *
70
 
     * @return array memberName => memberValue
71
 
     */
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;
80
 
        return $data;
81
 
    }
82
 
  
83
 
    /**
84
 
     * Return the name of this class with the proper mix of uppercase and
85
 
     * lowercase (get_class() always returns lowercase)
86
 
     *
87
 
     * @return string class name
88
 
     */
89
 
    function getClassName() {
90
 
        return 'GalleryPendingUser';
91
 
    }
92
 
 
93
 
    /** 
94
 
     * Return the path to the PHP file for this class, relative to the gallery2 dir
95
 
     * 
96
 
     * @return string path
97
 
     */ 
98
 
    function getClassFile() { 
99
 
        return 'modules/' .  
100
 
            basename(dirname(dirname(dirname(__FILE__)))) .  
101
 
            '/classes/GalleryPendingUser.class'; 
102
 
    }
103
 
    
104
 
    /**
105
 
     * Get the value of userName
106
 
     *
107
 
     * @return STRING the value
108
 
     */
109
 
    function getuserName() {
110
 
        if (!isset($this->_userName)) {
111
 
            return null;
112
 
        }
113
 
        return $this->_userName;
114
 
    }
115
 
 
116
 
    /**
117
 
     * Set the value of userName
118
 
     *
119
 
     * @param STRING the value
120
 
     */
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;
126
 
 
127
 
        /* Only take action if the value actually changes */
128
 
        if ($value != $orig) {
129
 
            $this->setModifiedFlag('userName', $value);
130
 
            $this->_userName = $value;
131
 
        }
132
 
    }
133
 
  
134
 
    /**
135
 
     * Get the value of fullName
136
 
     *
137
 
     * @return STRING the value
138
 
     */
139
 
    function getfullName() {
140
 
        if (!isset($this->_fullName)) {
141
 
            return null;
142
 
        }
143
 
        return $this->_fullName;
144
 
    }
145
 
 
146
 
    /**
147
 
     * Set the value of fullName
148
 
     *
149
 
     * @param STRING the value
150
 
     */
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;
156
 
 
157
 
        /* Only take action if the value actually changes */
158
 
        if ($value != $orig) {
159
 
            $this->setModifiedFlag('fullName', $value);
160
 
            $this->_fullName = $value;
161
 
        }
162
 
    }
163
 
  
164
 
    /**
165
 
     * Get the value of hashedPassword
166
 
     *
167
 
     * @return STRING the value
168
 
     */
169
 
    function gethashedPassword() {
170
 
        if (!isset($this->_hashedPassword)) {
171
 
            return null;
172
 
        }
173
 
        return $this->_hashedPassword;
174
 
    }
175
 
 
176
 
    /**
177
 
     * Set the value of hashedPassword
178
 
     *
179
 
     * @param STRING the value
180
 
     */
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;
186
 
 
187
 
        /* Only take action if the value actually changes */
188
 
        if ($value != $orig) {
189
 
            $this->setModifiedFlag('hashedPassword', $value);
190
 
            $this->_hashedPassword = $value;
191
 
        }
192
 
    }
193
 
  
194
 
    /**
195
 
     * Get the value of email
196
 
     *
197
 
     * @return STRING the value
198
 
     */
199
 
    function getemail() {
200
 
        if (!isset($this->_email)) {
201
 
            return null;
202
 
        }
203
 
        return $this->_email;
204
 
    }
205
 
 
206
 
    /**
207
 
     * Set the value of email
208
 
     *
209
 
     * @param STRING the value
210
 
     */
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;
216
 
 
217
 
        /* Only take action if the value actually changes */
218
 
        if ($value != $orig) {
219
 
            $this->setModifiedFlag('email', $value);
220
 
            $this->_email = $value;
221
 
        }
222
 
    }
223
 
  
224
 
    /**
225
 
     * Get the value of language
226
 
     *
227
 
     * @return STRING the value
228
 
     */
229
 
    function getlanguage() {
230
 
        if (!isset($this->_language)) {
231
 
            return null;
232
 
        }
233
 
        return $this->_language;
234
 
    }
235
 
 
236
 
    /**
237
 
     * Set the value of language
238
 
     *
239
 
     * @param STRING the value
240
 
     */
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;
246
 
 
247
 
        /* Only take action if the value actually changes */
248
 
        if ($value != $orig) {
249
 
            $this->setModifiedFlag('language', $value);
250
 
            $this->_language = $value;
251
 
        }
252
 
    }
253
 
  
254
 
    /**
255
 
     * Get the value of registrationKey
256
 
     *
257
 
     * @return STRING the value
258
 
     */
259
 
    function getregistrationKey() {
260
 
        if (!isset($this->_registrationKey)) {
261
 
            return null;
262
 
        }
263
 
        return $this->_registrationKey;
264
 
    }
265
 
 
266
 
    /**
267
 
     * Set the value of registrationKey
268
 
     *
269
 
     * @param STRING the value
270
 
     */
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;
276
 
 
277
 
        /* Only take action if the value actually changes */
278
 
        if ($value != $orig) {
279
 
            $this->setModifiedFlag('registrationKey', $value);
280
 
            $this->_registrationKey = $value;
281
 
        }
282
 
    }
283
 
  
284
 
}
285
 
?>