PHP Class skeeks\cms\models\User

Inheritance: extends Core, implements yii\web\IdentityInterface, use trait skeeks\cms\models\behaviors\traits\HasRelatedPropertiesTrait
Afficher le fichier Open project: skeeks-cms/cms Class Usage Examples

Protected Properties

Свойство Type Description
$_roleNames

Méthodes publiques

Méthode Description
_cmsAfterSave ( $e )
attributeLabels ( )
behaviors ( )
checkDataBeforeDelete ( $e )
extraFields ( )
findByEmail ( $email ) : static Finds user by email
findByPasswordResetToken ( string $token ) : static | null Finds user by password reset token
findByPhone ( $phone ) : null | CmsUser
findByUsername ( string $username ) : static Finds user by username
findByUsernameOrEmail ( $value ) : User Поиск пользователя по email или логину
findIdentity ( $id )
findIdentityByAccessToken ( $token, $type = null )
generateAuthKey ( ) Generates "remember me" authentication key
generatePasswordResetToken ( ) Generates new password reset token
generateUsername ( ) Генерация логина пользователя
getAuthKey ( )
getAvatarSrc ( integer $width = 50, integer $height = 50, $mode = ManipulatorInterface::THUMBNAIL_OUTBOUND ) : mixed | null | string
getCmsContentElement2cmsUsers ( ) : ActiveQuery
getCmsUserAuthClients ( ) : ActiveQuery
getCmsUserEmails ( ) : ActiveQuery
getCmsUserPhones ( ) : ActiveQuery
getDisplayName ( ) : string
getFavoriteCmsContentElements ( ) : ActiveQuery
getId ( )
getImage ( ) : ActiveQuery
getLastActivityAgo ( ) : integer Время проявления последней активности на сайте
getLastAdminActivityAgo ( ) : integer Время проявления последней активности на сайте
getPageUrl ( string $action = 'view', array $params = [] ) : string TODO: Is depricated > 2.7.1
getProfileUrl ( string $action = 'view', array $params = [] ) : string
getProtectedUsernames ( ) : array Логины которые нельзя удалять, и нельзя менять
getRoleNames ( ) : array
getRoles ( ) : Role[]
getStorageFiles ( ) : ActiveQuery
getUserAuthClients ( ) : ActiveQuery
init ( )
isPasswordResetTokenValid ( string $token ) : boolean Finds out if password reset token is valid
lockAdmin ( ) Установка последней активности пользователя. Больше чем в настройках.
populate ( ) Заполнить модель недостающими данными, которые необходимы для сохранения пользователя
removePasswordResetToken ( ) Removes password reset token
rules ( )
setPassword ( string $password ) Generates password hash from password and sets it to the model
setRoleNames ( array $roleNames = [] )
tableName ( )
updateLastActivity ( ) Обновление времени последней актиности пользователя.
updateLastAdminActivity ( ) Обновление времени последней актиности пользователя.
validateAuthKey ( $authKey )
validatePassword ( string $password ) : boolean Validates password

Method Details

_cmsAfterSave() public méthode

public _cmsAfterSave ( $e )

attributeLabels() public méthode

public attributeLabels ( )

behaviors() public méthode

public behaviors ( )

checkDataBeforeDelete() public méthode

public checkDataBeforeDelete ( $e )

extraFields() public méthode

public extraFields ( )

findByEmail() public static méthode

Finds user by email
public static findByEmail ( $email ) : static
$email
Résultat static

findByPasswordResetToken() public static méthode

Finds user by password reset token
public static findByPasswordResetToken ( string $token ) : static | null
$token string password reset token
Résultat static | null

findByPhone() public static méthode

public static findByPhone ( $phone ) : null | CmsUser
$phone
Résultat null | CmsUser

findByUsername() public static méthode

Finds user by username
public static findByUsername ( string $username ) : static
$username string
Résultat static

findByUsernameOrEmail() public static méthode

Поиск пользователя по email или логину
public static findByUsernameOrEmail ( $value ) : User
$value
Résultat User

findIdentity() public static méthode

public static findIdentity ( $id )

findIdentityByAccessToken() public static méthode

public static findIdentityByAccessToken ( $token, $type = null )

generateAuthKey() public méthode

Generates "remember me" authentication key
public generateAuthKey ( )

generatePasswordResetToken() public méthode

Generates new password reset token

generateUsername() public méthode

Генерация логина пользователя
public generateUsername ( )

getAuthKey() public méthode

public getAuthKey ( )

getAvatarSrc() public méthode

public getAvatarSrc ( integer $width = 50, integer $height = 50, $mode = ManipulatorInterface::THUMBNAIL_OUTBOUND ) : mixed | null | string
$width integer
$height integer
$mode
Résultat mixed | null | string

getCmsContentElement2cmsUsers() public méthode

public getCmsContentElement2cmsUsers ( ) : ActiveQuery
Résultat yii\db\ActiveQuery

getCmsUserAuthClients() public méthode

public getCmsUserAuthClients ( ) : ActiveQuery
Résultat yii\db\ActiveQuery

getCmsUserEmails() public méthode

public getCmsUserEmails ( ) : ActiveQuery
Résultat yii\db\ActiveQuery

getCmsUserPhones() public méthode

public getCmsUserPhones ( ) : ActiveQuery
Résultat yii\db\ActiveQuery

getDisplayName() public méthode

public getDisplayName ( ) : string
Résultat string

getFavoriteCmsContentElements() public méthode

public getFavoriteCmsContentElements ( ) : ActiveQuery
Résultat yii\db\ActiveQuery

getId() public méthode

public getId ( )

getImage() public méthode

public getImage ( ) : ActiveQuery
Résultat yii\db\ActiveQuery

getLastActivityAgo() public méthode

Время проявления последней активности на сайте
public getLastActivityAgo ( ) : integer
Résultat integer

getLastAdminActivityAgo() public méthode

Время проявления последней активности на сайте
public getLastAdminActivityAgo ( ) : integer
Résultat integer

getPageUrl() public méthode

TODO: Is depricated > 2.7.1
public getPageUrl ( string $action = 'view', array $params = [] ) : string
$action string
$params array
Résultat string

getProfileUrl() public méthode

public getProfileUrl ( string $action = 'view', array $params = [] ) : string
$action string
$params array
Résultat string

getProtectedUsernames() public static méthode

Логины которые нельзя удалять, и нельзя менять
public static getProtectedUsernames ( ) : array
Résultat array

getRoleNames() public méthode

public getRoleNames ( ) : array
Résultat array

getRoles() public méthode

public getRoles ( ) : Role[]
Résultat yii\rbac\Role[]

getStorageFiles() public méthode

public getStorageFiles ( ) : ActiveQuery
Résultat yii\db\ActiveQuery

getUserAuthClients() public méthode

public getUserAuthClients ( ) : ActiveQuery
Résultat yii\db\ActiveQuery

init() public méthode

public init ( )

isPasswordResetTokenValid() public static méthode

Finds out if password reset token is valid
public static isPasswordResetTokenValid ( string $token ) : boolean
$token string password reset token
Résultat boolean

lockAdmin() public méthode

Установка последней активности пользователя. Больше чем в настройках.
public lockAdmin ( )

populate() public méthode

Заполнить модель недостающими данными, которые необходимы для сохранения пользователя
public populate ( )

removePasswordResetToken() public méthode

Removes password reset token

rules() public méthode

public rules ( )

setPassword() public méthode

Generates password hash from password and sets it to the model
public setPassword ( string $password )
$password string

setRoleNames() public méthode

public setRoleNames ( array $roleNames = [] )
$roleNames array

tableName() public static méthode

public static tableName ( )

updateLastActivity() public méthode

Только в том случае, если время его последней актиности больше 10 сек.
public updateLastActivity ( )

updateLastAdminActivity() public méthode

Только в том случае, если время его последней актиности больше 10 сек.

validateAuthKey() public méthode

public validateAuthKey ( $authKey )

validatePassword() public méthode

Validates password
public validatePassword ( string $password ) : boolean
$password string password to validate
Résultat boolean if password provided is valid for current user

Property Details

$_roleNames protected_oe property

protected $_roleNames