Class humhub\modules\admin\models\forms\UserEditForm
Inheritance | humhub\modules\admin\models\forms\UserEditForm » humhub\modules\user\models\User » humhub\modules\content\components\ContentContainerActiveRecord » humhub\components\ActiveRecord » yii\db\ActiveRecord |
---|---|
Implements | Serializable, humhub\modules\search\interfaces\Searchable, yii\web\IdentityInterface |
Description of UserEditForm
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$controllerBehavior | string | Class name of additional the controller behavior | humhub\modules\content\components\ContentContainerActiveRecord |
$currentGroups | \humhub\modules\admin\models\forms\type | humhub\modules\admin\models\forms\UserEditForm | |
$defaultRoute | string | The default route | humhub\modules\content\components\ContentContainerActiveRecord |
$groupSelection | \humhub\modules\admin\models\forms\type | humhub\modules\admin\models\forms\UserEditForm | |
$registrationGroupId | string|integer | humhub\modules\user\models\User |
Protected Properties
Public Methods
Events
Event | Type | Description | Defined 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
Constant | Value | Description | Defined 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
Method Details
Aligns the given group selection with the db
public boolean afterSave ( $insert, $changedAttributes ) | ||
$insert | ||
$changedAttributes |
public void attributeLabels ( ) |
Returns an id => groupname array representation of the given $groups array.
public static array getGroupItems ( $groups = null ) | ||
$groups | array | Array of Group models |
return | array | In form of id => groupname |
---|
public void getGroupLabel ( ) |
public void initGroupSelection ( ) |
public void scenarios ( ) |