예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function getObjectIdentity()
 {
     /**
      *  @todo: Check ObjectIdentity for ACL records from the database.
      *         It is quite possible we will have to return rootAcl ObjectIdentity to
      *         turn additional ACL masks check by AclExtension::adaptRootMask() method.
      */
     if (!count($this->acl->getClassAces()) && !count($this->acl->getObjectAces())) {
         return $this->rootAcl->getObjectIdentity();
     }
     return $this->acl->getObjectIdentity();
 }