3 declare(strict_types=1);
36 string $a_postvar =
"" 40 $this->
lng = $DIC->language();
45 public function setValue(
string $a_value): void
47 $this->value = $a_value;
74 $t = $this->
refinery->kindlyTo()->string();
112 $ptpl =
new ilTemplate(
'tpl.prop_email.html',
true,
true,
'Services/Form');
115 $ptpl->setCurrentBlock(
'retype_email');
116 $ptpl->setVariable(
'RSIZE', $this->
getSize());
117 $ptpl->setVariable(
'RID', $this->
getFieldId());
118 $ptpl->setVariable(
'RMAXLENGTH', $this->
getMaxLength());
119 $ptpl->setVariable(
'RPOST_VAR', $this->
getPostVar());
124 $ptpl->setVariable(
'RDISABLED',
' disabled="disabled"');
126 $ptpl->setVariable(
'TXT_RETYPE',
$lng->
txt(
'form_retype_email'));
127 $ptpl->parseCurrentBlock();
130 $ptpl->setVariable(
'POST_VAR', $this->
getPostVar());
131 $ptpl->setVariable(
'ID', $this->
getFieldId());
133 $ptpl->setVariable(
'SIZE', $this->
getSize());
136 $ptpl->setVariable(
'DISABLED',
' disabled="disabled"');
141 $ptpl->setVariable(
"REQUIRED",
"required=\"required\"");
151 $this->retype = $a_val;
161 $this->retypevalue = $a_retypevalue;
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static is_email(string $a_email, ilMailRfc822AddressParserFactory $mailAddressParserFactory=null)
This preg-based function checks whether an e-mail address is formally valid.
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
setVariable($variable, $value='')
Sets a variable value.
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
__construct(Container $dic, ilPlugin $plugin)