Elgg
Version 1.9
|
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 = array() | |
Definition at line 14 of file MemoryQueue.php.
Elgg_Queue_MemoryQueue::__construct | ( | ) |
Create a queue.
Definition at line 22 of file MemoryQueue.php.
Elgg_Queue_MemoryQueue::clear | ( | ) |
{Clear all items from the queue.
Implements Elgg_Queue_Queue.
Definition at line 43 of file MemoryQueue.php.
Elgg_Queue_MemoryQueue::dequeue | ( | ) |
{Remove an item from the queue.
Implements Elgg_Queue_Queue.
Definition at line 36 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 29 of file MemoryQueue.php.
Elgg_Queue_MemoryQueue::size | ( | ) |
{Get the size of the queue.
Implements Elgg_Queue_Queue.
Definition at line 50 of file MemoryQueue.php.
|
protected |
Definition at line 17 of file MemoryQueue.php.