Feature Wiki

Information about planned and released features

Tabs

DataCollection: Adding Plugin-Slot for Field-Types & Event-Hooks

1 Requirements

For more flexibility there should be a new Plugin-Slot for DataCollection-Field-Types (DataCollectionFieldType). This would allow nicly integrated, customer specific Field-Types over a Plugin. With this new modularity, the DataCollection could be used in many more scenarios.
To further impove extensibility there should be events dispatched, when a record is saved, updated or deleted.

2 Additional Information

3 Discussion

JourFixe, ILIAS [jourfixe], Dec 21, 2015: Highly appreciated and schedule for 5.2.

4 Implementation

The new Plugin-Slot allows you to create custom columns for your DataCollections. The developer-doc is available here:
http://www.ilias.de/docu/goto_docu_pg_68695_42.html

Installed and activated Field-Hook-Plugins can be used when a new DataCollection column is created:

On DataCollections there are now three new events which are dispached:

  • createRecord
  • updateRecord
  • deleteRecord
The new events allow to build custom behavior when a user interacts with DataCollection-Records. On the event you will recceive a associative array with the following elements: Affected record (record), record-id (record_id), the affected table-id (table_id) and the DataCollection (dcl). On the updateRecord-event you also recceive the record before the changes were applied (prev_record).

Test Cases

, 02.08.2016: No test cases have been written for this feature, since it requires an installed Plugin.

Approval

Approved in July/August 2016 by PHBern.

Last edited: 15. Dec 2021, 09:09, Schmid, Fabian [fschmid]