3 declare(strict_types=1);
19 if ($value !== null) {
20 $this->
getADT()->setSelection($value);
26 return self::ENUM_SEARCH_COLUMN;
33 $def = $this->
getADT()->getCopyOfDefinition();
35 $options = $def->getOptions();
38 $this->
lng->loadLanguageModule(
"search");
39 $options = array(
"" => $this->
lng->txt(
"search_any")) + $options;
42 $select->setOptions($options);
44 $select->setValue($this->
getADT()->getSelection());
58 $item->setValue(
$post);
59 } elseif (array_key_exists($this->
getElementId(), $this->table_filter_fields)) {
67 $this->
getADT()->setSelection();
74 public function getSQLCondition(
string $a_element_id,
int $mode = self::SQL_LIKE, array $quotedWords = []): string
87 return $this->
getADT()->equals($a_adt);
95 return serialize(array($this->
getADT()->getSelection()));
102 $a_value = unserialize($a_value);
103 if (is_array($a_value) && !empty($a_value)) {
104 $this->
getADT()->setSelection($a_value[0]);
extractPostValues(array $a_post=null)
Extract data from (post) values.
shouldBeImportedFromPost($a_post)
Check if incoming values should be imported at all.
readFilter()
Load value(s) from filter store (in session)
Class ilADTSearchBridgeSingle.
getSQLCondition(string $a_element_id, int $mode=self::SQL_LIKE, array $quotedWords=[])
isValidADTDefinition(ilADTDefinition $a_adt_def)
isInCondition(ilADT $a_adt)
setSerializedValue(string $a_value)
writeFilter($a_value=null)
Write value(s) to filter store (in session)
importFromPost(array $a_post=null)
ADT definition base class.
addToParentElement(ilFormPropertyGUI $a_field)
Add form field to parent element.