PHP Class Neos\Flow\Validation\Validator\DateTimeRangeValidator

Inheritance: extends AbstractValidator
Show file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$supportedOptions array

Protected Methods

Method Description
isValid ( mixed $dateTime ) : void Adds errors if the given DateTime does not match the set boundaries.
parseReferenceDate ( string $referenceDateString ) : DateTime Calculates a DateTime object from a given Time interval

Method Details

isValid() protected method

latestDate and earliestDate may be each
protected isValid ( mixed $dateTime ) : void
$dateTime mixed The DateTime value that should be validated
return void

parseReferenceDate() protected method

Calculates a DateTime object from a given Time interval
See also: isValid()
protected parseReferenceDate ( string $referenceDateString ) : DateTime
$referenceDateString string being one of
return DateTime

Property Details

$supportedOptions protected property

protected array $supportedOptions
return array