/src/Symfony/Component/Security/Acl/Model/AclProviderInterface.php

http://github.com/symfony/symfony · PHP · 49 lines · 8 code · 5 blank · 36 comment · 0 complexity · 52e3a22088960e8bd96a8359bd7c35d7 MD5 · raw file

  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Security\Acl\Model;
  11. /**
  12. * Provides a common interface for retrieving ACLs.
  13. *
  14. * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  15. */
  16. interface AclProviderInterface
  17. {
  18. /**
  19. * Retrieves all child object identities from the database
  20. *
  21. * @param ObjectIdentityInterface $parentOid
  22. * @param Boolean $directChildrenOnly
  23. * @return array returns an array of child 'ObjectIdentity's
  24. */
  25. function findChildren(ObjectIdentityInterface $parentOid, $directChildrenOnly = false);
  26. /**
  27. * Returns the ACL that belongs to the given object identity
  28. *
  29. * @throws AclNotFoundException when there is no ACL
  30. * @param ObjectIdentityInterface $oid
  31. * @param array $sids
  32. * @return AclInterface
  33. */
  34. function findAcl(ObjectIdentityInterface $oid, array $sids = array());
  35. /**
  36. * Returns the ACLs that belong to the given object identities
  37. *
  38. * @throws AclNotFoundException when we cannot find an ACL for all identities
  39. * @param array $oids an array of ObjectIdentityInterface implementations
  40. * @param array $sids an array of SecurityIdentityInterface implementations
  41. * @return \SplObjectStorage mapping the passed object identities to ACLs
  42. */
  43. function findAcls(array $oids, array $sids = array());
  44. }