Class humhub\modules\admin\models\GroupSearch

Inheritancehumhub\modules\admin\models\GroupSearch » humhub\modules\user\models\Group » humhub\components\ActiveRecord » yii\db\ActiveRecord

Description of GroupSearch

Public Methods

Hide inherited methods

MethodDescriptionDefined By
addUser() Adds a user to the group. This function will skip if the user is already a member of the group. humhub\modules\user\models\Group
attributeLabels() humhub\modules\user\models\Group
beforeSave() humhub\components\ActiveRecord
getAdminGroup() Returns the admin group. humhub\modules\user\models\Group
getAdminGroupId() humhub\modules\user\models\Group
getCreatedBy() Relation to User defined in created_by attribute humhub\components\ActiveRecord
getDefaultSpace() humhub\modules\user\models\Group
getDirectoryGroups() humhub\modules\user\models\Group
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
getGroupUser() Returns the GroupUser relation for a given user. humhub\modules\user\models\Group
getGroupUsers() Returns all GroupUser relations for this group as ActiveQuery. humhub\modules\user\models\Group
getManager() Returns all user which are defined as manager in this group as ActiveQuery. humhub\modules\user\models\Group
getRegistrationGroups() Returns groups which are available in user registration humhub\modules\user\models\Group
getSpace() humhub\modules\user\models\Group
getUniqueId() Returns a unique id for this record/model humhub\components\ActiveRecord
getUpdatedBy() Relation to User defined in updated_by attribute humhub\components\ActiveRecord
getUsers() Returns all member user of this group as ActiveQuery humhub\modules\user\models\Group
hasManager() Checks if this group has at least one Manager assigned. humhub\modules\user\models\Group
hasUsers() Checks if this group has at least one user assigned. humhub\modules\user\models\Group
isManager() humhub\modules\user\models\Group
isMember() humhub\modules\user\models\Group
notifyAdminsForUserApproval() Notifies groups admins for approval of new user via e-mail. humhub\modules\user\models\Group
removeUser() Removes a user from the group. humhub\modules\user\models\Group
rules() humhub\modules\admin\models\GroupSearch
scenarios() humhub\modules\admin\models\GroupSearch
search() Creates data provider instance with search query applied humhub\modules\admin\models\GroupSearch
serialize() Serializes attributes and oldAttributes of this record. humhub\components\ActiveRecord
tableName() humhub\modules\user\models\Group
unserialize() Unserializes the given string, calls the init() function and sets the attributes and oldAttributes. humhub\components\ActiveRecord


Hide inherited constants

ConstantValueDescriptionDefined By
SCENARIO_EDIT 'edit' humhub\modules\user\models\Group

Method Details

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