PHP Класс CakeDC\Users\Model\Entity\User

Наследование: extends Cake\ORM\Entity
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_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.

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
_getAvatar ( ) : string | null Getter for user avatar
_setConfirmPassword ( string $password ) : boolean | string
_setPassword ( string $password ) : boolean | string
_setTos ( string $tos ) : boolean

Описание методов

_getAvatar() защищенный Метод

Getter for user avatar
protected _getAvatar ( ) : string | null
Результат string | null avatar

_setConfirmPassword() защищенный Метод

protected _setConfirmPassword ( string $password ) : boolean | string
$password string password that will be confirm.
Результат boolean | string

_setPassword() защищенный Метод

protected _setPassword ( string $password ) : boolean | string
$password string password that will be set.
Результат boolean | string

_setTos() защищенный Метод

protected _setTos ( string $tos ) : boolean
$tos string tos option. It will be set the tos_date
Результат boolean

checkPassword() публичный Метод

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.
Результат boolean

getPasswordHasher() публичный Метод

Return the configured Password Hasher
public getPasswordHasher ( ) : mixed
Результат mixed

hashPassword() публичный Метод

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
Результат mixed

tokenExpired() публичный Метод

Returns if the token has already expired
public tokenExpired ( ) : boolean
Результат boolean

updateToken() публичный Метод

Generate token_expires and token in a user
public updateToken ( integer $tokenExpiration ) : void
$tokenExpiration integer seconds to expire the token from Now
Результат void

Описание свойств

$_accessible защищенное свойство

Fields that can be mass assigned using newEntity() or patchEntity().
protected array $_accessible
Результат array

$_hidden защищенное свойство

Fields that are excluded from JSON an array versions of the entity.
protected array $_hidden
Результат array