protected function get_field_class_name($fieldtype) {
        global $CFG;

        $fieldtype = trim($fieldtype);
        require_once($CFG->dirroot . '/mod/data/field/' . $fieldtype . '/field.class.php');
        return 'data_field_' . $fieldtype;
    }
protected function get_field_class_name($fieldtype) {
        global $CFG;

        $fieldtype = trim($fieldtype);
        require_once($CFG->dirroot . '/mod/data/field/' . $fieldtype . '/field.class.php');
        return 'data_field_' . $fieldtype;
    }
protected function get_field_class_name ( $ fieldtype ) { global $ CFG ; $ fieldtype = trim ( $ fieldtype ) ; require_once ( $ CFG -> dirroot . '/mod/data/field/' . $ fieldtype . '/field.class.php' ) ; return 'data_field_' . $ fieldtype ; }
Returns the class name for that field type and includes it.

@param string $fieldtype
@return string
Returns the class name for that field type and includes it .