19declare(strict_types=1);
35 if ($value !==
null) {
36 $this->
getADT()->setSelection($value);
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]);
ADT definition base class.
isInCondition(ilADT $a_adt)
Compare directly against ADT.
importFromPost(?array $a_post=null)
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)
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)