19 declare(strict_types=1);
37 string $a_postvar =
"" 41 $this->
lng = $DIC->language();
46 public function setValue(
string $a_value): void
48 $this->value = $a_value;
75 $t = $this->
refinery->kindlyTo()->string();
113 $ptpl =
new ilTemplate(
'tpl.prop_email.html',
true,
true,
'components/ILIAS/Form');
116 $ptpl->setCurrentBlock(
'retype_email');
117 $ptpl->setVariable(
'RSIZE', $this->
getSize());
118 $ptpl->setVariable(
'RID', $this->
getFieldId());
119 $ptpl->setVariable(
'RMAXLENGTH', $this->
getMaxLength());
120 $ptpl->setVariable(
'RPOST_VAR', $this->
getPostVar());
125 $ptpl->setVariable(
'RDISABLED',
' disabled="disabled"');
127 $ptpl->setVariable(
'TXT_RETYPE',
$lng->
txt(
'form_retype_email'));
128 $ptpl->parseCurrentBlock();
131 $ptpl->setVariable(
'POST_VAR', $this->
getPostVar());
132 $ptpl->setVariable(
'ID', $this->
getFieldId());
134 $ptpl->setVariable(
'SIZE', $this->
getSize());
137 $ptpl->setVariable(
'DISABLED',
' disabled="disabled"');
142 $ptpl->setVariable(
"REQUIRED",
"required=\"required\"");
152 $this->retype = $a_val;
162 $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 stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
static is_email(string $a_email, ?ilMailRfc822AddressParserFactory $mailAddressParserFactory=null)
This preg-based function checks whether an e-mail address is formally valid.
setVariable($variable, $value='')
Sets a variable value.
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
__construct(Container $dic, ilPlugin $plugin)