PHP Class Aoe_Queue_Model_Queue

Since: 2012-11-07
Author: Fabrizio Branca
Inheritance: extends Zend_Queue
Show file Open project: aoepeople/aoe_queue Class Usage Examples

Public Methods

Method Description
__construct ( string $queueName = 'default' ) Constructor
addTask ( string $callback, array $parameterArray = [] ) : Zend_Queue_Message Adds a task to the queue
createQueue ( string $name, null | integer $timeout = null ) : void Preventing devs from creating new queue with this class.

Method Details

__construct() public method

Constructor
public __construct ( string $queueName = 'default' )
$queueName string

addTask() public method

Adds a task to the queue
public addTask ( string $callback, array $parameterArray = [] ) : Zend_Queue_Message
$callback string Dev class code and method, e.g. "model/class::method"
$parameterArray array Parameters to pass in for the task
return Zend_Queue_Message

createQueue() public method

Preventing devs from creating new queue with this class.
public createQueue ( string $name, null | integer $timeout = null ) : void
$name string
$timeout null | integer
return void