ProxyQueryInterface.php 857 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /*
  3. * This file is part of the symfony package.
  4. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  5. * (c) Jonathan H. Wage <jonwage@gmail.com>
  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\Datagrid;
  11. /**
  12. * Interface used by the Datagrid to build the query
  13. */
  14. interface ProxyQueryInterface
  15. {
  16. function execute(array $params = array(), $hydrationMode = null);
  17. function __call($name, $args);
  18. function setSortBy($sortBy);
  19. function getSortBy();
  20. function setSortOrder($sortOrder);
  21. function getSortOrder();
  22. function getSingleScalarResult();
  23. function setFirstResult($firstResult);
  24. function getFirstResult();
  25. function setMaxResults($maxResults);
  26. function getMaxResults();
  27. }