PHP Class Bluz\Validator\Rule\Date

Inheritance: extends AbstractRule
Afficher le fichier Open project: bluzphp/framework Class Usage Examples

Protected Properties

Свойство Type Description
$format date format

Méthodes publiques

Méthode Description
__construct ( string $format = null ) Setup validation rule
getTemplate ( ) : string Get error template
validate ( mixed $input ) : boolean Check input data

Method Details

__construct() public méthode

Setup validation rule
public __construct ( string $format = null )
$format string

getTemplate() public méthode

Get error template
public getTemplate ( ) : string
Résultat string

validate() public méthode

Check input data
public validate ( mixed $input ) : boolean
$input mixed
Résultat boolean

Property Details

$format protected_oe property

date format
protected $format