DatagridBuilderInterface.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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\Builder;
  11. use Sonata\AdminBundle\Admin\FieldDescriptionInterface;
  12. use Sonata\AdminBundle\Admin\AdminInterface;
  13. use Sonata\AdminBundle\Datagrid\DatagridInterface;
  14. interface DatagridBuilderInterface extends BuilderInterface
  15. {
  16. /**
  17. * @abstract
  18. *
  19. * @param \Sonata\AdminBundle\Datagrid\DatagridInterface $datagrid
  20. * @param string $type
  21. * @param \Sonata\AdminBundle\Admin\FieldDescriptionInterface $fieldDescription
  22. * @param \Sonata\AdminBundle\Admin\AdminInterface $admin
  23. *
  24. * @return void
  25. */
  26. public function addFilter(DatagridInterface $datagrid, $type, FieldDescriptionInterface $fieldDescription, AdminInterface $admin);
  27. /**
  28. * @param \Sonata\AdminBundle\Admin\AdminInterface $admin
  29. * @param array $values
  30. *
  31. * @return \Sonata\AdminBundle\Datagrid\DatagridInterface
  32. */
  33. public function getBaseDatagrid(AdminInterface $admin, array $values = array());
  34. }