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);
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...
valueHasContentText($value)
setEditElementOccuranceEnabled($editElementOccuranceEnabled)
ilGlobalTemplateInterface $tpl
render(string $a_mode="")
isEditElementOrderEnabled()
fetchContentTextFromValue($value)
isEditElementOccuranceEnabled()
GlyphFactory $glyph_factory
$editElementOccuranceEnabled
__construct($a_title="", $a_postvar="")
Constructor.
setEditElementOrderEnabled($editElementOrderEnabled)
special template class to simplify handling of ITX/PEAR
setVariable(string $variable, $value='')
Sets the given variable to the given value.
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
This is how a factory for glyphs looks like.
An entity that renders components to a string output.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc