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,16 @@
<?php
namespace Combodo\iTop\Forms\Converter;
class OqlToClassName extends AbstractConverter
{
public function Convert(mixed $oData): ?string
{
if($oData === null)
return null;
// extract selected class
preg_match('/SELECT\s+(\w+)/', $oData, $aMatches);
return $aMatches[1] ?? null;
}
}