Elgg
Version 1.11
|
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 15 of file MemoryQueue.php.
Elgg\Queue\MemoryQueue::__construct | ( | ) |
Create a queue.
Definition at line 23 of file MemoryQueue.php.
Elgg\Queue\MemoryQueue::clear | ( | ) |
{Clear all items from the queue.
Implements Elgg\Queue\Queue.
Definition at line 44 of file MemoryQueue.php.
Elgg\Queue\MemoryQueue::dequeue | ( | ) |
{Remove an item from the queue.
Implements Elgg\Queue\Queue.
Definition at line 37 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 30 of file MemoryQueue.php.
Elgg\Queue\MemoryQueue::size | ( | ) |
{Get the size of the queue.
Implements Elgg\Queue\Queue.
Definition at line 51 of file MemoryQueue.php.
|
protected |
Definition at line 18 of file MemoryQueue.php.