FilterInterface.php 734 B

1234567891011121314151617181920212223242526272829303132333435
  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\Filter;
  11. interface FilterInterface
  12. {
  13. /**
  14. * apply the filter to the QueryBuilder instance
  15. *
  16. * @abstract
  17. * @param $queryBuilder
  18. * @param string $alias
  19. * @param string $field
  20. * @param string $value
  21. * @return void
  22. */
  23. function filter($queryBuilder, $alias, $field, $value);
  24. /**
  25. * get the related form field filter
  26. *
  27. * @abstract
  28. * @return Field
  29. */
  30. function getFormField();
  31. }