19declare(strict_types=1);
32 return (
string) $a_adt_search->getADT()->getSelections()[0];
43 $def->setNumeric(
false);
46 $translated_options = [];
50 $def->setOptions(array_replace(
$options, $translated_options));
61 return self::XML_SEPARATOR .
62 implode(self::XML_SEPARATOR, (array) $element->getSelections()) .
69 foreach (explode(self::XML_SEPARATOR, $a_cdata) as $value) {
73 $this->
getADT()->setSelections($values);
80 $a_bridge->setAutoSort(
false);
ADT definition base class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
prepareElementForEditor(ilADTFormBridge $a_bridge)
Prepare editor form elements.
getSearchQueryParserValue(ilADTSearchBridge $a_adt_search)
Get value for search query parser.
initADTDefinition()
Init adt instance.
getValueForXML(ilADT $element)
Parse ADT value for xml (export)
importValueFromXML(string $a_cdata)
Import value from xml.
importCustomDefinitionFormPostValues(ilPropertyFormGUI $a_form, string $language='')
Import custom post values from definition form.
importNewSelectOptions(bool $multi, ilPropertyFormGUI $a_form, string $language='')
translateLegacyImportValueFromXML(string $value)
On import from <7 options are not given by index but by their label.