PHP Class common\models\Member

Inheritance: extends yii\db\ActiveRecord
Show file Open project: daixianceng/xiaoego.com Class Usage Examples

Public Properties

Property Type Description
$password

Public Methods

Method Description
attributeLabels ( )
behaviors ( )
findByUsername ( string $username ) : static | null Finds user by username
findIdentity ( $id )
findIdentityByAccessToken ( $token, $type = null )
generateAuthKey ( ) Generates "remember me" authentication key
getAuthKey ( )
getGenderList ( )
getGenderMsg ( )
getId ( )
getStatusList ( )
getStatusMsg ( )
getStore ( ) : ActiveQuery
rules ( )
setPassword ( string $password ) Generates password hash from password and sets it to the model
tableName ( )
validateAuthKey ( $authKey )
validatePassword ( string $password ) : boolean Validates password

Method Details

attributeLabels() public method

public attributeLabels ( )

behaviors() public method

public behaviors ( )

findByUsername() public static method

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

findIdentity() public static method

public static findIdentity ( $id )

findIdentityByAccessToken() public static method

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

generateAuthKey() public method

Generates "remember me" authentication key
public generateAuthKey ( )

getAuthKey() public method

public getAuthKey ( )

getGenderList() public static method

public static getGenderList ( )

getGenderMsg() public method

public getGenderMsg ( )

getId() public method

public getId ( )

getStatusList() public static method

public static getStatusList ( )

getStatusMsg() public method

public getStatusMsg ( )

getStore() public method

public getStore ( ) : ActiveQuery
return yii\db\ActiveQuery

rules() public method

public rules ( )

setPassword() public method

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

tableName() public static method

public static tableName ( )

validateAuthKey() public method

public validateAuthKey ( $authKey )

validatePassword() public method

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

Property Details

$password public property

public $password