jDatatypeHtml

Extends \jDatatype Implements \jIFilteredDatatype

Datatype HTML String.

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

package

jelix

subpackage

datatypes

since 1.1

Methods

__construct

__construct( $aOutputXhtml = false,  $fromWysiwyg = false) 

Arguments

$aOutputXhtml

$fromWysiwyg

_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

return the value on which filters are applied should be call after a call of check() method

getFilteredValue() 

Properties

length

length : 

Type(s)

minLength

minLength : 

Type(s)

maxLength

maxLength : 

Type(s)

facets

facets : 
inherited

Type(s)

outputXhtml

outputXhtml : 

Type(s)

fromWysiwyg

fromWysiwyg : 

Type(s)

newValue

newValue : 

Type(s)

hasFacets

hasFacets : 
inherited

Type(s)