19 declare(strict_types=1);
    33         if ($value !== null) {
    34             $this->
getADT()->setText($value);
    57                 $item->setValue(
$post);
    58             } elseif (array_key_exists($this->
getElementId(), $this->table_filter_fields)) {
    65             $this->
getADT()->setText();
    70     public function getSQLCondition(
string $a_element_id, 
int $mode = self::SQL_LIKE, array $quotedWords = []): string
    76             $quotedWords = $this->
getADT()->getText();
    80             case self::SQL_STRICT:
    81                 if (!is_array($quotedWords)) {
    82                     return $a_element_id . 
" = " . $this->db->quote($quotedWords, 
"text");
    84                     return $this->db->in($a_element_id, $quotedWords, 
false, 
"text");
    89                 if (!is_array($quotedWords)) {
    90                     return $this->db->like($a_element_id, 
"text", 
"%" . $quotedWords . 
"%");
    93                     foreach ($quotedWords as $word) {
    95                             $tmp[] = $this->db->like($a_element_id, 
"text", 
"%" . $word . 
"%");
    99                         return "(" . implode(
" OR ", $tmp) . 
")";
   104             case self::SQL_LIKE_END:
   105                 if (!is_array($quotedWords)) {
   106                     return $this->db->like($a_element_id, 
"text", $quotedWords . 
"%");
   110             case self::SQL_LIKE_START:
   111                 if (!is_array($quotedWords)) {
   112                     return $this->db->like($a_element_id, 
"text", 
"%" . $quotedWords);
   121         if ($this->
getADT()->getCopyOfDefinition()->isComparableTo($a_adt)) {
   123                 $a_adt->getTranslations() :
   126             foreach ($relevant_translation as 
$text) {
   127                 $search_term = strtolower(trim((
string) $this->
getADT()->getText()));
   128                 $text = strtolower(trim((
string) $text));
   129                 if (str_contains($text, $search_term)) {
   142             return serialize(array($this->
getADT()->getText()));
   149         $a_value = unserialize($a_value);
   150         if (is_array($a_value)) {
   151             $this->
getADT()->setText($a_value[0]);
 
addTextInputToForm(bool $submit_on_enter)
 
getSQLCondition(string $a_element_id, int $mode=self::SQL_LIKE, array $quotedWords=[])
 
importFromPost(array $a_post=null)
 
setSerializedValue(string $a_value)
 
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) 
 
isValidADTDefinition(ilADTDefinition $a_adt_def)
 
isInCondition(ilADT $a_adt)
 
getCopyOfDefinition()
Get copy of definition. 
 
writeFilter($a_value=null)
Write value(s) to filter store (in session) 
 
ADT definition base class. 
 
Class ilADTLocalizedText.