BasicPermissionMap
class BasicPermissionMap implements PermissionMapInterface
This is basic permission map complements the masks which have been defined on the standard implementation of the MaskBuilder.
Constants
PERMISSION_VIEW | |
PERMISSION_EDIT | |
PERMISSION_CREATE | |
PERMISSION_DELETE | |
PERMISSION_UNDELETE | |
PERMISSION_OPERATOR | |
PERMISSION_MASTER | |
PERMISSION_OWNER |
Methods
__construct() | ||
array | getMasks(string $permission, object $object) Returns an array of bitmasks. | |
bool | contains(string $permission) Whether this map contains the given permission |
Details
__construct()
array getMasks(string $permission, object $object)
Returns an array of bitmasks.
The security identity must have been granted access to at least one of these bitmasks.
Parameters
string | $permission | |
object | $object |
Return Value
array | may return null if permission/object combination is not supported |
bool contains(string $permission)
Whether this map contains the given permission
Parameters
string | $permission |
Return Value
bool |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Security/Acl/Permission/BasicPermissionMap.html