19 declare(strict_types=1);
    44         if ($value !== null) {
    45             $this->
getADT()->setUrl($value);
    67                 $item->setValue(
$post);
    68             } elseif (array_key_exists($this->
getElementId(), $this->table_filter_fields)) {
    74         } elseif (array_key_exists($this->
getElementId(), $this->table_filter_fields)) {
    80             $this->
getADT()->setUrl(null);
    92     public function getSQLCondition(
string $a_element_id, 
int $mode = self::SQL_LIKE, array $quotedWords = []): string
    98             $quotedWords = $this->
getADT()->getUrl();
   102             case self::SQL_STRICT:
   103                 if (!is_array($quotedWords)) {
   104                     return $a_element_id . 
" = " . $this->db->quote($quotedWords, 
"text");
   106                     return $this->db->in($a_element_id, $quotedWords, 
false, 
"text");
   111                 if (!is_array($quotedWords)) {
   112                     return $this->db->like($a_element_id, 
"text", 
"%" . $quotedWords . 
"%");
   115                     foreach ($quotedWords as $word) {
   117                             $tmp[] = $this->db->like($a_element_id, 
"text", 
"%" . $word . 
"%");
   121                         return "(" . implode(
" OR ", $tmp) . 
")";
   126             case self::SQL_LIKE_END:
   127                 if (!is_array($quotedWords)) {
   128                     return $this->db->like($a_element_id, 
"text", $quotedWords . 
"%");
   132             case self::SQL_LIKE_START:
   133                 if (!is_array($quotedWords)) {
   134                     return $this->db->like($a_element_id, 
"text", 
"%" . $quotedWords);
   148         if ($this->
getADT()->getCopyOfDefinition()->isComparableTo($a_adt)) {
   149             $search_term = strtolower(trim((
string) $this->
getADT()->getUrl()));
   150             $title = strtolower(trim((
string) $a_adt->getTitle()));
   151             $url = strtolower(trim((
string) $a_adt->getUrl()));
   153                 str_contains(
$title, $search_term) ||
   154                 str_contains(
$url, $search_term);
   166             return serialize(array($this->
getADT()->getUrl()));
   177         $a_value = unserialize($a_value);
   178         if (is_array($a_value)) {
   179             $this->
getADT()->setUrl($a_value[0]);
 
addToForm()
add external link property to form 
 
getSerializedValue()
get serialized value 
 
setSerializedValue(string $a_value)
Set serialized value. 
 
extractPostValues(array $a_post=null)
Extract data from (post) values. 
 
shouldBeImportedFromPost($a_post)
Check if incoming values should be imported at all. 
 
isValidADTDefinition(\ilADTDefinition $a_adt_def)
Is valid type. 
 
isInCondition(ilADT $a_adt)
Is in condition. 
 
readFilter()
Load value(s) from filter store (in session) 
 
Class ilADTSearchBridgeSingle. 
 
loadFilter()
Load from filter. 
 
external link search bridge 
 
writeFilter($a_value=null)
Write value(s) to filter store (in session) 
 
importFromPost(array $a_post=null)
 
ADT definition base class. 
 
getSQLCondition(string $a_element_id, int $mode=self::SQL_LIKE, array $quotedWords=[])
Get sql condition. 
 
addToParentElement(ilFormPropertyGUI $a_field)
Add form field to parent element.