Class humhub\modules\user\models\forms\EditGroupForm

Inheritancehumhub\modules\user\models\forms\EditGroupForm » humhub\modules\user\models\Group » humhub\components\ActiveRecord » yii\db\ActiveRecord
ImplementsSerializable

Description of EditGroupForm

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
afterSave() humhub\modules\user\models\forms\EditGroupForm
attributeLabels() humhub\modules\user\models\Group
beforeSave() humhub\modules\user\models\forms\EditGroupForm
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\user\models\forms\EditGroupForm
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

Constants

Hide inherited constants

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

Property Details

$defaultSpaceGuid public property
public $defaultSpaceGuid = []
$managerGuids public property
public $managerGuids = []

Method Details

addNewManagers() protected method

protected void addNewManagers ( )
afterSave() public method

public void afterSave ( $insert, $changedAttributes )
$insert
$changedAttributes
beforeSave() public method

public void beforeSave ( $insert )
$insert
removeOldManagers() protected method

protected void removeOldManagers ( )
rules() public method

public void rules ( )