-
Notifications
You must be signed in to change notification settings - Fork 0
API DataValidator_Fields DateTime
Christophe SAUVEUR edited this page Apr 21, 2024
·
1 revision
chsxf\MFX\DataValidator\Fields
class DateTime extends chsxf\MFX\DataValidator\Field
Since 1.0
public static function dateFunctionPattern(DataValidator\FieldType $type): string
Gets the pattern to use with the date() function
Since 1.0
Name | Type | Description |
---|---|---|
$type |
FieldType |
Type of the field |
string
public static function humanlyReadablePattern(DataValidator\FieldType $type): string
Gets the pattern as humanly readable
Since 1.0
Name | Type | Description |
---|---|---|
$type |
FieldType |
Type of the field |
string
public static function regexPattern(DataValidator\FieldType $type, bool $withBackReferences = false): string
Gets the pattern as a regular expression
Since 1.0
Name | Type | Description |
---|---|---|
$type |
FieldType |
Type of the field |
$withBackReferences |
boolean |
If set, the function should return a regular expression pattern containing name back references |
string
Getting Started | Framework Reference | API Reference | MFX is released under the MIT license