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,32 @@
<?php
/*
* @copyright Copyright (C) 2010-2025 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
namespace Combodo\iTop\Forms\Block;
/**
* Form block helper.
*
* @package Combodo\iTop\Forms\Block
* @since 3.3.0
*/
class FormBlockHelper
{
/**
* Returns a unique form ID for the given form block, based on its hierarchy.
*
* @param AbstractFormBlock $oForm
*
* @return string
*/
public static function GetFormId(AbstractFormBlock $oForm): string
{
if (is_null($oForm->getParent())) {
return $oForm->getName();
}
return self::GetFormId($oForm->getParent()).'_'.$oForm->getName();
}
}