AuditReaderInterface.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /*
  3. * This file is part of the Sonata package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  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 Sonata\AdminBundle\Model;
  11. use Sonata\AdminBundle\Admin\FieldDescriptionInterface;
  12. use Sonata\AdminBundle\Datagrid\DatagridInterface;
  13. use Sonata\AdminBundle\Datagrid\ProxyQueryInterface;
  14. interface AuditReaderInterface
  15. {
  16. /**
  17. * @param string $className
  18. * @param string $id
  19. * @param string $revision
  20. */
  21. function find($className, $id, $revision);
  22. /**
  23. * @param string $className
  24. * @param int $limit
  25. * @param int $offset
  26. */
  27. function findRevisionHistory($className, $limit = 20, $offset = 0);
  28. /**
  29. * @param string $classname
  30. * @param string $revision
  31. */
  32. function findRevision($classname, $revision);
  33. /**
  34. * @param string $className
  35. * @param string $id
  36. */
  37. function findRevisions($className, $id);
  38. }