ProxyQueryInterface.php 1.8 KB

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