Valentin Popov
7d2e288b70
Realization of the basic functionality
...
* Function of adding a service to the database.
* Function of updating the service in the database.
* Function of removing the service from the database.
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-09-07 15:27:59 +04:00
Valentin Popov
fa86c0329f
Updating the table structure
...
* Fixed bug with 'XMLDB PATH'. The latest update to Moodle includes
a strict check.
* Remotely the status field in the event table. The logic is
simplified, if there is an event subscription, the event is stored in
a table. There are no subscriptions, no events in the table.
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-09-07 14:36:17 +04:00
Valentin Popov
9ee0af7e28
Reworked the event handler
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-21 08:13:13 +04:00
Valentin Popov
9006e6b9dd
Renamed function search services
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-21 08:12:22 +04:00
Valentin Popov
2b791958a7
Redesigned cache name
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-21 07:48:01 +04:00
Valentin Popov
4833a44b51
Redesigned feature a list of services
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-21 07:46:03 +04:00
Valentin Popov
d7185f5925
Minor bug fixed
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-20 04:42:44 +04:00
Valentin Popov
975c6f8d20
Checking arguments is added
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-20 04:31:14 +04:00
Valentin Popov
092d0436e8
Comments have been added
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-20 04:23:13 +04:00
Valentin Popov
27e7f48f36
Updated description
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-20 04:19:08 +04:00
Valentin Popov
41a6a89ac8
Updated the status change function
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-20 04:13:47 +04:00
Valentin Popov
279fca5ed1
Added cache to the search function
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-20 03:58:45 +04:00
Valentin Popov
5036ef261c
The function 'local_webhooks_get_total_count' is deleted
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-13 01:53:32 +04:00
Valentin Popov
6aed41d675
Fixed the name of the constant
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-13 01:52:44 +04:00
Valentin Popov
25f1756835
The internal functions 'local_webhooks_serialization_data' and 'local_webhooks_deserialization_data' are deleted
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-13 01:50:55 +04:00
Valentin Popov
490b8bb170
Update function 'local_webhooks_restore_backup'
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-13 01:43:23 +04:00
Valentin Popov
95c54f8262
Update function 'local_webhooks_create_backup'
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-13 01:34:19 +04:00
Valentin Popov
6a83be960e
Update function 'local_webhooks_search_record'
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-13 01:17:22 +04:00
Valentin Popov
82842e5ed8
Update function 'local_webhooks_change_status'
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-13 01:01:42 +04:00
Valentin Popov
98c33a639a
Added function 'local_webhooks_delete_all_records'
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-13 00:52:51 +04:00
Valentin Popov
98e5a6470d
Added function 'local_webhooks_delete_record'
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-13 00:48:12 +04:00
Valentin Popov
e8b59e7b0d
Update function 'local_webhooks_get_list_records'
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-13 00:25:55 +04:00
Valentin Popov
46b6022269
Added variables
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-13 00:18:28 +04:00
Valentin Popov
2bd5e80b10
Rewritten 'local_webhooks_get_record' feature
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-13 00:16:08 +04:00
Valentin Popov
af4224e8db
Renaming internal functions
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-13 00:10:56 +04:00
Valentin Popov
79fe101e1b
Added function 'local_webhooks_get_list_events_for_service'
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-13 00:08:18 +04:00
Valentin Popov
b12c850a2f
Fix: Global variable
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 23:52:38 +04:00
Valentin Popov
57a870f56f
Update function 'local_webhooks_create_record'
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 23:48:00 +04:00
Valentin Popov
639276c33d
Added function 'local_webhooks_update_record'
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 23:45:35 +04:00
Valentin Popov
0d9fe62ec6
The function 'local_webhooks_insert_event' is replaced by the function 'local_webhooks_insert_events'
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 23:38:14 +04:00
Valentin Popov
2b7e419f8f
Added internal function 'local_webhooks_insert_event'
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 23:29:02 +04:00
Valentin Popov
adb9a1e69c
Added internal function 'local_webhooks_delete_events'
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 23:23:57 +04:00
Valentin Popov
2c013b3230
The function 'local_webhooks_create_record' was rewritten for new storage
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 22:50:40 +04:00
Valentin Popov
f3dc13ac91
Service edit form is focused on the new standard
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 22:09:36 +04:00
Valentin Popov
4d69ca0da6
The revised structure of information storage
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 21:54:39 +04:00
Valentin Popov
f220e057bd
The web service 'local_webhooks_get_list_records' has been expanded
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 14:48:20 +04:00
Valentin Popov
422cbfd57d
New parameters of function 'local_webhooks_get_list_records' have been added
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 14:38:33 +04:00
Valentin Popov
e0a43273a3
Added constants to the cache
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 14:20:30 +04:00
Valentin Popov
cce50b316d
Delete the variable
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 03:42:08 +04:00
Valentin Popov
55b1a6b5a9
Delimiter
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 03:30:57 +04:00
Valentin Popov
6a711bfc48
Fixed a potential performance hole
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 03:24:38 +04:00
Valentin Popov
9ada0cfe74
Using a constant
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 02:29:32 +04:00
Valentin Popov
0a07c2ab22
Added a new function 'local_webhooks_get_total_count'
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 02:05:27 +04:00
Valentin Popov
0e94634c49
Updated description
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 01:45:08 +04:00
Valentin Popov
d29ee546a2
Renaming a variable
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-12 01:44:01 +04:00
Valentin Popov
27fe9e412b
Fixed table in the latest version of Moodle
...
Signed-off-by: Valentin Popov <info@valentineus.link >
2018-03-11 22:31:15 +04:00
Valentin Popov
9cf4fc575c
Correction of spaces
2018-02-25 01:32:29 +04:00
Valentin Popov
f3c2ebbe4d
Correcting a stupid mistake
2018-02-25 01:27:40 +04:00
Valentin Popov
8f25379f32
Change version
2018-02-25 01:21:50 +04:00
Valentin Popov
90897b0e7d
General refactoring of the web services code
2018-02-25 01:19:19 +04:00
Valentin Popov
685d9ee15e
Change version
2018-02-22 12:58:37 +04:00
Valentin Popov
db500cddce
Fix 'invalid OPTIONAL value specified'
2018-02-22 12:55:20 +04:00
Valentin Popov
85bcb64e37
Added general list functions
2018-02-22 12:44:50 +04:00
Valentin Popov
1736128dbf
Adding the function of forming events
2018-02-22 12:37:59 +04:00
Valentin Popov
5cdd8de9e3
Small code refactoring
2018-02-20 15:40:50 +04:00
Valentin Popov
b6ddc8bd40
Some variables have been removed
2018-02-20 15:17:27 +04:00
Valentin Popov
f10786bfb0
Update function 'local_webhooks_create_record'
2018-02-20 14:38:36 +04:00
Valentin Popov
899b129d23
The extension is added to the event handler
2018-02-19 15:26:27 +04:00
Valentin Popov
dd19065313
The extension is added to external functions
2018-02-19 15:25:49 +04:00
Valentin Popov
3a2bddeea4
The search function is expanded
2018-02-19 15:24:34 +04:00
Valentin Popov
a41dbbb950
Transferring internal functions to the internal library
2018-02-19 13:44:11 +04:00
Valentin Popov
a68882140b
An external service search function is declared
2018-02-19 13:38:27 +04:00
Valentin Popov
43f0bf98d2
Added external functions to find services
2018-02-19 13:37:27 +04:00
Valentin Popov
95c4cf061a
Rename the function to reset the cache
2018-02-19 13:15:14 +04:00
Valentin Popov
a1099245b5
Cache description added
2018-02-19 13:06:06 +04:00
Valentin Popov
66b5928e6e
Added clearing the cache when changing data
2018-02-19 12:36:09 +04:00
Valentin Popov
4f75d9c5c8
Event handler is rewritten to work with the cache
2018-02-18 22:05:58 +04:00
Valentin Popov
29bdbc7456
Added a service search function that contains the specified event
2018-02-18 21:37:43 +04:00
Valentin Popov
ebf76795da
Change the location of the functions for working with the cache
2018-02-18 21:28:46 +04:00
Valentin Popov
53c49b69de
Added functions for working with the cache
2018-02-18 20:01:55 +04:00
Valentin Popov
f392fd42d9
Update the PHP version for testing.
2018-02-18 18:05:33 +04:00
Valentin Popov
67f8d73a15
Update versions of Moodle for testing.
2018-02-18 18:02:23 +04:00
Valentin Popov
22b7569f71
Correct the check for 'sesskey'.
2018-02-18 17:58:59 +04:00
Valentin Popov
fa74622268
Links to the editor contain sesskey
2018-01-04 15:38:55 +04:00
Valentin Popov
9b7426fb20
Check the sesskey on the editor page
2018-01-04 15:35:27 +04:00
Valentin Popov
283c64f62e
Check the sesskey on the recovery page
2018-01-04 15:34:51 +04:00
Valentin Popov
17ae01ab71
Change version
2017-12-29 14:29:39 +04:00
Valentin Popov
28e1169be8
Added correct update from old versions
2017-12-29 14:25:49 +04:00
Valentin Popov
2126708201
An additional column is added
2017-12-27 21:03:09 +04:00
Valentin Popov
0041667754
Refactoring the handler class
2017-12-27 20:45:31 +04:00
Valentin Popov
91bf79f030
Added function to send the request
2017-12-27 20:43:36 +04:00
Valentin Popov
7d1a0b9fec
Updated the function to update the record
2017-12-27 20:30:27 +04:00
Valentin Popov
51007a0fb5
Register a new external function
2017-12-27 19:52:21 +04:00
Valentin Popov
2eaa622161
Added external function display a list of events
2017-12-27 19:51:34 +04:00
Valentin Popov
3d4b78bd8b
Added the function of receiving all the events
2017-12-27 16:01:48 +04:00
Valentin Popov
41185c6db4
Reconstructed external restore function from the backup
2017-12-27 15:47:36 +04:00
Valentin Popov
7e1284bfe2
Edit the result of the function
2017-12-27 15:29:58 +04:00
Valentin Popov
785a541d1c
Registration of external plug-in functions is added
2017-12-27 15:27:55 +04:00
Valentin Popov
6e3bf072af
Added external plugin functions
2017-12-27 15:26:59 +04:00
Valentin Popov
2e57e732ba
Fixed the text of the button
2017-12-22 18:58:27 +04:00
Valentin Popov
499f36d118
Integration of the event system into functions
2017-12-21 12:06:20 +04:00
Valentin Popov
49516bea82
Refactoring the system of events
2017-12-21 11:48:43 +04:00
Valentin Popov
a6c6081139
Edit translation
2017-12-21 11:36:42 +04:00
Valentin Popov
9560267833
Refactoring the editor code
2017-12-21 11:31:58 +04:00
Valentin Popov
2057a1efb6
The functional was updated to a new form
2017-12-21 11:14:40 +04:00
Valentin Popov
0cbf2bbb87
The data recovery form has been extended
2017-12-21 11:12:40 +04:00
Valentin Popov
3e054dd94e
Updated package dependencies
2017-12-21 11:11:24 +04:00
Valentin Popov
54fb29c5ea
Correction on the main page
2017-12-21 10:01:37 +04:00
Valentin Popov
78e9e435cc
Refactoring function code plugins
2017-12-21 09:59:14 +04:00
Valentin Popov
97711bb186
Added function to change the status of the service
2017-12-19 14:50:30 +04:00