4 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
60 abstract public function isNull();
69 $this->form = $a_form;
89 $this->
id = (string) $a_value;
109 $this->title = trim($a_value);
134 $this->table_gui = $a_table;
157 if ($a_value !== null) {
176 return unserialize($value);
198 $this->
getForm()->addItem($a_field);
200 $this->table_filter_fields[$a_field->
getFieldId()] = $a_field;
254 if ($multi !==
false) {
255 $post = $a_post[substr($element_id, 0, $multi)][substr($element_id, $multi + 1, -1)];
257 $post = $a_post[$element_id];
260 if ($multi !==
false) {
261 $post = $a_post[substr($element_id, $multi + 1, -1)];
263 $post = $a_post[$element_id];
282 abstract public function validate();
setElementId($a_value)
Set element id (aka form field)
setDefinition(ilADTDefinition $a_adt_def)
Set ADT definition.
setTitle($a_value)
Set title (aka form field caption)
setForm(ilPropertyFormGUI $a_form)
Set form.
importFromPost(array $a_post=null)
Import values from (search) form request POST data.
isValidADTDefinition(ilADTDefinition $a_adt_def)
Check if given ADT definition is valid.
setSerializedValue($a_value)
Set current value(s) in serialized form (for easy persisting)
addToForm()
Add ADT-specific fields to form.
extractPostValues(array $a_post=null)
Extract data from (post) values.
__construct(ilADTDefinition $a_adt_def)
Constructor.
getSerializedValue()
Get current value(s) in serialized form (for easy persisting)
shouldBeImportedFromPost($a_post)
Check if incoming values should be imported at all.
readFilter()
Load value(s) from filter store (in session)
loadFilter()
Load filter value(s) into ADT.
validate()
Validate current data.
getTableGUI()
Get table gui.
ADT search bridge base class.
setTableGUI(ilTable2GUI $a_table)
Set table gui (for filter mode)
writeFilter($a_value=null)
Write value(s) to filter store (in session)
ADT definition base class.
getSQLCondition($a_element_id)
Get SQL condition for current value(s)
getElementId()
Get element id.
isInCondition(ilADT $a_adt)
Compare directly against ADT.
addToParentElement(ilFormPropertyGUI $a_field)
Add form field to parent element.
addToElementId($a_add)
Add sub-element.