Overview

Namespaces

  • None
  • PHP
  • Pry
    • Auth
      • Interfaces
    • Config
    • Controller
    • Date
    • Db
    • Feed
      • Abstracts
      • Writers
    • File
      • Decorator
    • Form
      • Element
    • Image
    • Log
      • Writer
    • Net
      • Exception
    • Session
    • Util
    • Validate
      • Validator
    • View

Classes

  • Alnum
  • Alpha
  • Cp
  • Date
  • Digit
  • Email
  • Equal
  • Interval
  • Time
  • Overview
  • Namespace
  • Class
  • Tree

Class Date

Validateur de date. Permet de valider des date du type fr,us,sql,sqldatetime

Pry\Validate\ValidateAbstract
Extended by Pry\Validate\Validator\Date
Namespace: Pry\Validate\Validator
Package: Validate\Validator
Category: Pry
Author: Olivier ROGER <oroger.fr> <code> $factory = new Validate_Validate(); $factory -> addValidator('Date','fr'); </code>
Version: 1.0.0
Located at Validate/Validator/Date.class.php
Methods summary
public
# __construct( mixed $format = 'fr' )
public boolean
# isValid( string $date )

Valide la date en fonction de son format

Valide la date en fonction de son format

Parameters

$date
string
$date

Returns

boolean
Methods inherited from Pry\Validate\ValidateAbstract
cleanString(), getError(), setMessage()
Constants summary
string DATE_SQL 'sql'
#
string DATE_SQLDATETIME 'sqldatetime'
#
string DATE_FR 'fr'
#
string DATE_US 'us'
#
Properties inherited from Pry\Validate\ValidateAbstract
$errorMsg, $espace
Pry API documentation generated by ApiGen 2.8.0