|
Elgg
Version master
|
FIFO queue that is memory based (not persistent) More...
Public Member Functions | ||||
| __construct () | ||||
| Create a queue. More... | ||||
| enqueue ($item) | ||||
{Add an item to the queue.
| ||||
| dequeue () | ||||
{Remove an item from the queue.
| ||||
| clear () | ||||
{Clear all items from the queue.
| ||||
| size () | ||||
{Get the size of the queue.
| ||||
Protected Attributes | |
| $queue = [] | |
FIFO queue that is memory based (not persistent)
Definition at line 11 of file MemoryQueue.php.
| Elgg\Queue\MemoryQueue::__construct | ( | ) |
Create a queue.
Definition at line 19 of file MemoryQueue.php.
| Elgg\Queue\MemoryQueue::clear | ( | ) |
{Clear all items from the queue.
Implements Elgg\Queue\Queue.
Definition at line 40 of file MemoryQueue.php.
| Elgg\Queue\MemoryQueue::dequeue | ( | ) |
{Remove an item from the queue.
Implements Elgg\Queue\Queue.
Definition at line 33 of file MemoryQueue.php.
| Elgg\Queue\MemoryQueue::enqueue | ( | $item | ) |
{Add an item to the queue.
| mixed | $item | Item to add to queue |
Implements Elgg\Queue\Queue.
Definition at line 26 of file MemoryQueue.php.
| Elgg\Queue\MemoryQueue::size | ( | ) |
{Get the size of the queue.
Implements Elgg\Queue\Queue.
Definition at line 47 of file MemoryQueue.php.
|
protected |
Definition at line 14 of file MemoryQueue.php.