class User - jcobban/Genealogy GitHub Wiki
class User
Up: Object-Oriented Access to Database Records
This class is derived from Record to implement the logical interface to a record in the User table (Users). Each entry in this table contains the description of a registered User
of the site.
Fields
This record presents the following fields:
User | description | notes |
---|---|---|
'username' | username | synonyms 'userid', 'name' |
'password' | password | only used by constructor and set |
'shapassword' | secret hash of password | |
'email' | email address | |
'cellphone' | mobile telephone number | |
'auth' | authorizations | |
'id' | numeric internal id | |
'options' | bit mask of User options | |
'confirmid' | temporary code used during User authentication | |
'persistence' | unique code generated for session persistence | |
'language' | User's preferred language of communication using BCP 47 notation | 'lang' |
Constants
This class defines the following constants which control whether specific services are offered to this user:
constant | description | value |
---|---|---|
User::OPT_USEMAIL_ON |
user accepts emails | 1 |
User::OPT_NOHELP_ON |
do not display popup help | 2 |
User::OPT_RESERVED |
reserved | 4 |
Table of Contents
- new User($parms)
- $user->can($action)
- $user->get($fieldUser)
- $user->getId()
- $user->getName()
- $user->set($fieldname, $value)
- $user->setPassword($value)
- $user->chkPassword($value,$persist)
- $user->save($xml)
Next: new User($parms)