ProxyQueryInterface.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. /**
  17. *
  18. * @param array $params
  19. * @param null $hydrationMode
  20. * @return mixed
  21. */
  22. function execute(array $params = array(), $hydrationMode = null);
  23. /**
  24. * @param $name
  25. * @param $args
  26. * @return mixed
  27. */
  28. function __call($name, $args);
  29. /**
  30. * @param $parentAssociationMappings
  31. * @param $fieldMapping
  32. * @return mixed
  33. */
  34. function setSortBy($parentAssociationMappings, $fieldMapping);
  35. /**
  36. * @return mixed
  37. */
  38. function getSortBy();
  39. /**
  40. * @param $sortOrder
  41. * @return mixed
  42. */
  43. function setSortOrder($sortOrder);
  44. /**
  45. * @abstract
  46. * @return mixed
  47. */
  48. function getSortOrder();
  49. /**
  50. * @return mixed
  51. */
  52. function getSingleScalarResult();
  53. /**
  54. * @param $firstResult
  55. * @return mixed
  56. */
  57. function setFirstResult($firstResult);
  58. /**
  59. * @return mixed
  60. */
  61. function getFirstResult();
  62. /**
  63. * @param $maxResults
  64. * @return mixed
  65. */
  66. function setMaxResults($maxResults);
  67. /**
  68. * @return mixed
  69. */
  70. function getMaxResults();
  71. /**
  72. * @return mixed
  73. */
  74. function getUniqueParameterId();
  75. /**
  76. * @param array $associationMappings
  77. * @return mixed
  78. */
  79. function entityJoin(array $associationMappings);
  80. }