jDatatypeString

Extends \jDatatype

Datatype String.

Possible facets are: 'length','minLength','maxLength', 'pattern'

package

jelix

subpackage

datatypes

Methods

_addFacet

_addFacet( $type,  $value) 
inherited

Arguments

$type

$value

call it to add restriction on possible values

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

Arguments

$type

string

$value

string

says if the value can contain only whitespaces

allowWhitespace() : boolean
inherited
since 1.2.7

Response

boolean

verify a value : it should correspond to the datatype

check(string $value) : boolean
inherited

Arguments

$value

string

Response

boolean

true if the value is ok

get a restriction value

getFacet(string $type) : mixed
inherited
since 1.0

Arguments

$type

string

Response

mixed

the value

Properties

length

length : 

Type(s)

minLength

minLength : 

Type(s)

maxLength

maxLength : 

Type(s)

pattern

pattern : 

Type(s)

facets

facets : 
inherited

Type(s)

hasFacets

hasFacets : 
inherited

Type(s)