jDatatype

package

jelix

subpackage

datatypes

Methods

_addFacet

_addFacet( $type,  $value) 

Arguments

$type

$value

call it to add restriction on possible values

addFacet(string $type, string $value = null) 

Arguments

$type

string

$value

string

says if the value can contain only whitespaces

allowWhitespace() : boolean
since 1.2.7

Response

boolean

verify a value : it should correspond to the datatype

check(string $value) : boolean

Arguments

$value

string

Response

boolean

true if the value is ok

get a restriction value

getFacet(string $type) : mixed
since 1.0

Arguments

$type

string

Response

mixed

the value

Properties

hasFacets

hasFacets : 

Type(s)

facets

facets : 

Type(s)