Class dektrium\user\Finder

Inheritancedektrium\user\Finder » yii\base\Object

Finder provides some useful methods for finding active record models.

Property Details

$accountQuery protected property
$profileQuery protected property
protected \yii\db\ActiveQuery $profileQuery null
$tokenQuery protected property
protected \yii\db\ActiveQuery $tokenQuery null
$userQuery protected property
protected \yii\db\ActiveQuery $userQuery null

Method Details

findAccount() public method

public dektrium\user\models\query\AccountQuery findAccount ( )
findAccountById() public method

Finds an account by id.

public dektrium\user\models\Account|null findAccountById ( $id )
$id int
findProfile() public method

Finds a profile.

public \yii\db\ActiveQuery findProfile ( $condition )
$condition mixed
findProfileById() public method

Finds a profile by user id.

public null|dektrium\user\models\Profile findProfileById ( $id )
$id int
findToken() public method

Finds a token by user id and code.

public \yii\db\ActiveQuery findToken ( $condition )
$condition mixed
findTokenByParams() public method

Finds a token by params.

public dektrium\user\models\Token findTokenByParams ( $userId, $code, $type )
$userId integer
$code string
$type integer
findUser() public method

Finds a user by the given condition.

public \yii\db\ActiveQuery findUser ( $condition )
$condition mixed

Condition to be used on search.

findUserByEmail() public method

Finds a user by the given email.

public dektrium\user\models\User findUserByEmail ( $email )
$email string

Email to be used on search.

findUserById() public method

Finds a user by the given id.

public dektrium\user\models\User findUserById ( $id )
$id int

User id to be used on search.

findUserByUsername() public method

Finds a user by the given username.

public dektrium\user\models\User findUserByUsername ( $username )
$username string

Username to be used on search.

findUserByUsernameOrEmail() public method

Finds a user by the given username or email.

public dektrium\user\models\User findUserByUsernameOrEmail ( $usernameOrEmail )
$usernameOrEmail string

Username or email to be used on search.

getAccountQuery() public method

public \yii\db\ActiveQuery getAccountQuery ( )
getProfileQuery() public method

public \yii\db\ActiveQuery getProfileQuery ( )
getTokenQuery() public method

public \yii\db\ActiveQuery getTokenQuery ( )
getUserQuery() public method

public \yii\db\ActiveQuery getUserQuery ( )
setAccountQuery() public method

public void setAccountQuery ( \yii\db\ActiveQuery $accountQuery )
$accountQuery \yii\db\ActiveQuery
setProfileQuery() public method

public void setProfileQuery ( \yii\db\ActiveQuery $profileQuery )
$profileQuery \yii\db\ActiveQuery
setTokenQuery() public method

public void setTokenQuery ( \yii\db\ActiveQuery $tokenQuery )
$tokenQuery \yii\db\ActiveQuery
setUserQuery() public method

public void setUserQuery ( \yii\db\ActiveQuery $userQuery )
$userQuery \yii\db\ActiveQuery