19 declare(strict_types=1);
45 string $a_postvar =
"" 49 $this->
lng = $DIC->language();
58 $this->value = $a_value;
68 $this->retype = $a_val;
78 $this->retypevalue = $a_retypevalue;
88 $this->maxlength = $a_maxlength;
96 public function setSize(
int $a_size): void
98 $this->size = $a_size;
115 $this->validateauthpost = $a_validateauthpost;
126 $this->requiredonauth = $a_requiredonauth;
136 $this->skip_syntax_check = $a_val;
146 $this->autocomplete_disabled = $a_value;
161 $this->use_strip_slashes = $a_stat;
178 if ($this->
getRequired() && trim($pass_value) ==
"") {
187 && trim($pass_value) ==
"") {
193 if (trim($pass_value) !=
"" &&
200 ($pass_value != $retype_value)) {
207 if ($custom_error !=
'') {
230 $ptpl =
new ilTemplate(
"tpl.prop_password.html",
true,
true,
"components/ILIAS/Form");
233 $ptpl->setCurrentBlock(
"retype");
234 $ptpl->setVariable(
"RSIZE", $this->
getSize());
235 $ptpl->setVariable(
"RID", $this->
getFieldId());
237 $ptpl->setCurrentBlock(
"rmaxlength");
238 $ptpl->setVariable(
"RMAXLENGTH", $this->
getMaxLength());
239 $ptpl->parseCurrentBlock();
241 $ptpl->setVariable(
"RPOST_VAR", $this->
getPostVar());
244 $ptpl->setVariable(
"RAUTOCOMPLETE",
"autocomplete=\"off\"");
256 " disabled=\"disabled\"" 259 $ptpl->setVariable(
"TXT_RETYPE",
$lng->
txt(
"form_retype_password"));
260 $ptpl->parseCurrentBlock();
264 $ptpl->setCurrentBlock(
"prop_password_propval");
266 $ptpl->parseCurrentBlock();
268 $ptpl->setVariable(
"POST_VAR", $this->
getPostVar());
269 $ptpl->setVariable(
"ID", $this->
getFieldId());
270 $ptpl->setVariable(
"SIZE", $this->
getSize());
272 $ptpl->setCurrentBlock(
"maxlength");
274 $ptpl->parseCurrentBlock();
279 " disabled=\"disabled\"" 283 $ptpl->setVariable(
"AUTOCOMPLETE",
"autocomplete=\"off\"");
286 $ptpl->setVariable(
"REQUIRED",
"required=\"required\"");
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
static _getAuthMode(?string $a_auth_mode)
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 isPassword(string $a_passwd, ?string &$customError=null)
static _allowPasswordModificationByAuthMode($a_auth_mode)
Allow password modification.
setVariable($variable, $value='')
Sets a variable value.
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
__construct(Container $dic, ilPlugin $plugin)