Class humhub\modules\admin\models\UserSearch

Inheritancehumhub\modules\admin\models\UserSearch » humhub\modules\user\models\User » humhub\modules\content\components\ContentContainerActiveRecord » humhub\components\ActiveRecord » yii\db\ActiveRecord
ImplementsSerializable, humhub\modules\search\interfaces\Searchable, yii\web\IdentityInterface

Description of UserSearch

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__get() humhub\modules\user\models\User
afterDelete() humhub\modules\content\components\ContentContainerActiveRecord
afterSave() humhub\modules\content\components\ContentContainerActiveRecord
attributeLabels() humhub\modules\user\models\User
attributes() humhub\modules\admin\models\UserSearch
beforeDelete() Before Delete of a User humhub\modules\user\models\User
beforeSave() humhub\components\ActiveRecord
behaviors() humhub\modules\user\models\User
can() Checks if the current user has the given Permission on this ContentContainerActiveRecord. humhub\modules\content\components\ContentContainerActiveRecord
canAccessPrivateContent() Checks if the user is allowed to access private content in this container humhub\modules\content\components\ContentContainerActiveRecord
canApproveUsers() User can approve other users humhub\modules\user\models\User
createUrl() Creates url in content container scope. humhub\modules\content\components\ContentContainerActiveRecord
find() humhub\modules\user\models\User
findByGuid() humhub\modules\content\components\ContentContainerActiveRecord
findIdentity() humhub\modules\user\models\User
findIdentityByAccessToken() humhub\modules\user\models\User
getAuthKey() humhub\modules\user\models\User
getAuths() humhub\modules\user\models\User
getContentContainerRecord() Returns the related ContentContainer model (e.g. Space or User) humhub\modules\content\components\ContentContainerActiveRecord
getCreatedBy() Relation to User defined in created_by attribute humhub\components\ActiveRecord
getCurrentPassword() humhub\modules\user\models\User
getDefaultContentVisibility() Determines the default visibility of this container type. humhub\modules\content\components\ContentContainerActiveRecord
getDisplayName() Returns the display name of content container humhub\modules\content\components\ContentContainerActiveRecord
getErrorMessage() Returns the errors as string for all attribute or a single attribute. humhub\components\ActiveRecord
getFileManager() Returns the file manager for this record humhub\components\ActiveRecord
getFriends() Returns all user this user is related as friend as ActiveQuery. humhub\modules\user\models\User
getGroupUsers() Returns all GroupUser relations of this user as ActiveQuery humhub\modules\user\models\User
getGroups() Returns all Group relations of this user as ActiveQuery humhub\modules\user\models\User
getHttpSessions() humhub\modules\user\models\User
getId() humhub\modules\user\models\User
getManagerGroups() Returns all Groups this user is a maanger of as ActiveQuery. humhub\modules\user\models\User
getManagerGroupsUser() Returns all GroupUser relations this user is a manager of as ActiveQuery. humhub\modules\user\models\User
getModuleManager() Returns a ModuleManager humhub\modules\content\components\ContentContainerActiveRecord
getPermissionManager() Returns a ContentContainerPermissionManager instance for this ContentContainerActiveRecord as permission object and the given user (or current user if not given) as permission subject. humhub\modules\content\components\ContentContainerActiveRecord
getProfile() humhub\modules\user\models\User
getProfileBannerImage() Returns the Profile Banner Image Object for this Content Base humhub\modules\content\components\ContentContainerActiveRecord
getProfileImage() Returns the Profile Image Object for this Content Base humhub\modules\content\components\ContentContainerActiveRecord
getSearchAttributes() Returns an array of informations used by search subsystem. humhub\modules\user\models\User
getSpaces() humhub\modules\user\models\User
getStatusAttributes() humhub\modules\admin\models\UserSearch
getTags() Returns an array with assigned Tags humhub\modules\user\models\User
getUniqueId() Returns a unique id for this record/model humhub\components\ActiveRecord
getUpdatedBy() Relation to User defined in updated_by attribute humhub\components\ActiveRecord
getUrl() Should be overwritten by implementation humhub\modules\content\components\ContentContainerActiveRecord
getUserGroup() Returns user group for the given $user or current logged in user if no $user instance was provided. humhub\modules\content\components\ContentContainerActiveRecord
getUserGroups() Returns user groups humhub\modules\content\components\ContentContainerActiveRecord
getWallOut() Returns the wall output for this content container. humhub\modules\content\components\ContentContainerActiveRecord
hasGroup() Checks if the user has at least one group assigned. humhub\modules\user\models\User
hasTags() Checks if user has tags humhub\modules\user\models\User
is() Checks if the given $user instance shares the same identity with this user instance. humhub\modules\user\models\User
isActive() humhub\modules\user\models\User
isArchived() Returns weather or not the contentcontainer is archived. (Default false). humhub\modules\content\components\ContentContainerActiveRecord
isCurrentUser() Checks if this user is the current logged in user. humhub\modules\user\models\User
isSystemAdmin() Checks if user is system administrator humhub\modules\user\models\User
isVisible() Specifies whether the user should appear in user lists or in the search. humhub\modules\user\models\User
isVisibleFor() Checks the current visibility setting of this ContentContainerActiveRecord humhub\modules\content\components\ContentContainerActiveRecord
rules() humhub\modules\admin\models\UserSearch
scenarios() humhub\modules\admin\models\UserSearch
search() Creates data provider instance with search query applied humhub\modules\admin\models\UserSearch
serialize() Serializes attributes and oldAttributes of this record. humhub\components\ActiveRecord
setUpApproved() humhub\modules\user\models\User
softDelete() humhub\modules\user\models\User
tableName() humhub\modules\user\models\User
unserialize() Unserializes the given string, calls the init() function and sets the attributes and oldAttributes. humhub\components\ActiveRecord
updateSearch() Update user record in search index humhub\modules\user\models\User
validateAuthKey() humhub\modules\user\models\User

Events

Hide inherited events

EventTypeDescriptionDefined By
EVENT_BEFORE_SOFT_DELETE humhub\modules\user\events\UserEvent An event that is triggered when the user is soft deleted (without contents) and also before complete deletion. humhub\modules\user\models\User
EVENT_CHECK_VISIBILITY \humhub\modules\user\models\Event An event that is triggered when the user visibility is checked via isVisible(). humhub\modules\user\models\User

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
STATUS_DISABLED 0 User Status Flags humhub\modules\user\models\User
STATUS_ENABLED 1 humhub\modules\user\models\User
STATUS_NEED_APPROVAL 2 humhub\modules\user\models\User
STATUS_SOFT_DELETED 3 humhub\modules\user\models\User
USERGROUP_FRIEND 'u_friend' humhub\modules\user\models\User
USERGROUP_GUEST 'u_guest' humhub\modules\user\models\User
USERGROUP_SELF 'u_self' User Groups humhub\modules\user\models\User
USERGROUP_USER 'u_user' humhub\modules\user\models\User
VISIBILITY_ALL 2 humhub\modules\user\models\User
VISIBILITY_REGISTERED_ONLY 1 Visibility Modes humhub\modules\user\models\User

Property Details

$freeText public property

A free text search

public string $freeText null
$query public property

Method Details

attributes() public method

public void attributes ( )
getStatusAttributes() public static method

public static void getStatusAttributes ( )
rules() public method

public void rules ( )
scenarios() public method

public void scenarios ( )
search() public method

Creates data provider instance with search query applied

public \yii\data\ActiveDataProvider search ( $params )
$params array