GridInterface.php 902 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model\ResourceModel;
  7. /**
  8. * @api
  9. * Interface GridInterface
  10. * @since 100.0.2
  11. */
  12. interface GridInterface
  13. {
  14. /**
  15. * Adds new rows to the grid.
  16. *
  17. * Only rows that correspond to $value and $field parameters should be added.
  18. *
  19. * @param int|string $value
  20. * @param null|string $field
  21. * @return \Zend_Db_Statement_Interface
  22. */
  23. public function refresh($value, $field = null);
  24. /**
  25. * Adds new rows to the grid.
  26. *
  27. * Only rows created/updated since the last method call should be added.
  28. *
  29. * @return void
  30. */
  31. public function refreshBySchedule();
  32. /**
  33. * @param int|string $value
  34. * @param null|string $field
  35. * @return int
  36. */
  37. public function purge($value, $field = null);
  38. }