Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
PrimitiveTypeDescription Class Reference
Inheritance diagram for PrimitiveTypeDescription:
TypeDescription ValidatorTypeDescription

Public Member Functions

 _getPrimitiveTypeName (&$variable)
 
 checkType (&$object)
 
 getNamespace ()
 
 parseTypeName ($typeName)
 
 PrimitiveTypeDescription ($typeName)
 
- Public Member Functions inherited from TypeDescription
 _parseTypeNameInternally ($typeName)
 
 checkType (&$object)
 
 getNamespace ()
 
 getTypeDescription ()
 
 getTypeName ()
 
 isCompatible ($object)
 
 parseTypeName ($typeName)
 
 TypeDescription ($typeName)
 

Static Public Member Functions

static _supportedPrimitiveTypes ()
 

Public Attributes

 $_primitiveType
 
- Public Attributes inherited from TypeDescription
 $_cardinality
 
 $_typeName
 

Detailed Description

Class that describes a primitive input/output type.

Definition at line 18 of file PrimitiveTypeDescription.inc.php.

Member Function Documentation

PrimitiveTypeDescription::_getPrimitiveTypeName ( $variable)

Return a string representation of a primitive type.

Parameters
$variablemixed

Definition at line 82 of file PrimitiveTypeDescription.inc.php.

static PrimitiveTypeDescription::_supportedPrimitiveTypes ( )
static

Returns a (static) array with supported primitive type names.

Definition at line 96 of file PrimitiveTypeDescription.inc.php.

Referenced by getNamespace().

PrimitiveTypeDescription::checkType ( $object)
PrimitiveTypeDescription::getNamespace ( )
PrimitiveTypeDescription::parseTypeName (   $typeName)
PrimitiveTypeDescription::PrimitiveTypeDescription (   $typeName)

Constructor

Parameters
$typeNamestring Allowed primitive types are 'integer', 'string', 'float' and 'boolean'.

Definition at line 31 of file PrimitiveTypeDescription.inc.php.

Member Data Documentation

string PrimitiveTypeDescription::$_primitiveType

a PHP primitive type, e.g. 'string'

Definition at line 23 of file PrimitiveTypeDescription.inc.php.


The documentation for this class was generated from the following file: