jDatatypeHtml
extends jDatatype
in package
implements
jIFilteredDatatype
Datatype HTML String.
Possible facets are: 'length','minLength','maxLength'
Tags
Interfaces, Classes and Traits
- jIFilteredDatatype
- interface for datatypes which can filter value.
Table of Contents
- $fromWysiwyg : mixed
- $outputXhtml : mixed
- $facets : mixed
- $hasFacets : mixed
- $length : mixed
- $maxLength : mixed
- $minLength : mixed
- $newValue : mixed
- __construct() : 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.
- getFilteredValue() : mixed
- return the value on which filters are applied should be call after a call of check() method.
- _addFacet() : mixed
Properties
$fromWysiwyg
public
mixed
$fromWysiwyg
= \false
Tags
$outputXhtml
public
mixed
$outputXhtml
= \false
Tags
$facets
protected
mixed
$facets
= array('length', 'minLength', 'maxLength')
Tags
$hasFacets
protected
mixed
$hasFacets
= \false
Tags
$length
protected
mixed
$length
Tags
$maxLength
protected
mixed
$maxLength
Tags
$minLength
protected
mixed
$minLength
Tags
$newValue
protected
mixed
$newValue
Tags
Methods
__construct()
public
__construct([mixed $aOutputXhtml = false ][, mixed $fromWysiwyg = false ]) : mixed
Parameters
- $aOutputXhtml : mixed = false
- $fromWysiwyg : mixed = false
Tags
Return values
mixed —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
getFilteredValue()
return the value on which filters are applied should be call after a call of check() method.
public
getFilteredValue() : mixed
Tags
Return values
mixed —_addFacet()
protected
_addFacet(mixed $type, mixed $value) : mixed
Parameters
- $type : mixed
- $value : mixed