Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
Queue.php
Go to the documentation of this file.
1 <?php
2 namespace Elgg\Queue;
3 
15 interface Queue {
22  public function enqueue($item);
23 
29  public function dequeue();
30 
36  public function clear();
37 
43  public function size();
44 }
enqueue($item)
Add an item to the queue.
$item
Definition: item.php:12
clear()
Clear all items from the queue.
size()
Get the size of the queue.
dequeue()
Remove an item from the queue.