PHP Class CakeDC\Users\Model\Entity\User

Inheritance: extends Cake\ORM\Entity
Afficher le fichier Open project: cakedc/users

Protected Properties

Свойство Type Description
$_accessible array Fields that can be mass assigned using newEntity() or patchEntity().
$_hidden array Fields that are excluded from JSON an array versions of the entity.

Méthodes publiques

Méthode Description
checkPassword ( string $password, string $hashedPassword ) : boolean Checks if a password is correctly hashed
getPasswordHasher ( ) : mixed Return the configured Password Hasher
hashPassword ( string $password ) : mixed Hash a password using the configured password hasher, use DefaultPasswordHasher if no one was configured
tokenExpired ( ) : boolean Returns if the token has already expired
updateToken ( integer $tokenExpiration ) : void Generate token_expires and token in a user

Méthodes protégées

Méthode Description
_getAvatar ( ) : string | null Getter for user avatar
_setConfirmPassword ( string $password ) : boolean | string
_setPassword ( string $password ) : boolean | string
_setTos ( string $tos ) : boolean

Method Details

_getAvatar() protected méthode

Getter for user avatar
protected _getAvatar ( ) : string | null
Résultat string | null avatar

_setConfirmPassword() protected méthode

protected _setConfirmPassword ( string $password ) : boolean | string
$password string password that will be confirm.
Résultat boolean | string

_setPassword() protected méthode

protected _setPassword ( string $password ) : boolean | string
$password string password that will be set.
Résultat boolean | string

_setTos() protected méthode

protected _setTos ( string $tos ) : boolean
$tos string tos option. It will be set the tos_date
Résultat boolean

checkPassword() public méthode

Checks if a password is correctly hashed
public checkPassword ( string $password, string $hashedPassword ) : boolean
$password string password that will be check.
$hashedPassword string hash used to check password.
Résultat boolean

getPasswordHasher() public méthode

Return the configured Password Hasher
public getPasswordHasher ( ) : mixed
Résultat mixed

hashPassword() public méthode

Hash a password using the configured password hasher, use DefaultPasswordHasher if no one was configured
public hashPassword ( string $password ) : mixed
$password string password to be hashed
Résultat mixed

tokenExpired() public méthode

Returns if the token has already expired
public tokenExpired ( ) : boolean
Résultat boolean

updateToken() public méthode

Generate token_expires and token in a user
public updateToken ( integer $tokenExpiration ) : void
$tokenExpiration integer seconds to expire the token from Now
Résultat void

Property Details

$_accessible protected_oe property

Fields that can be mass assigned using newEntity() or patchEntity().
protected array $_accessible
Résultat array

$_hidden protected_oe property

Fields that are excluded from JSON an array versions of the entity.
protected array $_hidden
Résultat array