Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

ezuser

Summary

Contains information about a user.

Persistent

Yes.

Attributes

Attribute

Type

Description

contentobject_id

string

The ID number of the object that represents the user.

login

string

The username of the user.

email

string

The E-mail address of the user (for example "marty@ez.no").

password_hash

string

The encrypted version of the user's password.

password_hash_type

string

The type of encryption that was used to obfuscate the user's password.

contentobject

object

The actual object (as ezcontentobject) that represents the user.

groups

array

The object ID numbers of the user groups that the user is a member of.

has_stored_login

boolean

Returns TRUE if the user has a non-empty username stored in the database; otherwise FALSE will be returned.

original_password

string

The password input by the user from the last page (from "/user/register" or
"/content/edit"). It is only used for validation of the password. It will be FALSE if empty input was provided.

original_password_confirm

string

The confirmation password for the "original_password" attribute (FALSE if empty).

roles

array

The roles (as ezrole objects) that are assigned to the user.

role_id_list

array

The ID numbers of the roles that are assigned to the user.

is_logged_in

boolean

Returns TRUE if the user is logged in, FALSE otherwise.

is_enabled

boolean

Returns TRUE if the user is enabled, FALSE otherwise.

Balazs Halasy (23/02/2005 3:54 pm)

Balazs Halasy (01/04/2007 3:11 pm)


Comments

  • is anywhere stored las login date?

    is any way to get last login date, ip and etc?
    • Re: is anywhere stored las login date?

      You can get the IP address by making an extension and use the PHP-function below like this:

      function getIpAddress()
      {


      if (isset($_SERVER['REMOTE_ADDR'])) {
      $extensionURL .= $_SERVER['REMOTE_ADDR'];

      }

      $result = array( );
      $result['ip_address'] =& $extensionURL;

      return array( 'result' => $result );
      }