The EuroCMS Handlers
A handler is a specific task, that can be handled by multiple type of code.
db table
The DataBase table structure
| handler_id | domain_id | user_id | group_id | component_type | component_name | name | handler | description | user_lock | status |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 1 | 1 | core | handlers | Secrets | SQLite | Secrets are saved in SQLite | 1 | active |
| 1 | 1 | 1 | 1 | core | handlers | Session | File | Sessions are saved by the File handler | 9 | active |
| 1 | 1 | 1 | 1 | core | handlers | DataBase | MariaDB | DataBase is managed by MariaDB | 2 | active |
| 1 | 1 | 1 | 1 | core | handlers | Comment | DataBase | Comments are handled by the default DataBase handler | 2 | active |
| 1 | 1 | 1 | 1 | core | handlers | http | cURL | http request are handled by cURL | 2 | active |
| 1 | 1 | 1 | 1 | core | handlers | access | MariaDB | Access Logs are specifically saved in MariaDB | 44 | active |
| 1 | 1 | 1 | 1 | core | handlers | error | MariaDB | Error Logs are specifically saved in MariaDB | 4 | active |
| 1 | 1 | 1 | 1 | core | handlers | PHP | {PHP_VERSION} | The PHP handler is loaded based by the PHP_VERSION constant. e.g.: PHP.handler.8.0.php | 44 | active |
| 1 | 1 | 1 | 1 | core | handlers | cache | local | The local cache is handled locally. | 15 | active |
| 1 | 1 | 1 | 1 | core | handlers | auth | MariaDB | The user authentication is done by users that are saved in MariaDB. | 16 | active |
| 1 | 1 | 1 | 1 | core | handlers | Search | DataBase | The Search engine will search for things in the default DataBase | 17 | active |
| 1 | 1 | 1 | 1 | core | handlers | Notifications | DataBase | The notification handlers | 17 | active |
| 1 | 1 | 1 | 1 | modules | Files | Storage | local | Where to store the uploaded files. Available options: WebDAV, AWS S3, Google Storage. | 4 | active |
Ponder
- Add a Roles and Permission handler to have the ability to load Roles and Permissions from different sources.
- Add the same ability for modules. Modules then can also register handlers...
Permissions
| name | description | value | value description |
|---|---|---|---|
| handler_register | Add a new handler | string $name, string $handler, string $description | The handler information |
| handler_remove | Remove an existing handler | string $handler_id | The handler ID |
| handler_modify | Modify an existing handler | string $handler_id, string $name, string $handler, string $description | The handler ID and information |
| handler_user_lock | lock a handler from being modified by other users | string $handler_id | The handler ID |