ILIAS
Release_5_0_x_branch Revision 61816
|
ADT search bridge base class. More...
Public Member Functions | |
__construct (ilADTDefinition $a_adt_def) | |
Constructor. | |
isNull () | |
Is null ? | |
setForm (ilPropertyFormGUI $a_form) | |
Set form. | |
getForm () | |
Get form. | |
setElementId ($a_value) | |
Set element id (aka form field) | |
getElementId () | |
Get element id. | |
setTitle ($a_value) | |
Set title (aka form field caption) | |
getTitle () | |
Get title. | |
setTableGUI (ilTable2GUI $a_table) | |
Set table gui (for filter mode) | |
getTableGUI () | |
Get table gui. | |
loadFilter () | |
Load filter value(s) into ADT. | |
addToForm () | |
Add ADT-specific fields to form. | |
importFromPost (array $a_post=null) | |
Import values from (search) form request POST data. | |
validate () | |
Validate current data. | |
getSQLCondition ($a_element_id) | |
Get SQL condition for current value(s) | |
isInCondition (ilADT $a_adt) | |
Compare directly against ADT. | |
getSerializedValue () | |
Get current value(s) in serialized form (for easy persisting) | |
setSerializedValue ($a_value) | |
Set current value(s) in serialized form (for easy persisting) |
Protected Member Functions | |
isValidADTDefinition (ilADTDefinition $a_adt_def) | |
Check if given ADT definition is valid. | |
setDefinition (ilADTDefinition $a_adt_def) | |
Set ADT definition. | |
writeFilter ($a_value=null) | |
Write value(s) to filter store (in session) | |
readFilter () | |
Load value(s) from filter store (in session) | |
addToParentElement (ilFormPropertyGUI $a_field) | |
Add form field to parent element. | |
addToElementId ($a_add) | |
Add sub-element. | |
shouldBeImportedFromPost ($a_post) | |
Check if incoming values should be imported at all. | |
extractPostValues (array $a_post=null) | |
Extract data from (post) values. |
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 setDefinition().
|
protected |
Add sub-element.
string | $a_add |
Definition at line 224 of file class.ilADTSearchBridge.php.
References getElementId().
Referenced by ilADTLocationSearchBridgeSingle\addToForm(), ilADTDateTimeSearchBridgeSingle\addToForm(), ilADTDateSearchBridgeSingle\addToForm(), ilADTDateSearchBridgeRange\addToForm(), ilADTDateTimeSearchBridgeRange\addToForm(), and ilADTSearchBridgeRange\validate().
|
abstract |
Add ADT-specific fields to form.
Reimplemented in ilADTEnumSearchBridgeMulti, ilADTDateSearchBridgeRange, ilADTDateTimeSearchBridgeRange, ilADTDateSearchBridgeSingle, ilADTDateTimeSearchBridgeSingle, ilADTTextSearchBridgeSingle, ilADTLocationSearchBridgeSingle, ilADTEnumSearchBridgeSingle, ilADTFloatSearchBridgeSingle, and ilADTIntegerSearchBridgeSingle.
|
protected |
Add form field to parent element.
ilFormPropertyGUI | $a_field |
Definition at line 201 of file class.ilADTSearchBridge.php.
References ilFormPropertyGUI\getFieldId(), getForm(), and getTableGUI().
Referenced by ilADTFloatSearchBridgeSingle\addToForm(), ilADTIntegerSearchBridgeSingle\addToForm(), ilADTEnumSearchBridgeSingle\addToForm(), ilADTLocationSearchBridgeSingle\addToForm(), ilADTTextSearchBridgeSingle\addToForm(), ilADTDateTimeSearchBridgeSingle\addToForm(), ilADTDateSearchBridgeSingle\addToForm(), ilADTDateTimeSearchBridgeRange\addToForm(), ilADTDateSearchBridgeRange\addToForm(), and ilADTEnumSearchBridgeMulti\addToForm().
|
protected |
Extract data from (post) values.
array | $a_post |
Definition at line 256 of file class.ilADTSearchBridge.php.
References $_POST, and getElementId().
Referenced by ilADTIntegerSearchBridgeSingle\importFromPost(), ilADTFloatSearchBridgeSingle\importFromPost(), ilADTTextSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeMulti\importFromPost(), ilADTDateSearchBridgeSingle\importFromPost(), ilADTDateTimeSearchBridgeSingle\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(), ilADTFloatSearchBridgeSingle\addToForm(), ilADTIntegerSearchBridgeSingle\addToForm(), ilADTEnumSearchBridgeSingle\addToForm(), ilADTLocationSearchBridgeSingle\addToForm(), ilADTTextSearchBridgeSingle\addToForm(), ilADTDateSearchBridgeSingle\addToForm(), ilADTDateTimeSearchBridgeSingle\addToForm(), ilADTDateTimeSearchBridgeRange\addToForm(), ilADTDateSearchBridgeRange\addToForm(), ilADTEnumSearchBridgeMulti\addToForm(), extractPostValues(), ilADTIntegerSearchBridgeSingle\importFromPost(), ilADTFloatSearchBridgeSingle\importFromPost(), ilADTTextSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeMulti\importFromPost(), ilADTDateSearchBridgeSingle\importFromPost(), ilADTDateTimeSearchBridgeSingle\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(), ilADTIntegerSearchBridgeSingle\importFromPost(), ilADTFloatSearchBridgeSingle\importFromPost(), ilADTTextSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeMulti\importFromPost(), ilADTDateSearchBridgeSingle\importFromPost(), ilADTDateTimeSearchBridgeSingle\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)
Reimplemented in ilADTDateSearchBridgeRange, ilADTDateTimeSearchBridgeRange, ilADTLocationSearchBridgeSingle, ilADTTextSearchBridgeSingle, ilADTEnumSearchBridgeMulti, ilADTDateSearchBridgeSingle, ilADTDateTimeSearchBridgeSingle, ilADTEnumSearchBridgeSingle, and ilADTIntegerSearchBridgeSingle.
Referenced by ilAdvancedMDFieldDefinition\getSearchValueSerialized().
|
abstract |
Get SQL condition for current value(s)
string | $a_element_id |
Reimplemented in ilADTDateSearchBridgeRange, ilADTDateTimeSearchBridgeRange, ilADTLocationSearchBridgeSingle, ilADTDateSearchBridgeSingle, ilADTDateTimeSearchBridgeSingle, ilADTEnumSearchBridgeMulti, ilADTEnumSearchBridgeSingle, ilADTFloatSearchBridgeSingle, and ilADTIntegerSearchBridgeSingle.
Referenced by 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 ilADTFloatSearchBridgeSingle\addToForm(), ilADTIntegerSearchBridgeSingle\addToForm(), ilADTEnumSearchBridgeSingle\addToForm(), ilADTLocationSearchBridgeSingle\addToForm(), ilADTTextSearchBridgeSingle\addToForm(), ilADTDateTimeSearchBridgeSingle\addToForm(), ilADTDateSearchBridgeSingle\addToForm(), ilADTDateTimeSearchBridgeRange\addToForm(), ilADTDateSearchBridgeRange\addToForm(), and ilADTEnumSearchBridgeMulti\addToForm().
|
abstract |
Import values from (search) form request POST data.
Reimplemented in ilADTDateTimeSearchBridgeRange, ilADTDateSearchBridgeRange, ilADTLocationSearchBridgeSingle, ilADTDateSearchBridgeSingle, ilADTDateTimeSearchBridgeSingle, ilADTEnumSearchBridgeMulti, ilADTEnumSearchBridgeSingle, ilADTTextSearchBridgeSingle, ilADTFloatSearchBridgeSingle, and ilADTIntegerSearchBridgeSingle.
ilADTSearchBridge::isInCondition | ( | ilADT | $a_adt | ) |
Compare directly against ADT.
ilADT | $a_adt |
Definition at line 321 of file class.ilADTSearchBridge.php.
|
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 |
Reimplemented in ilADTTextSearchBridgeSingle, ilADTDateSearchBridgeRange, ilADTDateSearchBridgeSingle, ilADTDateTimeSearchBridgeRange, ilADTDateTimeSearchBridgeSingle, ilADTEnumSearchBridgeMulti, ilADTLocationSearchBridgeSingle, ilADTEnumSearchBridgeSingle, ilADTFloatSearchBridgeSingle, and ilADTIntegerSearchBridgeSingle.
Referenced by ilADTSearchBridgeMulti\setDefinition(), ilADTSearchBridgeSingle\setDefinition(), and ilADTSearchBridgeRange\setDefinition().
|
abstract |
Load filter value(s) into ADT.
Reimplemented in ilADTEnumSearchBridgeMulti, ilADTDateSearchBridgeRange, ilADTDateSearchBridgeSingle, ilADTDateTimeSearchBridgeRange, ilADTDateTimeSearchBridgeSingle, ilADTTextSearchBridgeSingle, ilADTLocationSearchBridgeSingle, and ilADTEnumSearchBridgeSingle.
|
protected |
Load value(s) from filter store (in session)
string | $a_element_id |
Definition at line 173 of file class.ilADTSearchBridge.php.
References $_SESSION, and getElementId().
Referenced by ilADTEnumSearchBridgeSingle\loadFilter(), ilADTLocationSearchBridgeSingle\loadFilter(), ilADTTextSearchBridgeSingle\loadFilter(), ilADTDateTimeSearchBridgeRange\loadFilter(), ilADTDateSearchBridgeRange\loadFilter(), ilADTDateSearchBridgeSingle\loadFilter(), ilADTDateTimeSearchBridgeSingle\loadFilter(), and ilADTEnumSearchBridgeMulti\loadFilter().
|
abstractprotected |
Set ADT definition.
ilADTDefinition | $a_adt_def |
Reimplemented in ilADTSearchBridgeRange, ilADTSearchBridgeSingle, and ilADTSearchBridgeMulti.
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.
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 |
Reimplemented in ilADTDateSearchBridgeRange, ilADTDateTimeSearchBridgeRange, ilADTLocationSearchBridgeSingle, ilADTTextSearchBridgeSingle, ilADTEnumSearchBridgeMulti, ilADTDateSearchBridgeSingle, ilADTDateTimeSearchBridgeSingle, ilADTEnumSearchBridgeSingle, and ilADTIntegerSearchBridgeSingle.
Referenced by 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 |
Reimplemented in ilADTLocationSearchBridgeSingle.
Definition at line 245 of file class.ilADTSearchBridge.php.
Referenced by ilADTIntegerSearchBridgeSingle\importFromPost(), ilADTFloatSearchBridgeSingle\importFromPost(), ilADTTextSearchBridgeSingle\importFromPost(), ilADTEnumSearchBridgeSingle\importFromPost(), and ilADTEnumSearchBridgeMulti\importFromPost().
|
abstract |
Validate current data.
Reimplemented in ilADTSearchBridgeRange, and ilADTSearchBridgeSingle.
|
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(), ilADTEnumSearchBridgeMulti\importFromPost(), ilADTDateTimeSearchBridgeSingle\importFromPost(), ilADTDateSearchBridgeSingle\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 getTitle().