Open Journal Systems  2.4.3
 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 PrimitiveTypeDescription.inc.php.

Member Function Documentation

PrimitiveTypeDescription::_getPrimitiveTypeName ( $variable)

Return a string representation of a primitive type.

Parameters
$variablemixed

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

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 PrimitiveTypeDescription.inc.php.

Referenced by parseTypeName().

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 28 of file PrimitiveTypeDescription.inc.php.


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