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
Afficher le fichier Open project: prggmr/xpspl

Protected Properties

Свойство Type Description
$_cron integer Cron-Expression object
$_next_run integer Next runtime of the cron.

Méthodes publiques

Méthode 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 méthode

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

routine() public méthode

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
Résultat integer

Property Details

$_cron protected_oe property

Cron-Expression object
protected int $_cron
Résultat integer

$_next_run protected_oe property

Next runtime of the cron.
protected int $_next_run
Résultat integer