Flikore Validator
  • Api
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Flikore
    • Validator
      • Exception
      • Interfaces
      • Intl
      • Validators

Classes

  • AfterDateTimeValidator
  • AlphaNumericValidator
  • AlphaValidator
  • BeforeDateTimeValidator
  • DateTimeValidator
  • DateValidator
  • EmailValidator
  • EqualsValidator
  • ExactLengthValidator
  • ExactValueValidator
  • GreaterThanValidator
  • InstanceOfValidator
  • IPv4Validator
  • IPv6Validator
  • LengthBetweenValidator
  • LessThanValidator
  • LetterNumericValidator
  • LetterValidator
  • MaxDateTimeValidator
  • MaxLengthValidator
  • MaxValueValidator
  • MinAgeValidator
  • MinDateTimeValidator
  • MinLengthValidator
  • MinValueValidator
  • NoSpaceValidator
  • NotEmptyValidator
  • NotEqualsValidator
  • NumericValidator
  • OrValidator
  • RecursiveValidator
  • RegexValidator
  • UriValidator
  • ValueBetweenValidator

Class DateTimeValidator

Validates that the value is a valid date/time.

Flikore\Validator\Validator implements Flikore\Validator\Interfaces\IValidator
Extended by Flikore\Validator\Validators\DateTimeValidator

Direct known subclasses

Flikore\Validator\Validators\DateValidator

Namespace: Flikore\Validator\Validators
Package: Flikore\Validator
Copyright: (c) 2014, George Marques
License: MIT
Author: George Marques <george at georgemarques.com.br>
Version: 0.5.2
Since: 0.4.0
CustomKey: %format% The format specified to check the valid date/time.
Located at Flikore/Validator/Validators/DateTimeValidator.php

Methods summary

public
# __construct( string $format = null )

Creates a new Date Validator.

Creates a new Date Validator.

Parameters

$format
string
$format The format of the date/time (if any).
protected boolean
# doValidate( mixed $value )

Executes the real validation so it can be reused.

Executes the real validation so it can be reused.

Parameters

$value
mixed
$value The value to validate.

Returns

boolean
Whether the value pass the validation.

Methods inherited from Flikore\Validator\Validator

addKeyValue(), applyTemplate(), assert(), getErrorMessage(), isEmpty(), setErrorMessage(), validate()

Magic methods summary

Properties summary

protected string $format
#

The format of the date/time.

The format of the date/time.

protected string $message
#

The error message for this validator.

The error message for this validator.

protected string $alt_message
#

The alternative message used if there is a specified format.

The alternative message used if there is a specified format.

Properties inherited from Flikore\Validator\Validator

$values

Flikore Validator API documentation generated by ApiGen 2.8.0