43 $this->title_query =
$query;
60 if ($value !==
null) {
61 $this->
getADT()->setTargetRefId(1);
77 $item->setValue($post);
79 $this->
getADT()->setTargetRefId(1);
80 } elseif (array_key_exists($this->
getElementId(), $this->table_filter_fields)) {
81 $this->table_filter_fields[$this->
getElementId()]->setValue($post);
84 $this->
getADT()->setTargetRefId(1);
89 $this->
getADT()->setTargetRefId(
null);
99 public function getSQLCondition($a_element_id, $a_mode = self::SQL_LIKE, $a_value =
null)
107 $a_value = $this->
getADT()->getTargetRefId();
110 $subselect = $a_element_id .
' IN ' .
111 '( select ref_id from object_reference obr join object_data obd on obr.obj_id = obd.obj_id ' .
112 'where ' . $db->like(
'title',
'text', $a_value .
'%') .
' ' .
124 if ($this->
getADT()->getCopyOfDefinition()->isComparableTo($a_adt)) {
125 $ref_id = $a_adt->getTargetRefId();
139 return serialize(array($this->
getADT()->getTargetRefId()));
149 $a_value = unserialize($a_value);
150 if (is_array($a_value)) {
151 $this->
getADT()->setTargetRefId($a_value[0]);
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
ADT definition base class.
external link search bridge
setTitleQuery(string $query)
isInCondition(ilADT $a_adt)
Is in condition.
getSerializedValue()
get serialized value
loadFilter()
/** Load from filter
addToForm()
Add ADT-specific fields to form.
getSQLCondition($a_element_id, $a_mode=self::SQL_LIKE, $a_value=null)
Get sql condition.
isValidADTDefinition(\ilADTDefinition $a_adt_def)
Is valid type.
importFromPost(array $a_post=null)
Import from post.
setSerializedValue($a_value)
Set serialized value.
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.
getElementId()
Get element id.
shouldBeImportedFromPost($a_post)
Check if incoming values should be imported at all.
writeFilter($a_value=null)
Write value(s) to filter store (in session)
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
This class represents a text property in a property form.