validator component

This commit is contained in:
Benjamin Dalsass
2025-12-01 07:58:28 +01:00
parent 06e5c80786
commit 81f056a91c
349 changed files with 51716 additions and 52 deletions

View File

@@ -15,8 +15,11 @@ use Combodo\iTop\Forms\Register\OptionsRegister;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
/**
* Form block for checkbox.
* A block to manage a checkbox.
* This block expose one output: whether the checkbox is checked or not.
*
* @package Combodo\iTop\Forms\Block\Base
* @since 3.3.0
*/
class CheckboxFormBlock extends AbstractTypeFormBlock
{

View File

@@ -14,8 +14,11 @@ use Combodo\iTop\Forms\IO\Format\StringIOFormat;
use Combodo\iTop\Forms\Register\IORegister;
/**
* Form block for choices.
* A block to manage a list of choices.
* This block expose two outputs: the label and the value of the selected choice.
*
* @package Combodo\iTop\Forms\Block\Base
* @since 3.3.0
*/
class ChoiceFormBlock extends AbstractTypeFormBlock
{

View File

@@ -11,7 +11,10 @@ use Combodo\iTop\Forms\IO\FormInput;
use Combodo\iTop\Forms\Register\OptionsRegister;
/**
* A block to manage a list of choices given by forms inputs current values.
*
* @package Combodo\iTop\Forms\Block\Base
* @since 3.3.0
*/
class ChoiceFromInputsBlock extends ChoiceFormBlock
{

View File

@@ -15,8 +15,10 @@ use Combodo\iTop\Forms\Register\OptionsRegister;
use Combodo\iTop\Forms\Register\RegisterException;
/**
* Collection form type.
* A block to manage collections of form blocks.
*
* @package Combodo\iTop\Forms\Block\Base
* @since 3.3.0
*/
class CollectionBlock extends AbstractTypeFormBlock
{

View File

@@ -12,8 +12,10 @@ use Combodo\iTop\Forms\Register\OptionsRegister;
use Symfony\Component\Form\Extension\Core\Type\DateType;
/**
* Form block for date.
* A block to manage a date field.
*
* @package Combodo\iTop\Forms\Block\Base
* @since 3.3.0
*/
class DateFormBlock extends AbstractTypeFormBlock
{

View File

@@ -12,8 +12,10 @@ use Combodo\iTop\Forms\Register\OptionsRegister;
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
/**
* Form block for date time.
* A block to manage a date and time field
*
* @package Combodo\iTop\Forms\Block\Base
* @since 3.3.0
*/
class DateTimeFormBlock extends AbstractTypeFormBlock
{

View File

@@ -19,8 +19,10 @@ use ReflectionClass;
use ReflectionException;
/**
* Complex form type.
* A block to manage a form with children.
*
* @package Combodo\iTop\Forms\Block\Base
* @since 3.3.0
*/
class FormBlock extends AbstractTypeFormBlock
{

View File

@@ -13,8 +13,11 @@ use Combodo\iTop\Forms\Register\IORegister;
use Symfony\Component\Form\Extension\Core\Type\NumberType;
/**
* Form block for string.
* A block to manage a number input.
* This block exposes a single output: the number value.
*
* @package Combodo\iTop\Forms\Block\Base
* @since 3.3.0
*/
class NumberFormBlock extends AbstractTypeFormBlock
{

View File

@@ -11,8 +11,10 @@ use Combodo\iTop\Forms\Block\AbstractTypeFormBlock;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
/**
* Form block for text area.
* A block to manage a textarea.
*
* @package Combodo\iTop\Forms\Block\Base
* @since 3.3.0
*/
class TextAreaFormBlock extends AbstractTypeFormBlock
{

View File

@@ -13,8 +13,11 @@ use Combodo\iTop\Forms\Register\IORegister;
use Symfony\Component\Form\Extension\Core\Type\TextType;
/**
* Form block for string.
* A block to manage a text input.
* This block exposes a single text output.
*
* @package Combodo\iTop\Forms\Block\Base
* @since 3.3.0
*/
class TextFormBlock extends AbstractTypeFormBlock
{