Class humhub\modules\space\permissions\InviteUsers

Inheritancehumhub\modules\space\permissions\InviteUsers » humhub\libs\BasePermission » yii\base\BaseObject

Invite new users to space permission

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$defaultState string humhub\libs\BasePermission
$description string Description of the permission humhub\modules\space\permissions\InviteUsers
$fixedGroups array Default fixed groups humhub\modules\space\permissions\InviteUsers
$id string Id of the permission (default is classname) humhub\libs\BasePermission
$moduleId string Module id which belongs to the permission humhub\modules\space\permissions\InviteUsers
$title string Title of the permission humhub\modules\space\permissions\InviteUsers

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() humhub\modules\space\permissions\InviteUsers
canChangeState() Checks if permission state can be changed humhub\libs\BasePermission
getDefaultState() Returns the default state of the permission. humhub\libs\BasePermission
getDescription() Returns the description humhub\libs\BasePermission
getId() Returns the ID humhub\libs\BasePermission
getLabelForState() Returns the label for given State humhub\libs\BasePermission
getModuleId() Returns the module id humhub\libs\BasePermission
getTitle() Returns the title humhub\libs\BasePermission
hasId() Checks the given id belongs to this permission humhub\libs\BasePermission

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getConfiguredState() Returns the default state set in the configration params 'defaultPermissions'. humhub\libs\BasePermission

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
STATE_ALLOW 1 humhub\libs\BasePermission
STATE_DEFAULT '' Permission States humhub\libs\BasePermission
STATE_DENY 0 humhub\libs\BasePermission

Property Details

$defaultAllowedGroups public property

Default allowed groups

public array $defaultAllowedGroups = [\humhub\modules\space\models\Space::USERGROUP_OWNER, \humhub\modules\space\models\Space::USERGROUP_ADMIN, \humhub\modules\space\models\Space::USERGROUP_MODERATOR, \humhub\modules\space\models\Space::USERGROUP_MEMBER]
$description protected property

Description of the permission

protected string $description 'Allows the user to invite new members to the space'
$fixedGroups protected property

Default fixed groups

protected array $fixedGroups = [\humhub\modules\space\models\Space::USERGROUP_USER, \humhub\modules\space\models\Space::USERGROUP_GUEST]
$moduleId protected property

Module id which belongs to the permission

protected string $moduleId 'space'
$title protected property

Title of the permission

protected string $title 'Invite users'

Method Details

__construct() public method

public void __construct ( $config = [] )
$config