CronExpression_AbstractField::isSatisfied()publicWC 1.0

Check to see if a field is satisfied by a value

Method of the class: CronExpression_AbstractField{}

No Hooks.

Return

true|false.

Usage

$CronExpression_AbstractField = new CronExpression_AbstractField();
$CronExpression_AbstractField->isSatisfied( $dateValue, $value );
$dateValue(string) (required)
Date value to check
$value(string) (required)
Value to test

CronExpression_AbstractField::isSatisfied() code WC 7.3.0

public function isSatisfied($dateValue, $value)
{
    if ($this->isIncrementsOfRanges($value)) {
        return $this->isInIncrementsOfRanges($dateValue, $value);
    } elseif ($this->isRange($value)) {
        return $this->isInRange($dateValue, $value);
    }

    return $value == '*' || $dateValue == $value;
}