コード例 #1
0
ファイル: Entry.php プロジェクト: naldz/cyberden
 /**
  * Constructor.
  *
  * @param \Propel\Bundle\PropelBundle\Model\Acl\Entry        $entry
  * @param \Symfony\Component\Security\Acl\Model\AclInterface $acl
  */
 public function __construct(ModelEntry $entry, AclInterface $acl)
 {
     $this->acl = $acl;
     $this->securityIdentity = SecurityIdentity::toAclIdentity($entry->getSecurityIdentity());
     /*
      * A new ACE (from a MutableAcl) does not have an ID,
      * but will be persisted by the MutableAclProvider afterwards, if issued.
      */
     if ($entry->getId()) {
         $this->id = $entry->getId();
     }
     $this->mask = $entry->getMask();
     $this->isGranting = $entry->getGranting();
     $this->strategy = $entry->getGrantingStrategy();
     $this->auditFailure = $entry->getAuditFailure();
     $this->auditSuccess = $entry->getAuditSuccess();
 }