PHP Class Newscoop\Services\SchedulerService

Inheritance: implements Newscoop\SchedulerServiceInterface
Show file Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$config
$em
$jobby

Public Methods

Method Description
__construct ( EntityManager $em, $config = [] ) Construct
addSchedulerJob ( $jobName, array $config ) {@inheritDoc}
getNextRunDate ( $schedule, $currentTime = 'now', $nth, $allowCurrentDate = false ) {@inheritDoc}
getPreviousRunDate ( $schedule, $currentTime = 'now', $nth, $allowCurrentDate = false ) {@inheritDoc}
registerJob ( $jobName, array $config ) {@inheritDoc}
removeJob ( $jobName, array $config ) {@inheritDoc}
run ( ) {@inheritDoc}

Method Details

__construct() public method

Construct
public __construct ( EntityManager $em, $config = [] )
$em Doctrine\ORM\EntityManager

addSchedulerJob() public method

{@inheritDoc}
public addSchedulerJob ( $jobName, array $config )
$config array

getNextRunDate() public method

{@inheritDoc}
public getNextRunDate ( $schedule, $currentTime = 'now', $nth, $allowCurrentDate = false )

getPreviousRunDate() public method

{@inheritDoc}
public getPreviousRunDate ( $schedule, $currentTime = 'now', $nth, $allowCurrentDate = false )

registerJob() public method

{@inheritDoc}
public registerJob ( $jobName, array $config )
$config array

removeJob() public method

{@inheritDoc}
public removeJob ( $jobName, array $config )
$config array

run() public method

{@inheritDoc}
public run ( )

Property Details

$config protected property

protected $config

$em protected property

protected $em

$jobby protected property

protected $jobby