\Horde_Queue_Storage_Db

Stores queue tasks in a database table.

Summary

Methods
Properties
Constants
add()
__construct()
setQueue()
getMany()
No public properties found
No constants found
No protected methods found
$_db
$_queue
N/A
No private methods found
No private properties found
N/A

Properties

$_db

$_db : \Horde_Db_Adapter

Type

\Horde_Db_Adapter

$_queue

$_queue : \queue

Type

\queue

Methods

add()

add(\Horde_Queue_Task  $task) 

Serialize a task to the database

Parameters

\Horde_Queue_Task $task

A task to serialize

Throws

\Horde_Queue_Exception

__construct()

__construct(\Horde_Db_Adapter  $db, string  $queue = 'default') 

Parameters

\Horde_Db_Adapter $db

The DB interface to use

string $queue

Optional: Use a separate queue

setQueue()

setQueue(string  $queue = 'default') 

Parameters

string $queue

The name of the queue to add/remove tasks

getMany()

getMany(  $num = 50) 

Parameters

$num