Class humhub\modules\content\components\ContentContainerPermissionManager

Inheritancehumhub\modules\content\components\ContentContainerPermissionManager » humhub\modules\user\components\PermissionManager » yii\base\Component

Public Methods

Hide inherited methods

MethodDescriptionDefined By
can() Verifies a given $permission or $permission array for a permission subject. humhub\modules\user\components\PermissionManager
clear() Clears access cache humhub\modules\user\components\PermissionManager
createPermissionArray() Returns Permission Array humhub\modules\user\components\PermissionManager
findUsersByPermission() Returns a query for users which are granted given permission humhub\modules\user\components\PermissionManager
getById() Returns a BasePermission by Id humhub\modules\user\components\PermissionManager
getGroupState() Returns the group permission state of the given group or goups. humhub\modules\user\components\PermissionManager
getPermissions() Returns a list of all Permission objects humhub\modules\user\components\PermissionManager
setGroupState() Sets the state for a given groupId. humhub\modules\user\components\PermissionManager
verify() Verifies a single permission for a given permission subject. humhub\modules\content\components\ContentContainerPermissionManager

Property Details

Method Details

createPermissionRecord() protected method

Creates a Permission Database record

protected \yii\db\ActiveRecord createPermissionRecord ( )
getModulePermissions() protected method

Returns permissions provided by a module

protected array getModulePermissions ( \yii\base\Module $module )
$module \yii\base\Module
return array

Of BasePermissions

throws \yii\base\InvalidConfigException
getQuery() protected method

Creates a Permission Database Query

protected \yii\db\ActiveQuery getQuery ( )
verify() public method

Verifies a single permission for a given permission subject.

public boolean verify ( humhub\libs\BasePermission $permission )
$permission humhub\libs\BasePermission