src/Sulu/Bundle/ResourceBundle/DataFixtures/ORM/Operators/LoadOperators.php
protected function getTypeForString($type)
    {
        switch ($type) {
            case 'string':
                return DataTypes::STRING_TYPE;
            case 'number':
                return DataTypes::NUMBER_TYPE;
            case 'date':
            case 'datetime':
                return DataTypes::DATETIME_TYPE;
            case 'boolean':
                return DataTypes::BOOLEAN_TYPE;
            case 'tags':
                return DataTypes::TAGS_TYPE;
            case 'auto-complete':
                return DataTypes::AUTO_COMPLETE_TYPE;
            default:
                return DataTypes::UNDEFINED_TYPE;
        }
    }
protected function getTypeForString($type)
    {
        switch ($type) {
            case 'string':
                return DataTypes::STRING_TYPE;
            case 'number':
                return DataTypes::NUMBER_TYPE;
            case 'date':
            case 'datetime':
                return DataTypes::DATETIME_TYPE;
            case 'boolean':
                return DataTypes::BOOLEAN_TYPE;
            case 'tags':
                return DataTypes::TAGS_TYPE;
            case 'auto-complete':
                return DataTypes::AUTO_COMPLETE_TYPE;
            default:
                return DataTypes::UNDEFINED_TYPE;
        }
    }
protected function getTypeForString ( $ type ) { switch ( $ type ) { case 'string' : return DataTypes :: STRING_TYPE ; case 'number' : return DataTypes :: NUMBER_TYPE ; case 'date' : case 'datetime' : return DataTypes :: DATETIME_TYPE ; case 'boolean' : return DataTypes :: BOOLEAN_TYPE ; case 'tags' : return DataTypes :: TAGS_TYPE ; case 'auto-complete' : return DataTypes :: AUTO_COMPLETE_TYPE ; default : return DataTypes :: UNDEFINED_TYPE ; } }
Returns integer for string type.

@param string $type
@returns integer
Returns integer for string type .