Class dektrium\user\models\Token

Inheritancedektrium\user\models\Token » yii\db\ActiveRecord
Uses Traitsdektrium\user\traits\ModuleTrait

Token Active Record model.

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
TYPE_CONFIRMATION 0 dektrium\user\models\Token
TYPE_CONFIRM_NEW_EMAIL 2 dektrium\user\models\Token
TYPE_CONFIRM_OLD_EMAIL 3 dektrium\user\models\Token
TYPE_RECOVERY 1 dektrium\user\models\Token

Method Details

beforeSave() public method

public void beforeSave ( $insert )
$insert
getIsExpired() public method

public bool getIsExpired ( )
return bool

Whether token has expired.

getUrl() public method

public string getUrl ( )
getUser() public method

public \yii\db\ActiveQuery getUser ( )
primaryKey() public static method

public static void primaryKey ( )
tableName() public static method

public static void tableName ( )