public static function getConstantByName($name)
    {
        switch (trim(strtolower($name))) {
            case 'identifier':
                return self::IDENTIFIER;
            break;

            case 'boolean':
                return self::BOOLEAN;
            break;

            case 'integer':
                return self::INTEGER;
            break;

            case 'float':
                return self::FLOAT;
            break;

            case 'string':
                return self::STRING;
            break;

            case 'point':
                return self::POINT;
            break;

            case 'pair':
                return self::PAIR;
            break;

            case 'directedpair':
                return self::DIRECTED_PAIR;
            break;

            case 'duration':
                return self::DURATION;
            break;

            case 'file':
                return self::FILE;
            break;

            case 'uri':
                return self::URI;
            break;

            case 'intoridentifier':
                return self::INT_OR_IDENTIFIER;
            break;

            case 'coords':
                return self::COORDS;
            break;

            default:
                return false;
            break;
        }
    }
public static function getConstantByName($name)
    {
        switch (trim(strtolower($name))) {
            case 'identifier':
                return self::IDENTIFIER;
            break;

            case 'boolean':
                return self::BOOLEAN;
            break;

            case 'integer':
                return self::INTEGER;
            break;

            case 'float':
                return self::FLOAT;
            break;

            case 'string':
                return self::STRING;
            break;

            case 'point':
                return self::POINT;
            break;

            case 'pair':
                return self::PAIR;
            break;

            case 'directedpair':
                return self::DIRECTED_PAIR;
            break;

            case 'duration':
                return self::DURATION;
            break;

            case 'file':
                return self::FILE;
            break;

            case 'uri':
                return self::URI;
            break;

            case 'intoridentifier':
                return self::INT_OR_IDENTIFIER;
            break;

            case 'coords':
                return self::COORDS;
            break;

            default:
                return false;
            break;
        }
    }
public static function getConstantByName ( $ name ) { switch ( trim ( strtolower ( $ name ) ) ) { case 'identifier' : return self :: IDENTIFIER ; break ; case 'boolean' : return self :: BOOLEAN ; break ; case 'integer' : return self :: INTEGER ; break ; case 'float' : return self :: FLOAT ; break ; case 'string' : return self :: STRING ; break ; case 'point' : return self :: POINT ; break ; case 'pair' : return self :: PAIR ; break ; case 'directedpair' : return self :: DIRECTED_PAIR ; break ; case 'duration' : return self :: DURATION ; break ; case 'file' : return self :: FILE ; break ; case 'uri' : return self :: URI ; break ; case 'intoridentifier' : return self :: INT_OR_IDENTIFIER ; break ; case 'coords' : return self :: COORDS ; break ; default : return false ; break ; } }
Get a constant value from the BaseType enumeration by baseType name.

* 'identifier' -> BaseType::IDENTIFIER
* 'boolean' -> BaseType::BOOLEAN
* 'integer' -> BaseType::INTEGER
* 'float' -> BaseType::FLOAT
* 'string' -> BaseType::STRING
* 'point' -> BaseType::POINT
* 'pair' -> BaseType::PAIR
* 'directedPair' -> BaseType::DIRECTED_PAIR
* 'duration' -> BaseType::DURATION
* 'file' -> BaseType::FILE
* 'uri' -> BaseType::URI
* 'intOrIdentifier' -> BaseType::INT_OR_IDENTIFIER
* extra 'coords' -> BaseType::COORDS

@param string $name The baseType name.
@return integer|boolean The related enumeration value or false if the name could not be resolved.
Get a constant value from the BaseType enumeration by baseType name .