3 require_once
"Services/ADT/classes/Bridges/class.ilADTSearchBridgeSingle.php";
22 if ($value !== null) {
23 $this->
getADT()->setText($value);
34 $text->setMaxLength(512);
35 $text->setSubmitFormOnEnter(
true);
49 $item->setValue(
$post);
50 } elseif (array_key_exists($this->
getElementId(), $this->table_filter_fields)) {
58 $this->
getADT()->setText();
65 public function getSQLCondition($a_element_id, $a_mode = self::SQL_LIKE, $a_value = null)
75 $a_value = $this->
getADT()->getText();
79 case self::SQL_STRICT:
80 if (!is_array($a_value)) {
81 return $a_element_id .
" = " .
$ilDB->quote($a_value,
"text");
83 return $ilDB->in($a_element_id, $a_value,
"",
"text");
88 if (!is_array($a_value)) {
89 return $ilDB->like($a_element_id,
"text",
"%" . $a_value .
"%");
92 foreach ($a_value as $word) {
94 $tmp[] =
$ilDB->like($a_element_id,
"text",
"%" . $word .
"%");
98 return "(" . implode(
" OR ", $tmp) .
")";
103 case self::SQL_LIKE_END:
104 if (!is_array($a_value)) {
105 return $ilDB->like($a_element_id,
"text", $a_value .
"%");
109 case self::SQL_LIKE_START:
110 if (!is_array($a_value)) {
111 return $ilDB->like($a_element_id,
"text",
"%" . $a_value);
122 return $this->
getADT()->equals($a_adt);
131 return serialize(array($this->
getADT()->getText()));
137 $a_value = unserialize($a_value);
138 if (is_array($a_value)) {
139 $this->
getADT()->setText($a_value[0]);
setSerializedValue($a_value)
isValidADTDefinition(ilADTDefinition $a_adt_def)
extractPostValues(array $a_post=null)
Extract data from (post) values.
shouldBeImportedFromPost($a_post)
Check if incoming values should be imported at all.
importFromPost(array $a_post=null)
readFilter()
Load value(s) from filter store (in session)
This class represents a text property in a property form.
isInCondition(ilADT $a_adt)
writeFilter($a_value=null)
Write value(s) to filter store (in session)
ADT definition base class.
getElementId()
Get element id.
getSQLCondition($a_element_id, $a_mode=self::SQL_LIKE, $a_value=null)
addToParentElement(ilFormPropertyGUI $a_field)
Add form field to parent element.