54 parent::__construct($a_title, $a_postvar);
64 $this->value = $a_value;
110 $this->
setAlert($lng->txt(
"msg_input_is_required"));
116 $this->
setAlert($lng->txt(
'email_not_match'));
124 $this->
setAlert($lng->txt(
"email_not_valid"));
140 $ptpl =
new ilTemplate(
'tpl.prop_email.html',
true,
true,
'Services/Form');
144 $ptpl->setCurrentBlock(
'retype_email');
145 $ptpl->setVariable(
'RSIZE', $this->
getSize());
146 $ptpl->setVariable(
'RID', $this->
getFieldId());
147 $ptpl->setVariable(
'RMAXLENGTH', $this->
getMaxLength());
148 $ptpl->setVariable(
'RPOST_VAR', $this->
getPostVar());
154 $ptpl->setVariable(
'RDISABLED',
' disabled="disabled"');
156 $ptpl->setVariable(
'TXT_RETYPE', $lng->txt(
'form_retype_email'));
157 $ptpl->parseCurrentBlock();
160 $ptpl->setVariable(
'POST_VAR', $this->
getPostVar());
161 $ptpl->setVariable(
'ID', $this->
getFieldId());
163 $ptpl->setVariable(
'SIZE', $this->
getSize());
167 $ptpl->setVariable(
'DISABLED',
' disabled="disabled"');
173 $ptpl->setVariable(
"REQUIRED",
"required=\"required\"");
186 $this->retype = $a_val;
202 $this->retypevalue = $a_retypevalue;
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
static is_email($a_email)
This preg-based function checks whether an e-mail address is formally valid.
setVariable($variable, $value='')
Sets a variable value.
special template class to simplify handling of ITX/PEAR
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
setCurrentBlock($part="DEFAULT")
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
parseCurrentBlock($part="DEFAULT")
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public...