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

Public Member Functions

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

Public Attributes

 $_className
 
 $_packageName
 
- Public Attributes inherited from TypeDescription
 $_cardinality
 
 $_typeName
 

Detailed Description

A type description that validates objects by class type.

Example type identifier: 'class::lib.pkp.classes.submission.Submission'

Definition at line 20 of file ClassTypeDescription.inc.php.

Member Function Documentation

ClassTypeDescription::checkType ( $object)
See Also
TypeDescription::checkType()

Definition at line 74 of file ClassTypeDescription.inc.php.

ClassTypeDescription::ClassTypeDescription (   $typeName)

Constructor

Parameters
$typeNamestring a fully qualified class name.

Definition at line 38 of file ClassTypeDescription.inc.php.

ClassTypeDescription::getNamespace ( )
See Also
TypeDescription::getNamespace()

Definition at line 48 of file ClassTypeDescription.inc.php.

References splitClassName().

ClassTypeDescription::parseTypeName (   $typeName)
ClassTypeDescription::splitClassName (   $typeName)

Splits a fully qualified class name into a package and a class name string.

Parameters
$typeNamethe type name to be split up.
Returns
array an array with the package name as its first entry and the class name as its second entry.

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

Referenced by getNamespace().

Member Data Documentation

string ClassTypeDescription::$_className

a valid class name

Definition at line 25 of file ClassTypeDescription.inc.php.

string ClassTypeDescription::$_packageName

a valid package name

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


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