ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
DynamicInputsNameSource.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
31{
32 protected string $parent_input_name;
33
34 public function __construct(string $parent_input_name)
35 {
36 $this->parent_input_name = $parent_input_name;
37 }
38
39 public function getNewName(): string
40 {
41 return "$this->parent_input_name[" . parent::getNewName() . "][]";
42 }
43}
Other than the FormInputNameSource this name source is for inputs that can be dynamically added multi...
FormInputNameSource is responsible for generating continuous form input names.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...