PHP 클래스 common\models\User

상속: extends yii\db\ActiveRecord, implements yii\web\IdentityInterface
파일 보기 프로젝트 열기: yiisoft/yii2-app-advanced 1 사용 예제들

공개 메소드들

메소드 설명
behaviors ( )
findByPasswordResetToken ( string $token ) : static | null Finds user by password reset token
findByUsername ( string $username ) : static | null Finds user by username
findIdentity ( $id )
findIdentityByAccessToken ( $token, $type = null )
generateAuthKey ( ) Generates "remember me" authentication key
generatePasswordResetToken ( ) Generates new password reset token
getAuthKey ( )
getId ( )
isPasswordResetTokenValid ( string $token ) : boolean Finds out if password reset token is valid
removePasswordResetToken ( ) Removes password reset token
rules ( )
setPassword ( string $password ) Generates password hash from password and sets it to the model
tableName ( )
validateAuthKey ( $authKey )
validatePassword ( string $password ) : boolean Validates password

메소드 상세

behaviors() 공개 메소드

public behaviors ( )

findByPasswordResetToken() 공개 정적인 메소드

Finds user by password reset token
public static findByPasswordResetToken ( string $token ) : static | null
$token string password reset token
리턴 static | null

findByUsername() 공개 정적인 메소드

Finds user by username
public static findByUsername ( string $username ) : static | null
$username string
리턴 static | null

findIdentity() 공개 정적인 메소드

public static findIdentity ( $id )

findIdentityByAccessToken() 공개 정적인 메소드

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

generateAuthKey() 공개 메소드

Generates "remember me" authentication key
public generateAuthKey ( )

generatePasswordResetToken() 공개 메소드

Generates new password reset token

getAuthKey() 공개 메소드

public getAuthKey ( )

getId() 공개 메소드

public getId ( )

isPasswordResetTokenValid() 공개 정적인 메소드

Finds out if password reset token is valid
public static isPasswordResetTokenValid ( string $token ) : boolean
$token string password reset token
리턴 boolean

removePasswordResetToken() 공개 메소드

Removes password reset token

rules() 공개 메소드

public rules ( )

setPassword() 공개 메소드

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

tableName() 공개 정적인 메소드

public static tableName ( )

validateAuthKey() 공개 메소드

public validateAuthKey ( $authKey )

validatePassword() 공개 메소드

Validates password
public validatePassword ( string $password ) : boolean
$password string password to validate
리턴 boolean if password provided is valid for current user