Elgg
Version master
|
Database queue for notifications. More...
Public Member Functions | ||||
__construct (string $name,\Elgg\Database $db,\Elgg\Config $config) | ||||
Create a queue. More... | ||||
dequeue () | ||||
Remove an item from the queue.
| ||||
Public Member Functions inherited from Elgg\Queue\DatabaseQueue | ||||
__construct (protected string $name, protected\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.
| ||||
Public Attributes | |
const | QUEUE_NAME = 'notifications' |
Public Attributes inherited from Elgg\Queue\DatabaseQueue | |
const | TABLE_NAME = 'queue' |
Protected Attributes | |
$config | |
Protected Attributes inherited from Elgg\Queue\DatabaseQueue | |
$workerId | |
Database queue for notifications.
Definition at line 17 of file NotificationsQueue.php.
Elgg\Notifications\NotificationsQueue::__construct | ( | string | $name, |
\Elgg\Database | $db, | ||
\Elgg\Config | $config | ||
) |
Create a queue.
string | $name | Name of the queue. Must be less than 256 characters. |
\Elgg\Database | $db | Database adapter |
\Elgg\Config | $config | Global config |
Definition at line 36 of file NotificationsQueue.php.
Elgg\Notifications\NotificationsQueue::dequeue | ( | ) |
Remove an item from the queue.
Implements Elgg\Queue\Queue.
Definition at line 45 of file NotificationsQueue.php.
|
protected |
Definition at line 27 of file NotificationsQueue.php.
const Elgg\Notifications\NotificationsQueue::QUEUE_NAME = 'notifications' |
Definition at line 22 of file NotificationsQueue.php.