library/Garp/Form/Element/Text.php
protected function _getType() {
        $className = strtolower(get_class($this));
        $classNameParts = explode('_', $className);
        $type = array_pop($classNameParts);
        if (array_key_exists($type, self::$_mapping)) {
            return self::$_mapping[$type];
        }
        return self::DEFAULT_TYPE;
    }
protected function _getType() {
        $className = strtolower(get_class($this));
        $classNameParts = explode('_', $className);
        $type = array_pop($classNameParts);
        if (array_key_exists($type, self::$_mapping)) {
            return self::$_mapping[$type];
        }
        return self::DEFAULT_TYPE;
    }
protected function _getType ( ) { $ className = strtolower ( get_class ( $ this ) ) ; $ classNameParts = explode ( '_' , $ className ) ; $ type = array_pop ( $ classNameParts ) ; if ( array_key_exists ( $ type , self :: $ _mapping ) ) { return self :: $ _mapping [ $ type ] ; } return self :: DEFAULT_TYPE ; }
Take the type from the classname
@return String
Take the type from the classname