ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
DynamicInputsNameSource.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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...