DatagridBuilderInterface.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /*
  3. * This file is part of the Sonata Project 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\Builder;
  11. use Sonata\AdminBundle\Admin\AdminInterface;
  12. use Sonata\AdminBundle\Admin\FieldDescriptionInterface;
  13. use Sonata\AdminBundle\Datagrid\DatagridInterface;
  14. /**
  15. * Interface DatagridBuilderInterface.
  16. *
  17. * @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
  18. */
  19. interface DatagridBuilderInterface extends BuilderInterface
  20. {
  21. /**
  22. * @abstract
  23. *
  24. * @param DatagridInterface $datagrid
  25. * @param string $type
  26. * @param FieldDescriptionInterface $fieldDescription
  27. * @param AdminInterface $admin
  28. */
  29. public function addFilter(DatagridInterface $datagrid, $type, FieldDescriptionInterface $fieldDescription, AdminInterface $admin);
  30. /**
  31. * @param AdminInterface $admin
  32. * @param array $values
  33. *
  34. * @return DatagridInterface
  35. */
  36. public function getBaseDatagrid(AdminInterface $admin, array $values = array());
  37. }