AuditableAclInterface.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. * This interface adds auditing capabilities to the ACL.
  13. *
  14. * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  15. */
  16. interface AuditableAclInterface extends MutableAclInterface
  17. {
  18. /**
  19. * Updates auditing for class-based ACE.
  20. *
  21. * @param int $index
  22. * @param bool $auditSuccess
  23. * @param bool $auditFailure
  24. */
  25. public function updateClassAuditing($index, $auditSuccess, $auditFailure);
  26. /**
  27. * Updates auditing for class-field-based ACE.
  28. *
  29. * @param int $index
  30. * @param string $field
  31. * @param bool $auditSuccess
  32. * @param bool $auditFailure
  33. */
  34. public function updateClassFieldAuditing($index, $field, $auditSuccess, $auditFailure);
  35. /**
  36. * Updates auditing for object-based ACE.
  37. *
  38. * @param int $index
  39. * @param bool $auditSuccess
  40. * @param bool $auditFailure
  41. */
  42. public function updateObjectAuditing($index, $auditSuccess, $auditFailure);
  43. /**
  44. * Updates auditing for object-field-based ACE.
  45. *
  46. * @param int $index
  47. * @param string $field
  48. * @param bool $auditSuccess
  49. * @param bool $auditFailure
  50. */
  51. public function updateObjectFieldAuditing($index, $field, $auditSuccess, $auditFailure);
  52. }