Documentation

MinMaxDateValidator extends AbstractValidator
in package

Table of Contents

Methods

validate()  : bool
compare()  : mixed
$operator lt: true if input is less then original $operator gt: true if input is greater then original usage: $this->compare($min, $date, 'lt', $useEqual) usage: $this->compare($max, $date, 'gt', $useEqual)

Methods

validate()

public validate(Validation $validation, mixed $field) : bool
Parameters
$validation : Validation
$field : mixed
Return values
bool

compare()

$operator lt: true if input is less then original $operator gt: true if input is greater then original usage: $this->compare($min, $date, 'lt', $useEqual) usage: $this->compare($max, $date, 'gt', $useEqual)

private compare(mixed $original, mixed $input, mixed $operator, mixed $useEqual) : mixed
Parameters
$original : mixed
$input : mixed
$operator : mixed
$useEqual : mixed

        
On this page

Search results