jDatatypeDateTime
extends jDatatype
in package
Datatype datetime.
Possible facets are: 'maxValue', 'minValue'
Tags
Table of Contents
- $_date_format : mixed
- $facets : mixed
- $format : mixed
- $hasFacets : mixed
- $maxValue : mixed
- $minValue : mixed
- $dt : mixed
- addFacet() : mixed
- call it to add restriction on possible values.
- allowWhitespace() : bool
- says if the value can contain only whitespaces.
- check() : bool
- verify a value : it should correspond to the datatype.
- getFacet() : mixed
- get a restriction value.
- getFormat() : mixed
- _addFacet() : mixed
Properties
$_date_format
protected
mixed
$_date_format
= 'Y-m-d H:i:s'
Tags
$facets
protected
mixed
$facets
= array('maxValue', 'minValue')
Tags
$format
protected
mixed
$format
= 21
Tags
$hasFacets
protected
mixed
$hasFacets
= \false
Tags
$maxValue
protected
mixed
$maxValue
Tags
$minValue
protected
mixed
$minValue
Tags
$dt
private
mixed
$dt
Tags
Methods
addFacet()
call it to add restriction on possible values.
public
addFacet(string $type[, string $value = null ]) : mixed
Parameters
- $type : string
- $value : string = null
Tags
Return values
mixed —allowWhitespace()
says if the value can contain only whitespaces.
public
allowWhitespace() : bool
Tags
Return values
bool —check()
verify a value : it should correspond to the datatype.
public
check(mixed $value) : bool
Parameters
- $value : mixed
Tags
Return values
bool —true if the value is ok
getFacet()
get a restriction value.
public
getFacet(string $type) : mixed
Parameters
- $type : string
Tags
Return values
mixed —the value
getFormat()
public
getFormat() : mixed
Tags
Return values
mixed —_addFacet()
protected
_addFacet(mixed $type, mixed $value) : mixed
Parameters
- $type : mixed
- $value : mixed