PHP Class Cron\AbstractField

Inheritance: implements cron\FieldInterface
Datei anzeigen Open project: mtdowling/cron-expression

Public Methods

Method 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 method

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
return array

isInIncrementsOfRanges() public method

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
return boolean

isInRange() public method

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
return boolean

isIncrementsOfRanges() public method

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

isRange() public method

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

isSatisfied() public method

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
return boolean