mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°8772 - XML description traduction to PHP wip
This commit is contained in:
@@ -22,8 +22,8 @@ use Combodo\iTop\Forms\Register\RegisterException;
|
||||
abstract class AbstractTypeFormBlock extends AbstractFormBlock
|
||||
{
|
||||
// Inputs
|
||||
public const INPUT_VISIBLE = 'visible';
|
||||
public const INPUT_ENABLE = 'enable';
|
||||
public const INPUT_VISIBLE = 'input_visible';
|
||||
public const INPUT_ENABLE = 'input_enable';
|
||||
|
||||
/** @var bool flag indicating the form insertion */
|
||||
private bool $bIsAddedToForm = false;
|
||||
|
||||
@@ -24,7 +24,7 @@ use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||
class CheckboxFormBlock extends AbstractTypeFormBlock
|
||||
{
|
||||
// outputs
|
||||
public const OUTPUT_CHECKED = 'checked';
|
||||
public const OUTPUT_CHECKED = 'output_checked';
|
||||
|
||||
/** @inheritdoc */
|
||||
public function GetFormType(): string
|
||||
|
||||
@@ -23,8 +23,8 @@ use Combodo\iTop\Forms\Register\IORegister;
|
||||
class ChoiceFormBlock extends AbstractTypeFormBlock
|
||||
{
|
||||
// Outputs
|
||||
public const OUTPUT_LABEL = 'label';
|
||||
public const OUTPUT_VALUE = 'value';
|
||||
public const OUTPUT_LABEL = 'output_label';
|
||||
public const OUTPUT_VALUE = 'output_value';
|
||||
|
||||
/** @inheritdoc */
|
||||
public function GetFormType(): string
|
||||
|
||||
@@ -23,7 +23,7 @@ use Combodo\iTop\Forms\Register\RegisterException;
|
||||
class CollectionBlock extends AbstractTypeFormBlock
|
||||
{
|
||||
// Inputs
|
||||
public const INPUT_CLASS_NAME = 'class_name';
|
||||
public const INPUT_CLASS_NAME = 'input_class_name';
|
||||
|
||||
/** @var FormBlock block */
|
||||
protected AbstractTypeFormBlock $oPrototypeBlock;
|
||||
|
||||
@@ -22,7 +22,7 @@ use Symfony\Component\Form\Extension\Core\Type\NumberType;
|
||||
class NumberFormBlock extends AbstractTypeFormBlock
|
||||
{
|
||||
// Outputs
|
||||
public const OUTPUT_NUMBER = "number";
|
||||
public const OUTPUT_NUMBER = "output_number";
|
||||
|
||||
/** @inheritdoc */
|
||||
public function GetFormType(): string
|
||||
|
||||
@@ -22,7 +22,7 @@ use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
class TextFormBlock extends AbstractTypeFormBlock
|
||||
{
|
||||
// Outputs
|
||||
public const OUTPUT_TEXT = "text";
|
||||
public const OUTPUT_TEXT = "output_text";
|
||||
|
||||
/** @inheritdoc */
|
||||
public function GetFormType(): string
|
||||
|
||||
@@ -28,16 +28,17 @@ use utils;
|
||||
class AttributeChoiceFormBlock extends ChoiceFormBlock
|
||||
{
|
||||
// inputs
|
||||
public const INPUT_CLASS_NAME = 'class_name';
|
||||
public const INPUT_CLASS_NAME = 'input_class_name';
|
||||
|
||||
// outputs
|
||||
public const OUTPUT_ATTRIBUTE = 'attribute';
|
||||
public const OUTPUT_ATTRIBUTE = 'output_attribute';
|
||||
|
||||
/** @inheritdoc */
|
||||
protected function RegisterOptions(OptionsRegister $oOptionsRegister): void
|
||||
{
|
||||
parent::RegisterOptions($oOptionsRegister);
|
||||
$oOptionsRegister->SetOption('placeholder', 'Select an attribute...');
|
||||
$oOptionsRegister->SetOption('category', '', false);
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
|
||||
@@ -25,8 +25,8 @@ use Exception;
|
||||
class AttributeValueChoiceFormBlock extends ChoiceFormBlock
|
||||
{
|
||||
// inputs
|
||||
public const INPUT_CLASS_NAME = 'class_name';
|
||||
public const INPUT_ATTRIBUTE = 'attribute';
|
||||
public const INPUT_CLASS_NAME = 'input_class_name';
|
||||
public const INPUT_ATTRIBUTE = 'input_attribute';
|
||||
|
||||
/** @inheritdoc */
|
||||
protected function RegisterOptions(OptionsRegister $oOptionsRegister): void
|
||||
|
||||
@@ -24,7 +24,7 @@ use Combodo\iTop\Forms\Register\OptionsRegister;
|
||||
class OqlFormBlock extends TextAreaFormBlock
|
||||
{
|
||||
// outputs
|
||||
public const OUTPUT_SELECTED_CLASS = 'selected_class';
|
||||
public const OUTPUT_SELECTED_CLASS = 'output_selected_class';
|
||||
|
||||
/** @inheritdoc */
|
||||
public function GetFormType(): string
|
||||
|
||||
@@ -21,8 +21,8 @@ use Combodo\iTop\Forms\Register\IORegister;
|
||||
class BooleanExpressionFormBlock extends AbstractExpressionFormBlock
|
||||
{
|
||||
// Outputs
|
||||
public const OUTPUT_RESULT = "result";
|
||||
public const OUTPUT_NOT_RESULT = "not_result";
|
||||
public const OUTPUT_RESULT = "output_result";
|
||||
public const OUTPUT_NOT_RESULT = "output_not_result";
|
||||
|
||||
/** @inheritdoc */
|
||||
protected function RegisterIO(IORegister $oIORegister): void
|
||||
|
||||
@@ -21,7 +21,7 @@ use Combodo\iTop\Forms\Register\IORegister;
|
||||
class NumberExpressionFormBlock extends AbstractExpressionFormBlock
|
||||
{
|
||||
// Outputs
|
||||
public const OUTPUT_RESULT = "result";
|
||||
public const OUTPUT_RESULT = "output_result";
|
||||
|
||||
/** @inheritdoc */
|
||||
protected function RegisterIO(IORegister $oIORegister): void
|
||||
|
||||
Reference in New Issue
Block a user