Class humhub\modules\content\permissions\CreatePrivateContent
Inheritance | humhub\modules\content\permissions\CreatePrivateContent » humhub\libs\BasePermission » yii\base\BaseObject |
---|
CreatePrivateContent Permission
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$contentContainer | humhub\modules\content\components\ContentContainerActiveRecord | humhub\libs\BasePermission | |
$defaultAllowedGroups | array | Default allowed groups | humhub\modules\content\permissions\CreatePrivateContent |
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$defaultState | string | humhub\libs\BasePermission | |
$description | string | Description of the permission | humhub\libs\BasePermission |
$fixedGroups | array | Default fixed groups | humhub\modules\content\permissions\CreatePrivateContent |
$id | string | Id of the permission (default is classname) | humhub\libs\BasePermission |
$moduleId | string | Module id which belongs to the permission | humhub\modules\content\permissions\CreatePrivateContent |
$title | string | Title of the permission | humhub\libs\BasePermission |
Public Methods
Method | Description | Defined By |
---|---|---|
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\modules\content\permissions\CreatePrivateContent |
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\modules\content\permissions\CreatePrivateContent |
hasId() | Checks the given id belongs to this permission | humhub\libs\BasePermission |
Protected Methods
Method | Description | Defined By |
---|---|---|
getConfiguredState() | Returns the default state set in the configration params 'defaultPermissions'. | humhub\libs\BasePermission |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
STATE_ALLOW | 1 | humhub\libs\BasePermission | |
STATE_DEFAULT | '' | Permission States | humhub\libs\BasePermission |
STATE_DENY | 0 | humhub\libs\BasePermission |
Property Details
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, \humhub\modules\user\models\User::USERGROUP_SELF]
Default fixed groups
protected array $fixedGroups = [\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_USER, \humhub\modules\space\models\Space::USERGROUP_GUEST, \humhub\modules\user\models\User::USERGROUP_SELF, \humhub\modules\user\models\User::USERGROUP_FRIEND, \humhub\modules\user\models\User::USERGROUP_USER, \humhub\modules\user\models\User::USERGROUP_GUEST]
Module id which belongs to the permission