Commit graph

499 commits

Author SHA1 Message Date
Alex Tselegidis
7d3bc3104c Created new library that handles common API functionality. 2021-11-02 10:44:37 +01:00
Alex Tselegidis
c2127a28fb Added missing comments 2021-11-02 10:04:46 +01:00
Alex Tselegidis
dc50f8dee1 Updated @since tag 2021-11-02 09:24:28 +01:00
Alex Tselegidis
bdaa46459c The new settings model does not have the set_setting and get_setting values. 2021-10-29 13:21:03 +02:00
Alex Tselegidis
306e94a082 The delete model method does not return a result any more. 2021-10-29 13:20:33 +02:00
Alex Tselegidis
4ed7465784 Corrected the name of the exception variable 2021-10-29 13:16:21 +02:00
Alex Tselegidis
182cebfb74 Renamed the add_unavailable method to save_unavailable for consistency 2021-10-29 13:12:39 +02:00
Alex Tselegidis
e29c2198de Removed the delete_unavailable method 2021-10-29 13:11:56 +02:00
Alex Tselegidis
8b02cbb369 Added missing type hints for method params 2021-10-29 13:10:54 +02:00
Alex Tselegidis
3dee2ef4ef Added missing @method tag in phpdoc comments 2021-10-29 13:10:36 +02:00
Alex Tselegidis
8947500968 If the request does not have the application/json content type header then return NULL 2021-10-29 13:08:41 +02:00
Alex Tselegidis
d886f6db16 Override the CSRF validation to support the X-CSRF header. 2021-10-29 13:06:56 +02:00
Alex Tselegidis
3233c19571 Added overrides for all the framework classes as templates and for consistency 2021-10-29 13:04:26 +02:00
Alex Tselegidis
12ec5c1ac3 The request helper can now also fetch JSON-payload attributes 2021-10-29 12:54:49 +02:00
Alex Tselegidis
dd546164fb Common type casting functionality 2021-10-29 12:39:49 +02:00
Alex Tselegidis
b7305be038 Type casting for the Users_model.php 2021-10-29 12:39:38 +02:00
Alex Tselegidis
d62dd9b053 Type casting for the Settings_model.php 2021-10-29 12:39:32 +02:00
Alex Tselegidis
83777d35ba Type casting for the Services_model.php 2021-10-29 12:39:27 +02:00
Alex Tselegidis
791f1e38e4 Type casting for the Service_categories_model.php 2021-10-29 12:39:20 +02:00
Alex Tselegidis
879b58ad6a Type casting for the Secretaries_model.php 2021-10-29 12:39:14 +02:00
Alex Tselegidis
23cdaa2c6b Type casting for the Roles_model.php 2021-10-29 12:39:08 +02:00
Alex Tselegidis
e0dbdeccfc Type casting for the Providers_model.php 2021-10-29 12:39:02 +02:00
Alex Tselegidis
9338ec4445 Type casting for the Customers_model.php 2021-10-29 12:38:56 +02:00
Alex Tselegidis
6cc17d7bf5 Type casting for the Consents_model.php 2021-10-29 12:38:49 +02:00
Alex Tselegidis
d1b78397ef Type casting for the Admins_model.php 2021-10-29 12:38:41 +02:00
Alex Tselegidis
64205cb23b Type casting for the Appointments_model.php 2021-10-29 12:38:30 +02:00
Alex Tselegidis
76afdef30b Moved the instance handling logic to a re-usable library 2021-10-29 10:44:01 +02:00
Alex Tselegidis
18348e02a5 Added core migration class. 2021-10-29 10:19:10 +02:00
Alex Tselegidis
9a528e6734 Updated the class comments 2021-10-29 10:18:44 +02:00
Alex Tselegidis
8ecf389bf1 Updated all the API controllers to work with the updated code. 2021-10-28 14:01:27 +02:00
Alex Tselegidis
a280496294 Updated all the main controllers to work with the updated code. 2021-10-28 14:01:17 +02:00
Alex Tselegidis
61a718cb2f Updated the Timezones.php library to work with the updated code. 2021-10-28 14:00:48 +02:00
Alex Tselegidis
8e11dddf4a Updated the Synchronization.php library to work with the updated code. 2021-10-28 14:00:40 +02:00
Alex Tselegidis
44aea4febb Updated the Notifications.php library to work with the updated code. 2021-10-28 14:00:33 +02:00
Alex Tselegidis
23d80259d9 Updated the Ics_file.php library to work with the updated code. 2021-10-28 14:00:18 +02:00
Alex Tselegidis
f540922abc Updated the Google_sync.php library to work with the updated code. 2021-10-28 14:00:10 +02:00
Alex Tselegidis
e4c01f54f8 Updated the Availability.php library to work with the updated code. 2021-10-28 13:59:56 +02:00
Alex Tselegidis
adc6d00bb5 Updated the Google Analytics and Permissions helper functions. 2021-10-28 13:59:27 +02:00
Alex Tselegidis
5e4bf0bd22 Corrected variable and table name 2021-10-28 13:51:46 +02:00
Alex Tselegidis
b2d2a5a1ce Updated the new accounts library. 2021-10-28 13:29:15 +02:00
Alex Tselegidis
198db17100 Minor formatting changes 2021-10-28 13:28:37 +02:00
Alex Tselegidis
18e89e1ba4 Minor formatting change 2021-10-28 13:27:47 +02:00
Alex Tselegidis
110e5ec17d Properly read and write settings via the settings helper 2021-10-28 13:27:14 +02:00
Alex Tselegidis
af58f924b1 Autoload the string helper as well 2021-10-28 13:26:48 +02:00
Alex Tselegidis
4671055a52 Corrected typo on get customer role ID method 2021-10-28 13:26:31 +02:00
Alex Tselegidis
0aaff2eae1 Removed manual helper loading 2021-10-27 12:05:28 +02:00
Alex Tselegidis
2e9bf9d29d Automatically load all the core helper files 2021-10-27 12:03:51 +02:00
Alex Tselegidis
a241e8b2a4 Removed teh custom_exceptions_helper.php file 2021-10-27 12:02:24 +02:00
Alex Tselegidis
c1db2b636c The content array must be encoded before returned 2021-10-27 11:44:45 +02:00
Alex Tselegidis
c495cd8225 Added the success prop to the json exception response payload 2021-10-27 11:19:45 +02:00
Alex Tselegidis
4bec35d70c Removed the : void return typehint 2021-10-27 10:49:42 +02:00
Alex Tselegidis
85ac86caae Updated class comment 2021-10-27 10:46:32 +02:00
Alex Tselegidis
e0ad767ec7 Updated @property tags in EA_Controller.php 2021-10-27 10:06:58 +02:00
Alex Tselegidis
40e06d2f19 The base model class has all the deprecated methods for backwards compatibility. 2021-10-27 10:06:44 +02:00
Alex Tselegidis
97c7a2821d Created the users model class. 2021-10-27 10:05:43 +02:00
Alex Tselegidis
de4c232488 Migrated the user model logic into the accounts library 2021-10-27 10:05:26 +02:00
Alex Tselegidis
d914a52c02 Created the service categories model class. 2021-10-27 10:04:59 +02:00
Alex Tselegidis
65282bc5a2 Updated the settings model class. 2021-10-27 10:04:48 +02:00
Alex Tselegidis
175b6a9ffe Updated the services model class. 2021-10-27 10:04:42 +02:00
Alex Tselegidis
8022ab28af Updated the secretaries model class. 2021-10-27 10:04:35 +02:00
Alex Tselegidis
a4cd74863b Updated the roles model class. 2021-10-27 10:04:28 +02:00
Alex Tselegidis
beeb821f8a Updated the providers model class. 2021-10-27 10:04:21 +02:00
Alex Tselegidis
024479e5c6 Updated the customers model class. 2021-10-27 10:04:15 +02:00
Alex Tselegidis
07925c58ef Updated the consents model class. 2021-10-27 10:04:09 +02:00
Alex Tselegidis
a72a33abb1 Updated the appointments model class. 2021-10-27 10:04:01 +02:00
Alex Tselegidis
5f2e5f1d28 Updated the admins model class. 2021-10-27 10:03:52 +02:00
Alex Tselegidis
f5471b0f2b Renamed and updated the password helper 2021-10-24 22:00:59 +02:00
Alex Tselegidis
658c131f79 Renamed and updated the validation helper 2021-10-24 22:00:16 +02:00
Alex Tselegidis
584e624139 Added deprecated method stubs for backwards compatibility 2021-10-24 14:16:35 +02:00
Alex Tselegidis
fa6e48b344 Corrected property tag order 2021-10-24 14:13:20 +02:00
Alex Tselegidis
6417db8ca1 Added fallback support for the model class deprecations 2021-10-23 19:33:55 +02:00
Alex Tselegidis
bee96c172a Corrected typo in class comment 2021-10-23 19:32:55 +02:00
Alex Tselegidis
bc1380ca89 Added helper file with permission related functions. 2021-10-23 19:19:21 +02:00
Alex Tselegidis
a97b6a4e13 Added helper file with http related functions. 2021-10-23 19:08:08 +02:00
Alex Tselegidis
e55c68fcb4 Added @throws tag at the comments 2021-10-23 13:42:23 +02:00
Alex Tselegidis
d636f60cbc Added short argument explanation 2021-10-23 13:41:41 +02:00
Alex Tselegidis
0a6b596dec Added examples at the comments 2021-10-23 13:38:54 +02:00
Alex Tselegidis
c117eda101 Set the right @since value for the new helper files 2021-10-23 13:29:31 +02:00
Alex Tselegidis
6d5a961fc7 Added helper file with path related functions. 2021-10-23 13:28:01 +02:00
Alex Tselegidis
4a7cdd96b2 Added helper file with setting related functions. 2021-10-23 13:21:30 +02:00
Alex Tselegidis
30c08bf95a Changed the return comment 2021-10-23 13:20:39 +02:00
Alex Tselegidis
af656d70e2 Changed the return comment 2021-10-23 13:20:33 +02:00
Alex Tselegidis
d70e6f21ce Added helper file with session related functions. 2021-10-23 13:18:20 +02:00
Alex Tselegidis
7a85ae6fc8 Updated the get example. 2021-10-23 13:17:38 +02:00
Alex Tselegidis
aad8e38bea Added additional comment 2021-10-23 13:13:43 +02:00
Alex Tselegidis
863caa31fd Added helper file with environment related functions. 2021-10-23 13:11:19 +02:00
Alex Tselegidis
b14341c328 Validate $key argument with empty instead with is_null 2021-10-23 13:10:09 +02:00
Alex Tselegidis
31c324dd92 Updated the exception message. 2021-10-23 13:08:24 +02:00
Alex Tselegidis
8abeb4dbf2 Added new helper file with debugging related functions 2021-10-23 13:07:00 +02:00
Alex Tselegidis
85a6be1d7d Changed the exception instance to InvalidArgument exception. 2021-10-23 13:06:41 +02:00
Alex Tselegidis
1492963dee The config helper function can now also set a value. 2021-10-23 13:04:15 +02:00
Alex Tselegidis
727391aa8f Added default value to the config helper 2021-10-23 12:59:39 +02:00
Tthecreator
ff89857934
Update style of Client Form menu
Co-authored-by: Vitor Mattos <vitor@php.rio>
2021-10-20 22:18:40 +02:00
Thomas Saedt
9671def4ea Merge branch 'develop' into 1081_hide_data_fields 2021-10-20 22:12:47 +02:00
Alex Tselegidis
1664ac6f9f
Merge pull request #1119 from om-ha/patch-1
FIX Providers API incorrect `array_key_exists`
2021-10-18 13:58:42 +02:00
Alex Tselegidis
6606340da4 Update French translations (#1107). 2021-10-18 13:54:38 +02:00
Alex Tselegidis
6b179c3b58 When selecting the any provider option in the booking page then merge all the available hours of all providers that can serve the selected service (#1147). 2021-10-18 13:04:32 +02:00
Alex Tselegidis
86bc718782 Condier unavailable time periods that span into multiple days (#880). 2021-10-18 12:43:40 +02:00
Alex Tselegidis
03f5fed5a6 Merge branch 'lourdas-master' into develop 2021-10-04 09:38:20 +02:00
Alex Tselegidis
53acb6146c Mark required the fields of the settings page 2021-10-04 09:27:50 +02:00