Unclassified NewsBoard Code Reference

IUser class

Represents a user and offers methods to operate on it

Methods:

Add Add a new user to the database
AvatarFromURL Get this object's remote avatar flag
Count Count users
CountWithGroup Like Count(), but filters by UserGroups, too
FindByEMail Find a user by e-mail
NOTE: The returned user may not be unique. This is mainly good for e-mail address reuse checking
FindByName Find a user by name
GetAIM Get this object's AIM id
GetAbout Get this object's short user self-description
GetAllForumThreadFlags Get all forum & thread flags for a user. Used for initially building the cache.
GetAvatar Get this object's avatar image filename/URL
GetAvatarX Get this object's avatar image width
GetAvatarY Get this object's avatar image height
GetBirthDay Get this object's birthdate day
GetBirthMonth Get this object's birthdate month
GetBirthYear Get this object's birthdate year
GetBirthdate Get this object's birthdate timestamp
GetDateFormat Get this object's date format
GetDefaultNotify Get this object's default notification method
GetDesign Get this object's currently selected board design
GetEMail Get this object's current e-mail address
GetEditControls Get this object's BBCode buttons configuration
GetExtra Get this object's extra profile field value
GetFlags Get this object's flags/options
GetForumFlag Get a single forum flag for a user
Uses global cache to reduce the number of database queries
GetForumThreadFlag Get the current state of a forum/thread flag for a user.
Doesn't use the global cache but runs a new database query for each call.
Considered for internal use only.
GetForumWatchs Get all ForumWatchs for (this) user
GetGender Get this object's gender
GetGenderVerbose Get this object's verbose gender
GetHomepage Get this object's homepage URL
GetICQ Get this object's ICQ number
GetID Get this object's user id
GetJabber Get this object's Jabber id
GetLanguage Get this object's currently selected language
GetLastActivity Get this object's last activity timestamp
GetLastForum Get this object's last forum id
GetLastLogin Get this object's last login timestmp
GetLastLogout Get this object's last logout timestamp
GetList Query a list of some/all users
GetListArray Get an array(ID) of UserIDs matching the query
GetLocation Get this object's user location
GetMSN Get this object's MSN id
GetName Get this object's user name
GetNext Find next user from previous search
GetOnline Get this object's online status (active within the last 5min)
GetPassword Get this object's hashed password
GetPhoto Get this object's user photo filename/URL
GetRegDate Get this object's registration timestamp
GetRegEMail Get this object's e-mail address used for registration
GetSignature Get this object's post signature
GetThreadFlag Get a single thread flag for a user
Uses global cache to reduce the number of database queries
GetThreadSort Get this object's default thread sort
GetThreadTime Get this object's default thread time filter
GetThreadWatchs Get all ThreadWatchs for (this) user
GetThreadsPerPage Get this object's threads per page setting
GetTimezone Get this object's timezone
GetTimezoneDS Get this object's "respect DST setting" flag
GetTitle Get this object's user title
GetValidateKey Get this object's validate key
GetYIM Get this object's YIM id
IUser No description available.
Load Load a user into this object. Uses the global user records cache.
LoadFromRecord Load a user from a given record into this object.
Can load results from array find functions.
PhotoFromURL Get this object's remote photo flag
Remove Remove a user
Any posts of this user will get the user name copied in statically and
will be marked as by a former user.
Cleans up all other tables and removes any user-related data.
RemoveAllForumThreadFlags Remove all flag entries matching the given IDs
Each false value will be ignored.
All valid values will be matched with AND so you can remove a flag for a single (user AND forum).
Reset No description available.
SetAbout Set description
SetAvatar Set avatar image and its dimensions
SetBirthDate Set birthdate
SetDateFormat Set custom date format
SetDefaultNotify Set default notification method
SetDesign Set selected design
SetEMail Set e-mail address
SetEditControls Set BBCode toolbar configuration
SetExtra Set extra profile field value
SetFlags Set flags/options
SetForumFlag Set a single forum flag for a user
Uses global cache to reduce the number of database queries
SetForumThreadFlag Set the new state of a forum/thread flag for a user.
Doesn't use the global cache but runs a new database query for each call.
Considered for internal use only.
SetGender Set gender
SetHomepage Set homepage URL
SetIM Set IM contact IDs
SetLanguage Set user's language
SetLastActivity Set last activity forum and timestamp
SetLastLogin Set last login timestamp
SetLocation Set location
SetName Set user name
SetPassword Set user password hash
SetPhoto Set photo image
SetSignature Set post signature
SetThreadFlag Set a single thread flag for a user
Uses global cache to reduce the number of database queries
SetThreadSort Set default thread list sorting
SetThreadTime Set default thread list time filter
SetThreadsPerPage Set default threads per page
SetTimezone Set timezone
SetTitle Set user title
SetValidateKey Set validate key
build_forder Sort all forums by parent relation and sort index.

Private fields:

AIM  –  default: ''
About  –  default: ''
Avatar  –  default: ''
AvatarX  –  default: 0
AvatarY  –  default: 0
BirthDay  –  default: 0
BirthMonth  –  default: 0
BirthYear  –  default: 0
DateFormat  –  default: ''
DefaultNotify  –  default: 0
Design  –  default: ''
EMail  –  default: ''
EditControls  –  default: 0
Extra
Flags  –  default: 0
ForumFlags  –  default: false
Gender  –  default: ''
Homepage  –  default: ''
ICQ  –  default: ''
ID  –  default: 0
Jabber  –  default: ''
Language  –  default: ''
LastActivity  –  default: 0
LastForum  –  default: 0
LastLogin  –  default: 0
LastLogout  –  default: 0
Location  –  default: ''
MSN  –  default: ''
Name  –  default: ''
Password  –  default: ''
Photo  –  default: ''
RegDate  –  default: 0
RegEMail  –  default: ''
Signature  –  default: ''
ThreadFlags  –  default: false
ThreadSort  –  default: 0
ThreadTime  –  default: 0
ThreadsPerPage  –  default: 0
Timezone  –  default: 0
TimezoneDS  –  default: -1
Title  –  default: ''
ValidateKey  –  default: ''
YIM  –  default: ''
db
finddb
user_online_timeout

Implementation file: unb_lib/user.lib.php, line 24

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.