Class humhub\modules\admin\models\forms\UserGroupForm

Inheritancehumhub\modules\admin\models\forms\UserGroupForm » yii\base\Model

Description of UserGroupForm

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$currentGroups \humhub\modules\admin\models\forms\type humhub\modules\admin\models\forms\UserGroupForm
$groupSelection \humhub\modules\admin\models\forms\type humhub\modules\admin\models\forms\UserGroupForm
$user \humhub\modules\admin\models\forms\type humhub\modules\admin\models\forms\UserGroupForm

Public Methods

Hide inherited methods

MethodDescriptionDefined By
attributeLabels() humhub\modules\admin\models\forms\UserGroupForm
getGroupItems() Returns an id => groupname array representation of the given $groups array. humhub\modules\admin\models\forms\UserGroupForm
rules() humhub\modules\admin\models\forms\UserGroupForm
save() Aligns the given group selection with the db humhub\modules\admin\models\forms\UserGroupForm
setUser() Sets the user data and intitializes the from selection humhub\modules\admin\models\forms\UserGroupForm

Property Details

$currentGroups public property
public \humhub\modules\admin\models\forms\type $currentGroups null
$groupSelection public property
public \humhub\modules\admin\models\forms\type $groupSelection null
$user public property
public \humhub\modules\admin\models\forms\type $user null

Method Details

attributeLabels() public method

public void attributeLabels ( )
getGroupItems() public static method

Returns an id => groupname array representation of the given $groups array.

public static \humhub\modules\admin\models\forms\type getGroupItems ( $groups )
$groups array

Array of Group models

return \humhub\modules\admin\models\forms\type

Array in form of id => groupname

rules() public method

public void rules ( )
save() public method

Aligns the given group selection with the db

public boolean save ( )
setUser() public method

Sets the user data and intitializes the from selection

public void setUser ( $user )
$user \humhub\modules\admin\models\forms\type