Spork Code Libraries

LoaderDb

Loads Jobs, Tasks, Schedules and Report data from a single database.

Handles hasFeature, fetchJobs, storeJob, deleteJob, storeReport and storeSchedule events. Does not need to handle fetchTasks, storeTasks, fetchReport, fetchSchedule events because the functionality for those events is taken care of during the fetchJobs and storeJob calls.

CREATE TABLE IF NOT EXISTS job ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(255) CHARACTER SET ascii NOT NULL, tasks blob NOT NULL, schedule blob NOT NULL, report blob NOT NULL, PRIMARY KEY (id), KEY name (name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Extends
\Zend\EventManager\AbstractListenerAggregate
Implements
\SporkTools\Core\Job\Feature\FeatureInterface

Properties

$columnMap

$columnMap : 

Type

$db

$db : 

Type

$jobTable

$jobTable : 

Type

Methods

__construct()

__construct(array  $options = array()) 

Parameters

array $options

attach()

attach(\Zend\EventManager\EventManagerInterface  $events) 

Parameters

\Zend\EventManager\EventManagerInterface $events

getDb()

getDb() : \Zend\Db\Adapter\Adapter

Returns

\Zend\Db\Adapter\Adapter

getJobTable()

getJobTable() : \Zend\Db\TableGateway\TableGateway

Returns

\Zend\Db\TableGateway\TableGateway

setDb()

setDb(  $db) 

Parameters

$db

setJobTable()

setJobTable(  $table) 

Parameters

$table