/** * * Constructor * * @param object $field field object as extracted from database */ public function __construct($field, $decorable, $attribute_type) { $attribute_type = "email"; //prevent email-cloaking in form displayed in content, when a default value is set if (isset($field->attribute_value) && $field->attribute_value != "") { $field->attribute_value = str_replace('@', '@', $field->attribute_value); } parent::__construct($field, $decorable, $attribute_type); }
/** * * Constructor * * @param object $field field object as extracted from database */ public function __construct($field, $decorable, $attribute_type) { $attribute_type = "password"; parent::__construct($field, $decorable, $attribute_type); }