|
Elgg
Version 2.3
|
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 15 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 32 of file DatabaseQueue.php.
| Elgg\Queue\DatabaseQueue::clear | ( | ) |
{Clear all items from the queue.
Implements Elgg\Queue\Queue.
Definition at line 84 of file DatabaseQueue.php.
| Elgg\Queue\DatabaseQueue::dequeue | ( | ) |
{Remove an item from the queue.
Implements Elgg\Queue\Queue.
Definition at line 55 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 41 of file DatabaseQueue.php.
| Elgg\Queue\DatabaseQueue::size | ( | ) |
{Get the size of the queue.
Implements Elgg\Queue\Queue.
Definition at line 94 of file DatabaseQueue.php.
|
protected |
Definition at line 21 of file DatabaseQueue.php.
|
protected |
Definition at line 18 of file DatabaseQueue.php.
|
protected |
Definition at line 24 of file DatabaseQueue.php.