|
Elgg
Version 1.9
|
Public Member Functions | ||||
| __construct ($name, Elgg_Database $db) | ||||
| 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 | |
| $name | |
| $db | |
| $workerId | |
Definition at line 14 of file DatabaseQueue.php.
| Elgg_Queue_DatabaseQueue::__construct | ( | $name, | |
| Elgg_Database | $db | ||
| ) |
Create a queue.
| string | $name | Name of the queue. Must be less than 256 characters. |
| Elgg_Database | $db | Database adapter |
Definition at line 31 of file DatabaseQueue.php.
| Elgg_Queue_DatabaseQueue::clear | ( | ) |
{Clear all items from the queue.
Implements Elgg_Queue_Queue.
Definition at line 78 of file DatabaseQueue.php.
| Elgg_Queue_DatabaseQueue::dequeue | ( | ) |
{Remove an item from the queue.
Implements Elgg_Queue_Queue.
Definition at line 52 of file DatabaseQueue.php.
| Elgg_Queue_DatabaseQueue::enqueue | ( | $item | ) |
{Add an item to the queue.
| mixed | $item | Item to add to queue |
Implements Elgg_Queue_Queue.
Definition at line 40 of file DatabaseQueue.php.
| Elgg_Queue_DatabaseQueue::size | ( | ) |
{Get the size of the queue.
Implements Elgg_Queue_Queue.
Definition at line 86 of file DatabaseQueue.php.
|
protected |
Definition at line 20 of file DatabaseQueue.php.
|
protected |
Definition at line 17 of file DatabaseQueue.php.
|
protected |
Definition at line 23 of file DatabaseQueue.php.