19 declare(strict_types=1);
35 string $a_postvar =
"" 39 $this->
lng = $DIC->language();
40 $this->tpl = $DIC[
"tpl"];
42 $this->validationRegexp =
"";
47 $this->values = $a_values;
55 $this->values = (array) $a_value;
65 $this->allowMove = $a_allow_move;
78 if (count($foundvalues) > 0) {
79 foreach ($foundvalues as
$value) {
113 public function render(
string $a_mode =
""): string
115 $tpl =
new ilTemplate(
"tpl.prop_textwizardinput.html",
true,
true,
"components/ILIAS/Form");
117 foreach ($this->values as
$value) {
118 if (strlen($value)) {
141 " disabled=\"disabled\"" 157 $this->tpl->addJavascript(
"assets/js/ServiceFormWizardInput.js");
158 $this->tpl->addJavascript(
"assets/js/textwizard.js");
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
__construct(string $a_title="", string $a_postvar="")
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...
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
ilGlobalTemplateInterface $tpl
setVariable(string $variable, $value='')
Sets the given variable to the given value.
insert(ilTemplate $a_tpl)
render(string $a_mode="")
setVariable($variable, $value='')
Sets a variable value.
setAllowMove(bool $a_allow_move)
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
setValues(array $a_values)
__construct(Container $dic, ilPlugin $plugin)
This class represents a text wizard property in a property form.