ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
DynamicInputsNameSource.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
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...