Class humhub\modules\space\permissions\CreatePublicSpace

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

CreatePublicSpace Permission

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() humhub\modules\space\permissions\CreatePublicSpace
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

$defaultState protected property
protected string $defaultState self::STATE_ALLOW
$description protected property

Description of the permission

protected string $description 'Can create public visible spaces. (Listed in directory)'
$id protected property

Id of the permission (default is classname)

protected string $id 'create_public_space'
$moduleId protected property

Module id which belongs to the permission

protected string $moduleId 'space'
$title protected property

Title of the permission

protected string $title 'Create public space'

Method Details

__construct() public method

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