N°8772 - Form dependencies manager implementation

- Form SDK implementation
- Basic Forms
- Dynamics Forms
- Basic Blocks + Data Model Block
- Form Compilation
- Turbo integration
This commit is contained in:
Benjamin Dalsass
2025-12-30 11:42:55 +01:00
committed by GitHub
parent 3955b4eb22
commit 4c1ad0f4f2
813 changed files with 115243 additions and 489 deletions

View File

@@ -0,0 +1,43 @@
<?php
/*
* @copyright Copyright (C) 2010-2024 Combodo SAS
* @license http://opensource.org/licenses/AGPL-3.0
*/
namespace Combodo\iTop\Controller\Base\Layout;
use Combodo\iTop\Controller\AbstractController;
use Exception;
use Combodo\iTop\Application\WebPage\JsonPage;
use ModelReflection;
use ModelReflectionRuntime;
class OqlController extends AbstractController
{
public const ROUTE_NAMESPACE = 'oql';
public function OperationValidateQuery()
{
$oPage = new JsonPage();
$oPage->SetOutputDataOnly(true);
$data = json_decode(file_get_contents('php://input'), true);
$sOql = $data['query'];
try {
/** @var ModelReflection $oModelReflection */
$oModelReflexion = new ModelReflectionRuntime();
$oModelReflexion->GetQuery($sOql);
} catch (Exception $e) {
}
$oPage->SetData([
'is_valid' => !isset($e),
]);
$oPage->output();
}
}