52 $this->
lng = $DIC[
'lng'];
53 $this->glyph_factory = $DIC->ui()->factory()->symbol()->glyph();
54 $this->
renderer = $DIC[
'ui.renderer'];
55 $this->tpl = $DIC[
'tpl'];
57 $this->validationRegexp =
"";
96 $submittedElements = $this->
getInput();
98 if ($submittedElements === [] && $this->
getRequired()) {
103 foreach ($submittedElements as $submittedValue) {
106 if ($this->
getRequired() && trim((
string) $submittedContentText) ===
"") {
122 public function render(
string $a_mode =
""): string
124 $tpl =
new ilTemplate(
"tpl.prop_multi_text_inp.html",
true,
true,
"components/ILIAS/TestQuestionPool");
138 $this->glyph_factory->up()->withAction(
'#')
141 $this->glyph_factory->down()->withAction(
'#')
154 " disabled=\"disabled\"" 160 $this->glyph_factory->add()->withAction(
'#')
163 $this->glyph_factory->remove()->withAction(
'#')
174 .
'"fieldContainerSelector": ".ilWzdContainerText", ' 175 .
'"reindexingRequiredElementsSelectors": ["input:text", "button"], ' 176 .
'"handleRowCleanUpCallback": function(rowElem) {$(rowElem).find("input:text").val("")}' 178 $this->tpl->addJavascript(
"assets/js/answerwizardinput.js");
179 $this->tpl->addJavascript(
"assets/js/identifiedwizardinput.js");
180 $this->tpl->addOnLoadCode(
"$.extend({}, AnswerWizardInput, IdentifiedWizardInput).init({$config});");
196 return (
bool) strlen(
$value);
render(string $a_mode="")
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
fetchContentTextFromValue($value)
__construct($a_title="", $a_postvar="")
Constructor.
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...
ilGlobalTemplateInterface $tpl
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
valueHasContentText($value)
This is how a factory for glyphs looks like.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
isEditElementOrderEnabled()
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
GlyphFactory $glyph_factory
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
isEditElementOccuranceEnabled()
$editElementOccuranceEnabled
__construct(Container $dic, ilPlugin $plugin)
setEditElementOrderEnabled($editElementOrderEnabled)
setEditElementOccuranceEnabled($editElementOccuranceEnabled)