N°8771 - Add Symfony form component to iTop core

- WIP
This commit is contained in:
Benjamin Dalsass
2025-10-23 12:11:02 +02:00
parent 239814a38c
commit 5dea3f5299
10 changed files with 243 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<?php
namespace Combodo\iTop\Forms\Block;
use Combodo\iTop\Forms\Converter\AbstractConverter;
class FormOutput
{
private string $sName;
private string $sType;
private AbstractConverter $oConverter;
public function __construct(string $sName, string $sType, AbstractConverter $oConverter = null)
{
$this->sName = $sName;
$this->sType = $sName;
$this->oConverter = $oConverter;
}
public function GetName(): string
{
return $this->sName;
}
public function SetName(string $sName): void
{
$this->sName = $sName;
}
public function GetType(): string
{
return $this->sType;
}
public function SetType(string $sType): void
{
$this->sType = $sType;
}
public function GetOutputValue(mixed $oData): mixed
{
$this->oConverter->Convert($oData);
}
}