Class jDatatype

Description
  • abstract:

Located in /utils/jDatatype.class.php (line 17)


	
			
Direct descendents
Class Description
jDatatypeString Datatype String.
jDatatypeBoolean Datatype Booléen
jDatatypeDecimal Datatype Decimal
jDatatypeDateTime Datatype datetime
jDatatypeUrl Datatype url
jDatatypeIPv4 Datatype ipv4
jDatatypeIPv6 Datatype ipv6
jDatatypeEmail Datatype mail
Variable Summary
mixed $facets
mixed $hasFacets
Method Summary
jDatatype __construct ()
void addFacet (string $type, [string $value = null])
boolean check (string $value)
mixed getFacet (string $type)
void _addFacet ( $type,  $value)
Variables
mixed $facets = array() (line 20)
  • access: protected

Redefined in descendants as:
mixed $hasFacets = false (line 19)
  • access: protected
Methods
Constructor __construct (line 22)
jDatatype __construct ()
addFacet (line 30)

call it to add restriction on possible values

  • access: public
void addFacet (string $type, [string $value = null])
  • string $type
  • string $value
check (line 61)

verify a value : it should correspond to the datatype

  • return: true if the value is ok
  • access: public
boolean check (string $value)
  • string $value

Redefined in descendants as:
getFacet (line 45)

get a restriction value

  • return: the value
  • since: 1.0
  • access: public
mixed getFacet (string $type)
  • string $type
_addFacet (line 52)
  • access: protected
void _addFacet ( $type,  $value)
  • $type
  • $value

Redefined in descendants as:

Documentation generated on Wed, 07 Sep 2011 13:47:06 +0200 by phpDocumentor 1.4.3