Class yeesoft\user\models\search\UserSearch

Inheritanceyeesoft\user\models\search\UserSearch » yeesoft\models\User » yeesoft\models\UserIdentity » yeesoft\db\ActiveRecord » yii\db\ActiveRecord
Implementsyii\web\IdentityInterface

UserSearch represents the model behind the search form about yeesoft\models\User.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
assignRole() Assign role to user yeesoft\models\User
assignRoles() Assign roles to user yeesoft\models\User
attributeLabels() yeesoft\models\User
beforeDelete() Don't let delete yourself and don't let non-superadmin delete superadmin yeesoft\models\User
beforeSave() Make sure user will not deactivate himself and superadmin could not demote himself Also don't let non-superadmin edit superadmin yeesoft\models\User
behaviors() yeesoft\models\User
canRoute() Useful for Menu widget yeesoft\models\User
find() yeesoft\models\User
findByConfirmationToken() Finds user by confirmation token yeesoft\models\UserIdentity
findByUsername() Finds user by username yeesoft\models\UserIdentity
findIdentity() yeesoft\models\UserIdentity
findIdentityByAccessToken() yeesoft\models\UserIdentity
findInactiveByConfirmationToken() Finds user by confirmation token yeesoft\models\UserIdentity
generateAuthKey() Generates "remember me" authentication key yeesoft\models\UserIdentity
generateConfirmationToken() Generates new confirmation token yeesoft\models\UserIdentity
generatePasswordResetToken() Generates new password reset token yeesoft\models\User
getAuthKey() yeesoft\models\UserIdentity
getAvatar() yeesoft\models\User
getCreatedDate() Get created date yeesoft\models\User
getCreatedDatetime() Get created datetime yeesoft\models\User
getCreatedTime() Get created time yeesoft\models\User
getCurrentUser() Store result in session to prevent multiple db requests with multiple calls yeesoft\models\User
getId() yeesoft\models\UserIdentity
getRoles() yeesoft\models\User
getStatusList() GetStatusList yeesoft\models\User
getStatusValue() GetStatusValue yeesoft\models\User
getUpdatedDate() Get created date yeesoft\models\User
getUpdatedDatetime() Get created datetime yeesoft\models\User
getUpdatedTime() Get created time yeesoft\models\User
getUsersList() GetUsersList yeesoft\models\User
hasPermission() yeesoft\models\User
hasRole() yeesoft\models\User
isMultilingual() Returns TRUE if model support multilingual behavior. yeesoft\db\ActiveRecord
removeAvatar() yeesoft\models\User
removeConfirmationToken() Removes confirmation token yeesoft\models\UserIdentity
revokeRole() Revoke role from user yeesoft\models\User
rules() yeesoft\user\models\search\UserSearch
scenarios() yeesoft\user\models\search\UserSearch
search() yeesoft\user\models\search\UserSearch
setAvatars() yeesoft\models\User
setPassword() Generates password hash from password and sets it to the model yeesoft\models\UserIdentity
tableName() yeesoft\models\User
validateAuthKey() yeesoft\models\UserIdentity
validateBindToIp() Validate bind_to_ip attr to be in correct format yeesoft\models\User
validateEmailUnique() Check that there is no such confirmed E-mail in the system yeesoft\models\User
validatePassword() Validates password yeesoft\models\UserIdentity

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
SCENARIO_NEW_USER 'newUser' yeesoft\models\User
STATUS_ACTIVE 10 yeesoft\models\User
STATUS_BANNED -1 yeesoft\models\User
STATUS_INACTIVE 0 yeesoft\models\User

Method Details

rules() public method

public void rules ( )
scenarios() public method

public void scenarios ( )
search() public method

public void search ( $params )
$params