Class dektrium\user\models\Account

Inheritancedektrium\user\models\Account » yii\db\ActiveRecord

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
fetchAccount() Tries to find account, otherwise creates new account. dektrium\user\models\Account
fetchUser() Tries to find user or create a new one. dektrium\user\models\Account
getFinder() dektrium\user\models\Account

Property Details

$finder protected static property
protected static dektrium\user\Finder $finder null
$module protected property
protected dektrium\user\Module $module null

Method Details

connect() public method

public void connect ( dektrium\user\models\User $user )
$user
connectWithUser() public static method

Tries to find an account and then connect that account with current user.

public static void connectWithUser ( \yii\authclient\ClientInterface $client )
$client \yii\authclient\ClientInterface
create() public static method

public static void create ( \yii\authclient\ClientInterface $client )
$client
fetchAccount() protected static method

Tries to find account, otherwise creates new account.

protected static dektrium\user\models\Account fetchAccount ( \yii\authclient\ClientInterface $client )
$client \yii\authclient\ClientInterface
throws \yii\base\InvalidConfigException
fetchUser() protected static method

Tries to find user or create a new one.

protected static dektrium\user\models\User|bool fetchUser ( dektrium\user\models\Account $account )
$account dektrium\user\models\Account
return dektrium\user\models\User|bool

False when can't create user.

find() public static method

public static dektrium\user\models\query\AccountQuery find ( )
getConnectUrl() public method

Returns connect url.

public string getConnectUrl ( )
getDecodedData() public method

public mixed getDecodedData ( )
return mixed

Json decoded properties.

getFinder() protected static method

protected static dektrium\user\Finder getFinder ( )
getIsConnected() public method

public bool getIsConnected ( )
return bool

Whether this social account is connected to user.

getUser() public method

public dektrium\user\models\User getUser ( )
init() public method

public void init ( )
tableName() public static method

public static void tableName ( )