Class dektrium\user\Finder
| Inheritance | dektrium\user\Finder » yii\base\Object |
|---|
Finder provides some useful methods for finding active record models.
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $accountQuery | dektrium\user\models\query\AccountQuery | dektrium\user\Finder | |
| $profileQuery | \yii\db\ActiveQuery | dektrium\user\Finder | |
| $tokenQuery | \yii\db\ActiveQuery | dektrium\user\Finder | |
| $userQuery | \yii\db\ActiveQuery | dektrium\user\Finder |
Public Methods
Property Details
Method Details
| public dektrium\user\models\query\AccountQuery findAccount ( ) |
Finds an account by id.
| public dektrium\user\models\Account|null findAccountById ( $id ) | ||
| $id | int | |
Finds a profile.
| public \yii\db\ActiveQuery findProfile ( $condition ) | ||
| $condition | mixed | |
Finds a profile by user id.
| public null|dektrium\user\models\Profile findProfileById ( $id ) | ||
| $id | int | |
Finds a token by user id and code.
| public \yii\db\ActiveQuery findToken ( $condition ) | ||
| $condition | mixed | |
Finds a token by params.
| public dektrium\user\models\Token findTokenByParams ( $userId, $code, $type ) | ||
| $userId | integer | |
| $code | string | |
| $type | integer | |
Finds a user by the given condition.
| public \yii\db\ActiveQuery findUser ( $condition ) | ||
| $condition | mixed | Condition to be used on search. |
Finds a user by the given email.
| public dektrium\user\models\User findUserByEmail ( $email ) | ||
| string | Email to be used on search. |
|
Finds a user by the given id.
| public dektrium\user\models\User findUserById ( $id ) | ||
| $id | int | User id to be used on search. |
Finds a user by the given username.
| public dektrium\user\models\User findUserByUsername ( $username ) | ||
| $username | string | Username to be used on search. |
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. |
| public \yii\db\ActiveQuery getAccountQuery ( ) |
| public \yii\db\ActiveQuery getProfileQuery ( ) |
| public \yii\db\ActiveQuery getTokenQuery ( ) |
| public \yii\db\ActiveQuery getUserQuery ( ) |
| public void setAccountQuery ( \yii\db\ActiveQuery $accountQuery ) | ||
| $accountQuery | \yii\db\ActiveQuery | |
| public void setProfileQuery ( \yii\db\ActiveQuery $profileQuery ) | ||
| $profileQuery | \yii\db\ActiveQuery | |
| public void setTokenQuery ( \yii\db\ActiveQuery $tokenQuery ) | ||
| $tokenQuery | \yii\db\ActiveQuery | |
| public void setUserQuery ( \yii\db\ActiveQuery $userQuery ) | ||
| $userQuery | \yii\db\ActiveQuery | |