ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
ADT search bridge base class. More...
Public Member Functions | |
__construct (ilADTDefinition $a_adt_def) | |
Constructor. More... | |
isNull () | |
Is null ? More... | |
setForm (ilPropertyFormGUI $a_form) | |
Set form. More... | |
getForm () | |
Get form. More... | |
setElementId ($a_value) | |
Set element id (aka form field) More... | |
getElementId () | |
Get element id. More... | |
setTitle ($a_value) | |
Set title (aka form field caption) More... | |
getTitle () | |
Get title. More... | |
setTableGUI (ilTable2GUI $a_table) | |
Set table gui (for filter mode) More... | |
getTableGUI () | |
Get table gui. More... | |
loadFilter () | |
Load filter value(s) into ADT. More... | |
addToForm () | |
Add ADT-specific fields to form. More... | |
importFromPost (array $a_post=null) | |
Import values from (search) form request POST data. More... | |
validate () | |
Validate current data. More... | |
getSQLCondition ($a_element_id) | |
Get SQL condition for current value(s) More... | |
isInCondition (ilADT $a_adt) | |
Compare directly against ADT. More... | |
getSerializedValue () | |
Get current value(s) in serialized form (for easy persisting) More... | |
setSerializedValue ($a_value) | |
Set current value(s) in serialized form (for easy persisting) More... | |
Protected Member Functions | |
isValidADTDefinition (ilADTDefinition $a_adt_def) | |
Check if given ADT definition is valid. More... | |
setDefinition (ilADTDefinition $a_adt_def) | |
Set ADT definition. More... | |
writeFilter ($a_value=null) | |
Write value(s) to filter store (in session) More... | |
readFilter () | |
Load value(s) from filter store (in session) More... | |
addToParentElement (ilFormPropertyGUI $a_field) | |
Add form field to parent element. More... | |
addToElementId ($a_add) | |
Add sub-element. More... | |
shouldBeImportedFromPost ($a_post) | |
Check if incoming values should be imported at all. More... | |
extractPostValues (array $a_post=null) | |
Extract data from (post) values. More... | |
Protected Attributes | |
$form | |
$table_gui | |
$table_filter_fields = [] | |
$id | |
$title | |
$info | |
ADT search bridge base class.
Definition at line 13 of file class.ilADTSearchBridge.php.
ilADTSearchBridge::__construct | ( | ilADTDefinition | $a_adt_def | ) |
Constructor.
ilADT | $a_adt_def |
Definition at line 28 of file class.ilADTSearchBridge.php.
References isNull(), isValidADTDefinition(), and setDefinition().
|
protected |
Add sub-element.
string | $a_add |
Definition at line 215 of file class.ilADTSearchBridge.php.
References addToForm(), and getElementId().
Referenced by ilADTLocationSearchBridgeSingle\addToForm(), ilADTDateSearchBridgeRange\addToForm(), ilADTDateTimeSearchBridgeRange\addToForm(), ilADTLocationSearchBridgeSingle\importFromPost(), and ilADTSearchBridgeRange\validate().
|
abstract |
Add ADT-specific fields to form.
Referenced by addToElementId().
|
protected |
Add form field to parent element.
ilFormPropertyGUI | $a_field |
Definition at line 195 of file class.ilADTSearchBridge.php.
References ilFormPropertyGUI\getFieldId(), getForm(), and getTableGUI().
Referenced by ilADTDateSearchBridgeSingle\addToForm(), ilADTDateTimeSearchBridgeSingle\addToForm(), ilADTFloatSearchBridgeSingle\addToForm(), ilADTIntegerSearchBridgeSingle\addToForm(), ilADTEnumSearchBridgeSingle\addToForm(), ilADTLocationSearchBridgeSingle\addToForm(), ilADTTextSearchBridgeSingle\addToForm(), ilADTDateSearchBridgeRange\addToForm(), ilADTDateTimeSearchBridgeRange\addToForm(), ilADTInternalLinkSearchBridgeSingle\addToForm(), ilADTExternalLinkSearchBridgeSingle\addToForm(), and ilADTEnumSearchBridgeMulti\addToForm().
|
protected |
Extract data from (post) values.
array | $a_post |
Definition at line 247 of file class.ilADTSearchBridge.php.
References $_POST, $post, array, getElementId(), getSQLCondition(), importFromPost(), and validate().
Referenced by ilADTTextSearchBridgeSingle\importFromPost(), ilADTDateSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeSingle\importFromPost(), ilADTDateTimeSearchBridgeSingle\importFromPost(), ilADTIntegerSearchBridgeSingle\importFromPost(), ilADTFloatSearchBridgeSingle\importFromPost(), ilADTExternalLinkSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeMulti\importFromPost(), ilADTLocationSearchBridgeSingle\importFromPost(), ilADTDateSearchBridgeRange\importFromPost(), and ilADTDateTimeSearchBridgeRange\importFromPost().
ilADTSearchBridge::getElementId | ( | ) |
Get element id.
Definition at line 97 of file class.ilADTSearchBridge.php.
References $id.
Referenced by addToElementId(), ilADTDateSearchBridgeSingle\addToForm(), ilADTEnumSearchBridgeSingle\addToForm(), ilADTFloatSearchBridgeSingle\addToForm(), ilADTIntegerSearchBridgeSingle\addToForm(), ilADTDateTimeSearchBridgeSingle\addToForm(), ilADTLocationSearchBridgeSingle\addToForm(), ilADTTextSearchBridgeSingle\addToForm(), ilADTDateTimeSearchBridgeRange\addToForm(), ilADTDateSearchBridgeRange\addToForm(), ilADTInternalLinkSearchBridgeSingle\addToForm(), ilADTExternalLinkSearchBridgeSingle\addToForm(), ilADTEnumSearchBridgeMulti\addToForm(), extractPostValues(), ilADTTextSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeSingle\importFromPost(), ilADTDateSearchBridgeSingle\importFromPost(), ilADTDateTimeSearchBridgeSingle\importFromPost(), ilADTIntegerSearchBridgeSingle\importFromPost(), ilADTFloatSearchBridgeSingle\importFromPost(), ilADTExternalLinkSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeMulti\importFromPost(), ilADTLocationSearchBridgeSingle\importFromPost(), ilADTDateSearchBridgeRange\importFromPost(), ilADTDateTimeSearchBridgeRange\importFromPost(), readFilter(), ilADTSearchBridgeSingle\validate(), and writeFilter().
ilADTSearchBridge::getForm | ( | ) |
Get form.
Definition at line 77 of file class.ilADTSearchBridge.php.
References $form.
Referenced by ilADTDateSearchBridgeRange\addToForm(), ilADTDateTimeSearchBridgeRange\addToForm(), addToParentElement(), ilADTTextSearchBridgeSingle\importFromPost(), ilADTDateSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeSingle\importFromPost(), ilADTDateTimeSearchBridgeSingle\importFromPost(), ilADTIntegerSearchBridgeSingle\importFromPost(), ilADTFloatSearchBridgeSingle\importFromPost(), ilADTExternalLinkSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeMulti\importFromPost(), ilADTLocationSearchBridgeSingle\importFromPost(), ilADTDateSearchBridgeRange\importFromPost(), ilADTDateTimeSearchBridgeRange\importFromPost(), ilADTDateSearchBridgeRange\shouldBeImportedFromPost(), ilADTDateTimeSearchBridgeRange\shouldBeImportedFromPost(), ilADTSearchBridgeSingle\validate(), and ilADTSearchBridgeRange\validate().
|
abstract |
Get current value(s) in serialized form (for easy persisting)
Referenced by ilAdvancedMDFieldDefinition\getSearchValueSerialized(), and isInCondition().
|
abstract |
Get SQL condition for current value(s)
string | $a_element_id |
Referenced by extractPostValues(), ilAdvancedMDFieldDefinitionInternalLink\searchObjects(), ilAdvancedMDFieldDefinitionText\searchObjects(), ilAdvancedMDFieldDefinition\searchObjects(), and ilAdvancedMDFieldDefinition\searchSubObjects().
ilADTSearchBridge::getTableGUI | ( | ) |
Get table gui.
Definition at line 142 of file class.ilADTSearchBridge.php.
References $table_gui.
Referenced by addToParentElement().
ilADTSearchBridge::getTitle | ( | ) |
Get title.
Definition at line 117 of file class.ilADTSearchBridge.php.
References $title.
Referenced by ilADTDateSearchBridgeSingle\addToForm(), ilADTDateTimeSearchBridgeSingle\addToForm(), ilADTFloatSearchBridgeSingle\addToForm(), ilADTIntegerSearchBridgeSingle\addToForm(), ilADTEnumSearchBridgeSingle\addToForm(), ilADTLocationSearchBridgeSingle\addToForm(), ilADTTextSearchBridgeSingle\addToForm(), ilADTDateSearchBridgeRange\addToForm(), ilADTDateTimeSearchBridgeRange\addToForm(), ilADTInternalLinkSearchBridgeSingle\addToForm(), ilADTExternalLinkSearchBridgeSingle\addToForm(), and ilADTEnumSearchBridgeMulti\addToForm().
|
abstract |
Import values from (search) form request POST data.
Referenced by extractPostValues().
ilADTSearchBridge::isInCondition | ( | ilADT | $a_adt | ) |
Compare directly against ADT.
ilADT | $a_adt |
Definition at line 303 of file class.ilADTSearchBridge.php.
References getSerializedValue(), and setSerializedValue().
|
abstract |
|
abstractprotected |
Check if given ADT definition is valid.
:TODO: This could be avoided with type-specifc constructors :TODO: bridge base class?
ilADTDefinition | $a_adt_def |
Referenced by __construct(), ilADTSearchBridgeMulti\setDefinition(), ilADTSearchBridgeSingle\setDefinition(), and ilADTSearchBridgeRange\setDefinition().
|
abstract |
Load filter value(s) into ADT.
Referenced by readFilter().
|
protected |
Load value(s) from filter store (in session)
string | $a_element_id |
Definition at line 169 of file class.ilADTSearchBridge.php.
References $_SESSION, getElementId(), and loadFilter().
Referenced by ilADTDateSearchBridgeRange\loadFilter(), ilADTDateSearchBridgeSingle\loadFilter(), ilADTDateTimeSearchBridgeSingle\loadFilter(), ilADTFloatSearchBridgeSingle\loadFilter(), ilADTIntegerSearchBridgeSingle\loadFilter(), ilADTDateTimeSearchBridgeRange\loadFilter(), ilADTEnumSearchBridgeSingle\loadFilter(), ilADTLocationSearchBridgeSingle\loadFilter(), ilADTTextSearchBridgeSingle\loadFilter(), ilADTExternalLinkSearchBridgeSingle\loadFilter(), and ilADTEnumSearchBridgeMulti\loadFilter().
|
abstractprotected |
Set ADT definition.
ilADTDefinition | $a_adt_def |
Referenced by __construct().
ilADTSearchBridge::setElementId | ( | $a_value | ) |
Set element id (aka form field)
string | $a_value |
Definition at line 87 of file class.ilADTSearchBridge.php.
References string.
ilADTSearchBridge::setForm | ( | ilPropertyFormGUI | $a_form | ) |
Set form.
ilPropertyFormGUI | $a_form |
Definition at line 67 of file class.ilADTSearchBridge.php.
|
abstract |
Set current value(s) in serialized form (for easy persisting)
string |
Referenced by isInCondition(), and ilAdvancedMDFieldDefinition\setSearchValueSerialized().
ilADTSearchBridge::setTableGUI | ( | ilTable2GUI | $a_table | ) |
Set table gui (for filter mode)
ilTable2GUI | $a_table |
Definition at line 132 of file class.ilADTSearchBridge.php.
ilADTSearchBridge::setTitle | ( | $a_value | ) |
Set title (aka form field caption)
string | $a_value |
Definition at line 107 of file class.ilADTSearchBridge.php.
|
protected |
Check if incoming values should be imported at all.
mixed | $a_post |
Definition at line 236 of file class.ilADTSearchBridge.php.
Referenced by ilADTTextSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeSingle\importFromPost(), ilADTIntegerSearchBridgeSingle\importFromPost(), ilADTFloatSearchBridgeSingle\importFromPost(), ilADTExternalLinkSearchBridgeSingle\importFromPost(), and ilADTEnumSearchBridgeMulti\importFromPost().
|
abstract |
Validate current data.
Referenced by extractPostValues().
|
protected |
Write value(s) to filter store (in session)
mixed | $a_value |
Definition at line 152 of file class.ilADTSearchBridge.php.
References $_SESSION, and getElementId().
Referenced by ilADTTextSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeSingle\importFromPost(), ilADTDateSearchBridgeSingle\importFromPost(), ilADTDateTimeSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeMulti\importFromPost(), ilADTDateSearchBridgeRange\importFromPost(), and ilADTDateTimeSearchBridgeRange\importFromPost().
|
protected |
Definition at line 15 of file class.ilADTSearchBridge.php.
Referenced by getForm().
|
protected |
Definition at line 18 of file class.ilADTSearchBridge.php.
Referenced by getElementId().
|
protected |
Definition at line 20 of file class.ilADTSearchBridge.php.
|
protected |
Definition at line 17 of file class.ilADTSearchBridge.php.
|
protected |
Definition at line 16 of file class.ilADTSearchBridge.php.
Referenced by getTableGUI().
|
protected |
Definition at line 19 of file class.ilADTSearchBridge.php.
Referenced by ilADTInternalLinkSearchBridgeSingle\addToForm(), and getTitle().