trait DatetimeRule (View source)

Methods

void
compileDate(string $key, string $masque)

Compile Date Rule

void
compileDateTime(string $key, string $masque)

Compile Date Time Rule

Details

protected void compileDate(string $key, string $masque)

Compile Date Rule

[date] Check that the field's content is a valid date

Parameters

string $key
string $masque

Return Value

void

protected void compileDateTime(string $key, string $masque)

Compile Date Time Rule

[datetime] Check that the contents of the field is a valid date time

Parameters

string $key
string $masque

Return Value

void