category OSS
package OSS_Validate
copyright Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland
license New BSD License

 Methods

Constructor

__construct(array $options) : void

Sets validator options

Parameters

$options

array

Get ingore empty flag

getIgnoreEmpty() : bool

Returns

bool

It will if check if given date is European

isValid(\strig $value, null | mixed $context) : bool

Parameters

$value

\strig

Date string

$context

nullmixed

Returns

bool

Set the format of the date to validate against

setDateFormat(\$f $f) 
see \global\OSS_Date::$DATE_FORMATS

Parameters

$f

\$f

int The format

Set ingore empty flag

setIgnoreEmpty(bool $b) : void

Parameters

$b

bool

Flag value

 Properties

 

Date format

$_dateFormat : string
 

Ignore empty flag

$_ignore_empty : bool
 

Possible error messages

$_messages : array

 Constants

 

INVALID_DATE

INVALID_DATE