3declare(strict_types=1);
19 if ($value !==
null) {
20 $this->
getADT()->setSelection($value);
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]);
ADT definition base class.
isInCondition(ilADT $a_adt)
Compare directly against ADT.
setSerializedValue(string $a_value)
Set current value(s) in serialized form (for easy persisting)
addToForm()
Add ADT-specific fields to form.
isValidADTDefinition(ilADTDefinition $a_adt_def)
getSQLCondition(string $a_element_id, int $mode=self::SQL_LIKE, array $quotedWords=[])
Get SQL condition for current value(s)
getSerializedValue()
Get current value(s) in serialized form (for easy persisting)
importFromPost(array $a_post=null)
loadFilter()
Load filter value(s) into ADT.
Class ilADTSearchBridgeSingle.
readFilter()
Load value(s) from filter store (in session)
extractPostValues(array $a_post=null)
Extract data from (post) values.
addToParentElement(ilFormPropertyGUI $a_field)
Add form field to parent element.
shouldBeImportedFromPost($a_post)
Check if incoming values should be imported at all.
writeFilter($a_value=null)
Write value(s) to filter store (in session)