PHP Class Time\SIG_CRON

Signal based on the UNIX cron definition. Module has been made possible due to Michael Dowling's CronExpression.
Inheritance: extends XPSPL\SIG_Routine
Exibir arquivo Open project: prggmr/xpspl

Protected Properties

Property Type Description
$_cron integer Cron-Expression object
$_next_run integer Next runtime of the cron.

Public Methods

Method Description
__construct ( string $expression ) : void Constructs a new cron signal.
routine ( Routine $routine = null ) : integer Determines when the time signal should fire, otherwise returning the processor to idle until it will.

Method Details

__construct() public method

Constructs a new cron signal.
public __construct ( string $expression ) : void
$expression string Cron expression
return void

routine() public method

Determines when the time signal should fire, otherwise returning the processor to idle until it will.
public routine ( Routine $routine = null ) : integer
$routine XPSPL\Routine
return integer

Property Details

$_cron protected_oe property

Cron-Expression object
protected int $_cron
return integer

$_next_run protected_oe property

Next runtime of the cron.
protected int $_next_run
return integer