Skip to content

Model: User

Ricky edited this page Jul 30, 2020 · 1 revision

Namespace: rbwebdesigns\HamletCMS\UserAccounts

Public properties

These are the public properties of the User class.

Property Datatype Notes
id int Primary key
name string User’s first name
surname string User’s surname
username string Login username
password string Hashed password
email string Email address
dob date When the user said they were born
gender string Male or Female
location string Location text of the user
profile_picture string Filename of the profile image
description text User personal description
admin boolean Is this an admin account (with full permissions)
signup_date date Date the user registered
security_q string Not used any more!
security_a string Not used any more!

Public methods

These are the public methods of the User class.

Signature Return type Notes
fullName() string Prints the formatted full name (first name + surname) of the user