19 declare(strict_types=1);
35 if ($value !==
null) {
36 $this->
getADT()->setSelection($value);
42 return self::ENUM_SEARCH_COLUMN;
49 $def = $this->
getADT()->getCopyOfDefinition();
51 $options = $def->getOptions();
53 $this->
lng->loadLanguageModule(
"search");
54 $options = array(
"" => $this->
lng->txt(
"search_any")) + $options;
57 $select->setOptions($options);
59 $select->setValue($this->
getADT()->getSelection());
73 $item->setValue(
$post);
74 } elseif (array_key_exists($this->
getElementId(), $this->table_filter_fields)) {
82 $this->
getADT()->setSelection();
89 public function getSQLCondition(
string $a_element_id,
int $mode = self::SQL_LIKE, array $quotedWords = []): string
102 return $this->
getADT()->equals($a_adt);
110 return serialize(array($this->
getADT()->getSelection()));
117 $a_value = unserialize($a_value);
118 if (is_array($a_value) && !empty($a_value)) {
119 $this->
getADT()->setSelection($a_value[0]);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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=[])
extractPostValues(?array $a_post=null)
Extract data from (post) values.
isValidADTDefinition(ilADTDefinition $a_adt_def)
isInCondition(ilADT $a_adt)
importFromPost(?array $a_post=null)
setSerializedValue(string $a_value)
writeFilter($a_value=null)
Write value(s) to filter store (in session)
ADT definition base class.
addToParentElement(ilFormPropertyGUI $a_field)
Add form field to parent element.