Elgg
Version 3.0
|
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)
WARNING: API IN FLUX. DO NOT USE DIRECTLY.
Definition at line 16 of file MemoryQueue.php.
Elgg\Queue\MemoryQueue::__construct | ( | ) |
Create a queue.
Definition at line 24 of file MemoryQueue.php.
Elgg\Queue\MemoryQueue::clear | ( | ) |
{Clear all items from the queue.
Implements Elgg\Queue\Queue.
Definition at line 45 of file MemoryQueue.php.
Elgg\Queue\MemoryQueue::dequeue | ( | ) |
{Remove an item from the queue.
Implements Elgg\Queue\Queue.
Definition at line 38 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 31 of file MemoryQueue.php.
Elgg\Queue\MemoryQueue::size | ( | ) |
{Get the size of the queue.
Implements Elgg\Queue\Queue.
Definition at line 52 of file MemoryQueue.php.
|
protected |
Definition at line 19 of file MemoryQueue.php.