Back to Joomla project (class list)

Class User - list of methods

Users table

Extends

Package: Joomla\CMS\Table
Copyright: (C) 2005 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Table/User.php
Project: Joomla

Method Summary

public
(\Joomla\Database\DatabaseDriver $db)

Constructor
Parameters
  • \Joomla\Database\DatabaseDriver $db Database driver object.
Since
  • 1.7.0
Show source code of this method: __construct Source Code

public bool
(mixed $userId = null, mixed $reset = true)

Method to load a user, user groups, and any other necessary data from the database so that it can be bound to the user object.
Parameters
  • int $userId An optional user id.
  • bool $reset False if row not found or on error (internal error state set in that case).
Returns
  • bool True on success, false on failure.
Since
  • 1.7.0
Show source code of this method: load Source Code

public bool
(mixed $array, mixed $ignore = '')

Method to bind the user, user groups, and any other necessary data.
Parameters
  • array $array The data to bind.
  • mixed $ignore An array or space separated list of fields to ignore.
Returns
  • bool True on success, false on failure.
Since
  • 1.7.0
Show source code of this method: bind Source Code

public bool
()

Validation and filtering
Returns
  • bool True if satisfactory
Since
  • 1.7.0
Show source code of this method: check Source Code

public bool
(mixed $updateNulls = true)

Method to store a row in the database from the Table instance properties.
Parameters
  • bool $updateNulls True to update fields even if they are null.
Returns
  • bool True on success.
Since
  • 1.7.0
Show source code of this method: store Source Code

public bool
(mixed $userId = null)

Method to delete a user, user groups, and any other necessary data from the database.
Parameters
  • int $userId An optional user id.
Returns
  • bool True on success, false on failure.
Since
  • 1.7.0
Show source code of this method: delete Source Code

public bool
(mixed $timeStamp = null, mixed $userId = null)

Updates last visit time of user
Parameters
  • int $timeStamp The timestamp, defaults to 'now'.
  • int $userId The user id (optional).
Returns
  • bool False if an error occurs
Since
  • 1.7.0
Show source code of this method: setLastVisit Source Code

Properties Summary

protected bool
$_supportNullValue
Indicates that columns fully support the NULL value in the database
Since
  • 4.0.0
public array
$groups
Associative array of group ids => group ids for the user
Since
  • 1.7.0

Tags Summary

Since
1.7.0