PermissionGrantingStrategy
class PermissionGrantingStrategy implements PermissionGrantingStrategyInterface
The permission granting strategy to apply to the access control list.
Constants
| EQUAL | |
| ALL | |
| ANY |
Methods
| setAuditLogger(AuditLoggerInterface $auditLogger) | ||
| bool | isGranted(AclInterface $acl, array $masks, array $sids, bool $administrativeMode = false) Determines whether access to a domain object is to be granted. | |
| bool | isFieldGranted(AclInterface $acl, string $field, array $masks, array $sids, bool $administrativeMode = false) Determines whether access to a domain object's field is to be granted. |
Details
setAuditLogger(AuditLoggerInterface $auditLogger)
Parameters
| AuditLoggerInterface | $auditLogger |
bool isGranted(AclInterface $acl, array $masks, array $sids, bool $administrativeMode = false)
Determines whether access to a domain object is to be granted.
Parameters
| AclInterface | $acl | |
| array | $masks | |
| array | $sids | |
| bool | $administrativeMode |
Return Value
| bool |
bool isFieldGranted(AclInterface $acl, string $field, array $masks, array $sids, bool $administrativeMode = false)
Determines whether access to a domain object's field is to be granted.
Parameters
| AclInterface | $acl | |
| string | $field | |
| array | $masks | |
| array | $sids | |
| bool | $administrativeMode |
Return Value
| bool |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Security/Acl/Domain/PermissionGrantingStrategy.html