DatagridBuilderInterface.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. * @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
  16. */
  17. interface DatagridBuilderInterface extends BuilderInterface
  18. {
  19. /**
  20. * @abstract
  21. *
  22. * @param DatagridInterface $datagrid
  23. * @param string $type
  24. * @param FieldDescriptionInterface $fieldDescription
  25. * @param AdminInterface $admin
  26. */
  27. public function addFilter(DatagridInterface $datagrid, $type, FieldDescriptionInterface $fieldDescription, AdminInterface $admin);
  28. /**
  29. * @param AdminInterface $admin
  30. * @param array $values
  31. *
  32. * @return DatagridInterface
  33. */
  34. public function getBaseDatagrid(AdminInterface $admin, array $values = array());
  35. }