Skip to content

v4.0.0-rc.2 (Build: 2018022500)

Pre-release
Pre-release
Compare
Choose a tag to compare
@valentineus valentineus released this 24 Feb 21:47
· 2 commits to master since this release
v4.0.0-rc.2
9cf4fc5

Features:

General changes:

  • All data operations require sesskey.
  • When testing, PHP versions 5.6 and 7.2 are used, and Moodle, starting with version 3.2+.

Cache:

  • Cache integrated into the event handler.
  • Added functions for working with the cache.
    • local_webhooks_cache_get - Get data from the cache by key.
    • local_webhooks_cache_set - Update the data in the cache by key.
    • local_webhooks_cache_delete - Delete the data in the cache by key.
    • local_webhooks_cache_reset - Clear the cache of the plugin.

Main functions:

  • Added a new function local_webhooks_search_services_by_event for finding services by event.
  • Functions local_webhooks_serialization_data and local_webhooks_deserialization_data and moved to the internal library.
  • The function local_webhooks_create_record has been updated. Now, the function returns the execution status.

External functions:

  • Great refactoring of the code was done, the documentation was rewritten.
  • A new function local_webhooks_search_services_by_event for the web service has been added.
  • The function local_webhooks_update_record has been updated. The foreign key id became part of the service array.
  • The private functions in the class were added:
    • structure_record_parameters - Single service template.
    • formation_list - Forms a list of services by template.
    • formation_events - Forms a list of events by template.