function &createInput($inputType, $name, $value = null, $attributes = array()) { $tag = rex_form::getInputTagName($inputType); $className = rex_form::getInputClassName($inputType); $attributes = array_merge(rex_form::getInputAttributes($inputType), $attributes); $attributes['internal::fieldClass'] = $className; $element =& $this->createElement($tag, $name, $value, $attributes); return $element; }