v4.0.0-rc.2 (Build: 2018022500)
Pre-release
Pre-release
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
andlocal_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 keyid
became part of theservice
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.