3 require_once
"Services/ADT/classes/Bridges/class.ilADTSearchBridgeMulti.php";
17 if($a_adt_def->
getType() ==
"Enum")
19 $this->multi_source =
false;
21 $def->setNumeric($a_adt_def->isNumeric());
22 $def->setOptions($a_adt_def->getOptions());
27 $this->multi_source =
true;
37 $this->
getADT()->setSelections($value);
48 $def = $this->
getADT()->getCopyOfDefinition();
54 $cbox->setValue($this->
getADT()->getSelections());
56 foreach(
$options as $value => $caption)
59 $cbox->addOption($option);
74 $item->setValue($post);
76 else if(array_key_exists($this->
getElementId(), $this->table_filter_fields))
78 $this->table_filter_fields[$this->
getElementId()]->setValue($post);
84 $this->
getADT()->setSelections($post);
89 $this->
getADT()->setSelections();
106 if($this->multi_source)
108 include_once
"Services/ADT/classes/Types/MultiEnum/class.ilADTMultiEnumDBBridge.php";
111 foreach($this->
getADT()->getSelections() as $item)
113 $item =
"%".ilADTMultiEnumDBBridge::SEPARATOR.
116 $parts[] = $ilDB->like($a_element_id,
"text", $item,
false);
118 return "(".implode(
" AND ", $parts).
")";
121 return $ilDB->in($a_element_id, $this->
getADT()->getSelections(),
"", $type);
127 return $this->
getADT()->equals($a_adt);
137 return serialize($this->
getADT()->getSelections());
143 $a_value = unserialize($a_value);
144 if(is_array($a_value))
146 $this->
getADT()->setSelections($a_value);