50 if ($value !==
null) {
51 $this->
getADT()->setTargetRefId($value);
65 $item->setValue($post);
66 $this->
getADT()->setTargetRefId($post);
68 $this->
getADT()->setTargetRefId(
null);
77 public function getSQLCondition($a_element_id, $a_mode = self::SQL_LIKE, $a_value =
null)
85 $a_value = $this->
getADT()->getTargetRefId();
88 $subselect = $a_element_id .
' IN ' .
89 '( select ref_id from object_reference obr join object_data obd on obr.obj_id = obd.obj_id ' .
90 'where ' . $db->like(
'title',
'text', $a_value .
'%') .
' ' .
102 if ($this->isValidADT($a_adt)) {
103 return $this->
getADT()->equals($a_adt);
115 return serialize(array($this->
getADT()->getTargetRefId()));
125 $a_value = unserialize($a_value);
126 if (is_array($a_value)) {
127 $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
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.
This class represents a text property in a property form.