jDatatypeUrl
extends jDatatype
in package
Datatype url.
Possible facets are: 'schemeRequired','hostRequired','pathRequired', 'queryRequired'. all are booleans.
Tags
Table of Contents
- $facets : mixed
- $hasFacets : mixed
- $hostRequired : mixed
- $pathRequired : mixed
- $queryRequired : mixed
- $schemeRequired : 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.
- _addFacet() : mixed
Properties
$facets
protected
mixed
$facets
= array('schemeRequired', 'hostRequired', 'pathRequired', 'queryRequired')
Tags
$hasFacets
protected
mixed
$hasFacets
= \false
Tags
$hostRequired
protected
mixed
$hostRequired
= \true
Tags
$pathRequired
protected
mixed
$pathRequired
Tags
$queryRequired
protected
mixed
$queryRequired
Tags
$schemeRequired
protected
mixed
$schemeRequired
= \true
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
_addFacet()
protected
_addFacet(mixed $type, mixed $value) : mixed
Parameters
- $type : mixed
- $value : mixed