Acl\Domain\Entry (Component\Security)
Symfony\Component\Security\Acl\Domain\Entry
class Entry implements AuditableEntryInterface
Auditable ACE implementation
Methods
__construct(int $id, AclInterface $acl, SecurityIdentityInterface $sid, string $strategy, int $mask, bool $granting, bool $auditFailure, bool $auditSuccess) Constructor | ||
AclInterface | getAcl() The ACL this ACE is associated with. | |
int | getMask() The permission mask of this ACE | |
int | getId() The primary key of this ACE | |
SecurityIdentityInterface | getSecurityIdentity() The security identity associated with this ACE | |
string | getStrategy() The strategy for comparing masks | |
bool | isAuditFailure() Whether auditing for successful grants is turned on | |
bool | isAuditSuccess() Whether auditing for successful denies is turned on | |
bool | isGranting() Returns whether this ACE is granting, or denying | |
setAuditFailure(bool $boolean) Turns on/off auditing on permissions denials. | ||
setAuditSuccess(bool $boolean) Turns on/off auditing on permission grants. | ||
setMask(int $mask) Sets the permission mask | ||
setStrategy(string $strategy) Sets the mask comparison strategy | ||
string | serialize() Implementation of \Serializable | |
unserialize(string $serialized) Implementation of \Serializable |
Details
public __construct(int $id, AclInterface $acl, SecurityIdentityInterface $sid, string $strategy, int $mask, bool $granting, bool $auditFailure, bool $auditSuccess)
Constructor
public AclInterface getAcl()
The ACL this ACE is associated with.
public int getMask()
The permission mask of this ACE
public int getId()
The primary key of this ACE
public SecurityIdentityInterface getSecurityIdentity()
The security identity associated with this ACE
public string getStrategy()
The strategy for comparing masks
public bool isAuditFailure()
Whether auditing for successful grants is turned on
public bool isAuditSuccess()
Whether auditing for successful denies is turned on
public bool isGranting()
Returns whether this ACE is granting, or denying
public setAuditFailure(bool $boolean)
Turns on/off auditing on permissions denials.
Do never call this method directly. Use the respective methods on the AclInterface instead.
public setAuditSuccess(bool $boolean)
Turns on/off auditing on permission grants.
Do never call this method directly. Use the respective methods on the AclInterface instead.
public setMask(int $mask)
Sets the permission mask
Do never call this method directly. Use the respective methods on the AclInterface instead.
public setStrategy(string $strategy)
Sets the mask comparison strategy
Do never call this method directly. Use the respective methods on the AclInterface instead.
public string serialize()
Implementation of \Serializable
public unserialize(string $serialized)
Implementation of \Serializable
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Security/Acl/Domain/Entry.html