Свойство | Тип | Описание | |
---|---|---|---|
$assertionPluginManager | |||
$assertions | array | ||
$rbac | Rbac\Rbac | ||
$roleService |
Метод | Описание | |
---|---|---|
__construct ( Rbac\Rbac $rbac, |
Constructor | |
getIdentity ( ) : ZfcRbac\Identity\IdentityInterface | null | Get the current identity from the role service | |
hasAssertion ( string | Rbac\Permission\PermissionInterface $permission ) : boolean | Checks if a assertion exists | |
isGranted ( string | Rbac\Permission\PermissionInterface $permission, mixed $context = null ) : boolean | Check if the permission is granted to the current identity | |
setAssertion ( string | Rbac\Permission\PermissionInterface $permission, string | callable | ZfcRbac\Assertion\AssertionInterface $assertion ) : void | Set an assertion | |
setAssertions ( array $assertions ) : void | Set assertions |
Метод | Описание | |
---|---|---|
assert ( string | callable | ZfcRbac\Assertion\AssertionInterface $assertion, mixed $context = null ) : boolean |
public __construct ( Rbac\Rbac $rbac, |
||
$rbac | Rbac\Rbac | |
$roleService | ||
$assertionPluginManager |
public getIdentity ( ) : ZfcRbac\Identity\IdentityInterface | null | ||
Результат | ZfcRbac\Identity\IdentityInterface | null |
public hasAssertion ( string | Rbac\Permission\PermissionInterface $permission ) : boolean | ||
$permission | string | Rbac\Permission\PermissionInterface | |
Результат | boolean |
public setAssertions ( array $assertions ) : void | ||
$assertions | array | |
Результат | void |
protected AssertionPluginManager,ZfcRbac\Assertion $assertionPluginManager | ||
Результат |