JTableUser

From Joomla! Documentation

Jump to: navigation, search

JTableUser is a concrete table class which handles data-rows of the #__users table.

Contents

Availability

From Joomla 1.5 Joomla 1.6

Defined in

/joomla/database/table/user.php

Extends

Reserved Database Field Names

The operation of this class is dependent on the existence of specially-named fields (columns) in the database table.

Field name Description
activation 1 if the user-accout is in activation mode, else 0
block 1 if the user is blocked
email The email address of the user
gid The group id number
id The unique user ID
lastvisitDate The date of the User's last visit
name The users real name (or nickname)
params User parameters (like language, editor, timezone)
password The encrypted user password
registerDate The date of the user registration
sendEmail
username The username of the user
usertype Type of the user

Methods

Method name Description
__construct Constructor. Takes table name, primary key and database-object reference
bind Overloaded bind function
check Validation and filtering
delete Delete the user
setLastVisit Updates last visit time of the user
store Stores the User Information. Creates a new row, if the user is new. Else updates existing row.

Importing

jimport( 'joomla.database.table.user' );

See also

Personal tools