19 declare(strict_types=1);
32 return (
string) $a_adt_search->getADT()->getSelections()[0];
37 return self::TYPE_SELECT_MULTI;
43 $def->setNumeric(
false);
57 if (!$record->getParentObject()) {
67 foreach ($this->
options()->getOptions() as $option) {
68 if (in_array($option->optionID(), (array) $element->getSelections())) {
69 $selections[] = $index;
78 return self::XML_SEPARATOR .
79 implode(self::XML_SEPARATOR, $values) .
86 foreach (explode(self::XML_SEPARATOR, trim($a_cdata, self::XML_SEPARATOR)) as $value) {
90 $this->
getADT()->setSelections($values);
97 $a_bridge->setAutoSort(
false);
getOptionsInLanguageAsArray(string $language, bool $default_as_fallback=true)
translateLegacyImportValueFromXML(string $value)
On import from <7 options are not given by index but by their label.
prepareElementForEditor(ilADTFormBridge $a_bridge)
importNewSelectOptions(bool $multi, ilPropertyFormGUI $a_form, string $language='')
static _getInstanceByRecordId(int $a_record_id)
importCustomDefinitionFormPostValues(ilPropertyFormGUI $a_form, string $language='')
ADT search bridge base class.
getSearchQueryParserValue(ilADTSearchBridge $a_adt_search)
implodeValuesForXML(array $values)
language()
description: > Example for rendring a language glyph.
getValueForXML(ilADT $element)
importValueFromXML(string $a_cdata)
ADT definition base class.