Remove outdated edge gateway object classes, add new agent implementation

Transitioned from obsolete gateway object classes (`edge_gateway_shell_action_jobs_o`, `edge_gateway_shell_events_o`, `edge_gateway_shell_sessions_o`, `edge_gateway_update_jobs_o`) to the new agent implementation (`edge-gateway-agent/agent.php`).
This commit is contained in:
Jeppe Bundgaard
2026-04-21 14:13:17 +02:00
parent d30a006457
commit 7d450e285e
90 changed files with 11811 additions and 2760 deletions
@@ -37,7 +37,7 @@ trait module_config_t
{
// Check if the request has a variable name and value
global $response;
if ($response->getRequestParameter('variable') === null || $response->getRequestParameter('value') === null) {
if ($response->getRequestParameter('variable') === null || !$response->isRequestParameterSet('value')) {
$response->error('Variable and value not set', 400);
}
// Get the variable name and value
@@ -144,6 +144,9 @@ trait module_config_t
{
// If the variable is an int, convert it to an int
if ($type == 'integer' || $type == 'int') {
if ($value === null || $value === '') {
return null;
}
return (integer)$value;
}
// If the variable is a boolean, convert it to a boolean