3 declare(strict_types=1);
    35         $this->search_mode = $a_mode;
    40         return self::ENUM_SEARCH_COLUMN;
    51         if ($a_adt_def->
getType() == 
"Enum") {
    52             $this->multi_source = 
false;
    54             $def->setNumeric($a_adt_def->isNumeric());
    55             $def->setOptions($a_adt_def->getOptions());
    58             $this->multi_source = 
true;
    66         if ($value !== null) {
    67             if (is_string($value)) {
    70             $this->
getADT()->setSelections($value);
    78         $def = $this->
getADT()->getCopyOfDefinition();
    80         $options = $def->getOptions();
    83         $cbox->setValue($this->
getADT()->getSelections());
    85         foreach ($options as $value => $caption) {
    87             $cbox->addOption($option);
   100                 $item->setValue(
$post);
   101             } elseif (array_key_exists($this->
getElementId(), $this->table_filter_fields)) {
   106             if (is_array(
$post)) {
   110             $this->
getADT()->setSelections();
   112             if (array_key_exists($this->
getElementId(), $this->table_filter_fields)) {
   121     public function getSQLCondition(
string $a_element_id, 
int $mode = self::SQL_LIKE, array $quotedWords = []): string
   124             return $this->db->in(
   126                 (array) $this->
getADT()->getSelections(),
   138         $current = $this->
getADT()->getSelections();
   139         if (is_array($current) &&
   142             if ($this->search_mode == self::SEARCH_MODE_ANY) {
   143                 foreach ((array) $a_adt->getSelections() as $value) {
   144                     if (in_array($value, $current)) {
   150                 return !count(array_diff($current, (array) $a_adt->getSelections()));
   161             return serialize($this->
getADT()->getSelections());
   168         $a_value = unserialize($a_value);
   169         if (is_array($a_value)) {
   170             $this->
getADT()->setSelections($a_value);
 
convertADTDefinitionToMulti(ilADTDefinition $a_adt_def)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
extractPostValues(array $a_post=null)
Extract data from (post) values. 
 
shouldBeImportedFromPost($a_post)
Check if incoming values should be imported at all. 
 
importFromPost(array $a_post=null)
 
readFilter()
Load value(s) from filter store (in session) 
 
getSQLCondition(string $a_element_id, int $mode=self::SQL_LIKE, array $quotedWords=[])
 
isValidADTDefinition(ilADTDefinition $a_adt_def)
 
setSearchMode(int $a_mode)
 
writeFilter($a_value=null)
Write value(s) to filter store (in session) 
 
isInCondition(ilADT $a_adt)
 
Class ilADTSearchBridgeMulti. 
 
getType()
Get type (from class/instance) 
 
setSerializedValue(string $a_value)
 
ADT definition base class. 
 
addToParentElement(ilFormPropertyGUI $a_field)
Add form field to parent element.