Class humhub\modules\topic\permissions\AddTopic

Inheritancehumhub\modules\topic\permissions\AddTopic » humhub\libs\BasePermission » yii\base\BaseObject

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$defaultAllowedGroups array Default allowed groups humhub\modules\topic\permissions\AddTopic
$defaultState string humhub\libs\BasePermission
$description string Description of the permission humhub\libs\BasePermission
$fixedGroups array Default fixed groups humhub\modules\topic\permissions\AddTopic
$id string Id of the permission (default is classname) humhub\libs\BasePermission
$title string Title of the permission humhub\libs\BasePermission

Public Methods

Hide inherited methods

MethodDescriptionDefined 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\topic\permissions\AddTopic
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\topic\permissions\AddTopic
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 protected property

Default allowed groups

protected 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\user\models\User::USERGROUP_SELF]
$fixedGroups protected property

Default fixed groups

protected array $fixedGroups = [\humhub\modules\space\models\Space::USERGROUP_GUEST, \humhub\modules\space\models\Space::USERGROUP_USER, \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]
$moduleId public property

Module id which belongs to the permission

public string $moduleId 'topic'

Method Details

getDescription() public method

Returns the description

public string getDescription ( )
return string

The description of the permission

getTitle() public method

Returns the title

public string getTitle ( )
return string

The title of the permission