Class Shift8_Queue_Processor_Mysql

Description

Provides a simple queuing mechanism using Mysql to store the actual Shift8 Queue.

  • author: Paris Stamatopoulos
  • version: 0.1.1

Located in /Queue/Processor/Mysql.php (line 27)

Shift8_Queue_Processor
   |
   --Shift8_Queue_Processor_Mysql
Method Summary
Shift8_Queue_Processor_Mysql __construct (string $hostname, string $username, string $password, string $database)
void insert ( $item)
void queue ()
void retrieveResponse ( $queue_id)
void update ( $item)
Methods
Constructor __construct (line 40)

Class constructor.

  • throws: Shift8_Execption if it was unable to connect to remote database
  • access: public
Shift8_Queue_Processor_Mysql __construct (string $hostname, string $username, string $password, string $database)
  • string $hostname: The remote mysql hostname
  • string $username: The username to connect with
  • string $password: The password to connect with
  • string $database: The database to use
insert (line 48)
  • access: public
void insert ( $item)
  • $item

Redefinition of:
Shift8_Queue_Processor::insert()
Function responsible for inserting a new queue item to the Shift8 Queue
queue (line 88)
  • access: public
void queue ()

Redefinition of:
Shift8_Queue_Processor::queue()
Retrieves the unprocessed commands in the queue
retrieveResponse (line 78)
  • access: public
void retrieveResponse ( $queue_id)
  • $queue_id

Redefinition of:
Shift8_Queue_Processor::retrieveResponse()
Retrieves the response of a processed command based on the queue id
update (line 63)
  • access: public
void update ( $item)
  • $item

Redefinition of:
Shift8_Queue_Processor::update()
Function responsible for updating an existing queued command with command results

Inherited Methods

Inherited From Shift8_Queue_Processor

Shift8_Queue_Processor::insert()
Shift8_Queue_Processor::queue()
Shift8_Queue_Processor::retrieveResponse()
Shift8_Queue_Processor::update()

Documentation generated on Mon, 28 Dec 2009 17:42:49 +0200 by phpDocumentor 1.4.3