Documentation

User
in package

Class User

Represents a user in the system.

Table of Contents

Properties

$avatarToken  : string|null
$avatarToken  : string|null
$created  : DateTime|null
$created  : DateTime|null
$id  : int|null
$id  : int|null
$modified  : DateTime|null
$modified  : DateTime|null
$passwordHash  : string
$passwordHash  : string
$passwordSalt  : string
$passwordSalt  : string
$roleId  : int
$roleId  : int
$roleName  : string|null
$roleName  : string|null
$username  : string
$username  : string

Methods

__construct()  : mixed

Properties

$avatarToken

public string|null $avatarToken

The token for the user's avatar, may be null.

$avatarToken

public string|null $avatarToken

$created

public DateTime|null $created

The date and time when the user was created, may be null.

$created

public DateTime|null $created

$id

public int|null $id

The unique identifier for the user.

$modified

public DateTime|null $modified

The date and time when the user was last modified, may be null.

$modified

public DateTime|null $modified

$passwordHash

public string $passwordHash

The hashed password of the user.

$passwordHash

public string $passwordHash

$passwordSalt

public string $passwordSalt

The salt used for hashing the user's password.

$passwordSalt

public string $passwordSalt

$roleId

public int $roleId

The role ID associated with the user.

$roleId

public int $roleId

$roleName

public string|null $roleName

The name of the role associated with the user, may be null.

$roleName

public string|null $roleName

$username

public string $username

The username of the user.

$username

public string $username

Methods

__construct()

public __construct(int $id, string $username, string $passwordSalt, string $passwordHash, int $roleId, string $avatarToken[, string|null $roleName = null ][, string|null $created = null ][, string|null $modified = null ]) : mixed
Parameters
$id : int
$username : string
$passwordSalt : string
$passwordHash : string
$roleId : int
$avatarToken : string
$roleName : string|null = null
$created : string|null = null
$modified : string|null = null

        
On this page

Search results