PHP Class Cron\AbstractField

Inheritance: implements cron\FieldInterface
Afficher le fichier Open project: mtdowling/cron-expression

Méthodes publiques

Méthode Description
getRangeForExpression ( string $expression, integer $max ) : array Returns a range of values for the given cron expression
isInIncrementsOfRanges ( string $dateValue, string $value ) : boolean Test if a value is within an increments of ranges (offset[-to]/step size)
isInRange ( string $dateValue, string $value ) : boolean Test if a value is within a range
isIncrementsOfRanges ( string $value ) : boolean Check if a value is an increments of ranges
isRange ( string $value ) : boolean Check if a value is a range
isSatisfied ( string $dateValue, string $value ) : boolean Check to see if a field is satisfied by a value

Method Details

getRangeForExpression() public méthode

Returns a range of values for the given cron expression
public getRangeForExpression ( string $expression, integer $max ) : array
$expression string The expression to evaluate
$max integer Maximum offset for range
Résultat array

isInIncrementsOfRanges() public méthode

Test if a value is within an increments of ranges (offset[-to]/step size)
public isInIncrementsOfRanges ( string $dateValue, string $value ) : boolean
$dateValue string Set date value
$value string Value to test
Résultat boolean

isInRange() public méthode

Test if a value is within a range
public isInRange ( string $dateValue, string $value ) : boolean
$dateValue string Set date value
$value string Value to test
Résultat boolean

isIncrementsOfRanges() public méthode

Check if a value is an increments of ranges
public isIncrementsOfRanges ( string $value ) : boolean
$value string Value to test
Résultat boolean

isRange() public méthode

Check if a value is a range
public isRange ( string $value ) : boolean
$value string Value to test
Résultat boolean

isSatisfied() public méthode

Check to see if a field is satisfied by a value
public isSatisfied ( string $dateValue, string $value ) : boolean
$dateValue string Date value to check
$value string Value to test
Résultat boolean