QueueUIInterface.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * @file
  4. * Declares the Queue UI interface for inspecting queue data.
  5. */
  6. interface QueueUIInterface {
  7. /**
  8. * Starting working with a Queue class.
  9. */
  10. public function __construct();
  11. /**
  12. * Inspect the queue items in a specified queue.
  13. *
  14. * @param string $queue_name
  15. * The name of the queue being inspected.
  16. *
  17. * @return
  18. * FALSE if inspection is not implemented for this queue class. Otherwise returns the
  19. * content to be rendered on the Queue inspection screen.
  20. */
  21. public function inspect($queue_name);
  22. /**
  23. * View item data for a specified queue item.
  24. *
  25. * @param integer $item_id
  26. * The item id to be viewed.
  27. *
  28. * @return
  29. * FALSE if viewing queue items is not implemented for this queue class. Otherwise returns
  30. * the content to be renders on the Queue item details screen.
  31. */
  32. public function view($item_id);
  33. /**
  34. * Force the deletion of a specified queue item.
  35. *
  36. * @param integer $item_id
  37. * The item id to be deleted.
  38. *
  39. * @return
  40. * TRUE if deletion succeeds, FALSE if deletion fails.
  41. */
  42. public function delete($item_id);
  43. /**
  44. * Force the releasing of a specified queue item.
  45. *
  46. * @param integer $item_id
  47. * The item id to be released.
  48. *
  49. * @return
  50. * TRUE if releasing succeeds, FALSE if releasing fails.
  51. */
  52. public function release($item_id);
  53. /**
  54. * Retrieve the available operations for the implementing queue class.
  55. *
  56. * @return
  57. * An array of the available operations for the implementing queue class.
  58. */
  59. public function getOperations();
  60. }