60 $this->suffix = $a_value;
80 $this->value = str_replace(
',',
'.', $a_value);
100 $this->maxlength = $a_maxlength;
160 $this->size = $a_size;
190 $this->minvalue = $a_minvalue;
210 $this->maxvalue = $a_maxvalue;
230 $this->decimals = $a_decimals;
240 return $this->decimals;
255 $this->
setAlert($lng->txt(
"msg_input_is_required"));
263 $this->
setAlert($lng->txt(
"form_msg_numeric_value_required"));
274 $this->
setAlert($lng->txt(
"form_msg_value_too_low"));
285 $this->
setAlert($lng->txt(
"form_msg_value_too_low"));
297 $this->
setAlert($lng->txt(
"form_msg_value_too_high"));
308 $this->
setAlert($lng->txt(
"form_msg_value_too_high"));
326 $a_tpl->setCurrentBlock(
"prop_generic");
327 $a_tpl->setVariable(
"PROP_GENERIC", $html);
328 $a_tpl->parseCurrentBlock();
338 $tpl =
new ilTemplate(
"tpl.prop_number.html",
true,
true,
"Services/Form");
342 $tpl->setCurrentBlock(
"prop_number_propval");
344 $tpl->parseCurrentBlock();
346 $tpl->setCurrentBlock(
"prop_number");
355 $tpl->setVariable(
"DISABLED",
356 " disabled=\"disabled\"");
362 $constraints = $lng->txt(
"form_format").
": ###.".str_repeat(
"#", $this->
getDecimals());
367 $constraints.= $delim.$lng->txt(
"form_min_value").
": ".(($this->
minvalueShouldBeGreater()) ?
"> " :
"").$this->getMinValue();
372 $constraints.= $delim.$lng->txt(
"form_max_value").
": ".(($this->
maxvalueShouldBeLess()) ?
"< " :
"").$this->getMaxValue();
375 if ($constraints !=
"")
377 $tpl->setVariable(
"TXT_NUMBER_CONSTRAINTS", $constraints);
380 $tpl->parseCurrentBlock();