Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
PrimitiveTypeDescription Class Reference
Inheritance diagram for PrimitiveTypeDescription:
TypeDescription ValidatorTypeDescription

Public Member Functions

 _getPrimitiveTypeName (&$variable)
 _supportedPrimitiveTypes ()
 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)

Detailed Description

Class that describes a primitive input/output type.

Definition at line 18 of file

Member Function Documentation

PrimitiveTypeDescription::_getPrimitiveTypeName ( $variable)

Return a string representation of a primitive type.


Definition at line 79 of file

Referenced by checkType().

PrimitiveTypeDescription::_supportedPrimitiveTypes ( )

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

NB: Workaround for missing static class members in PHP4.

Definition at line 95 of file

Referenced by parseTypeName().

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


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

Definition at line 28 of file

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