AuditReaderInterface.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. * @abstract
  18. * @param $className
  19. * @param $id
  20. * @param $revision
  21. */
  22. function find($className, $id, $revision);
  23. /**
  24. * @abstract
  25. * @param $className
  26. * @param int $limit
  27. * @param int $offset
  28. */
  29. function findRevisionHistory($className, $limit = 20, $offset = 0);
  30. /**
  31. * @abstract
  32. * @param $classname
  33. * @param $revision
  34. */
  35. function findRevision($classname, $revision);
  36. /**
  37. * @abstract
  38. * @param $className
  39. * @param $id
  40. */
  41. function findRevisions($className, $id);
  42. }