public static function checkSchemaType($type)
    {
        if (isset(self::$_schemaTypes[$type])) {
            return self::$_schemaTypes[$type];
        } else {
            return false;
        }
    }
public static function checkSchemaType($type)
    {
        if (isset(self::$_schemaTypes[$type])) {
            return self::$_schemaTypes[$type];
        } else {
            return false;
        }
    }
public static function checkSchemaType ( $ type ) { if ( isset ( self :: $ _schemaTypes [ $ type ] ) ) { return self :: $ _schemaTypes [ $ type ] ; } else { return false ; } }
Checks if the given type is a valid XML Schema type or can be casted to a schema type.

@param string The datatype

@return string
Checks if the given type is a valid XML Schema type or can be casted to a schema type .