ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
DynamicInputsNameSource.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
namespace
ILIAS\UI\Implementation\Component\Input
;
22
30
class
DynamicInputsNameSource
extends
FormInputNameSource
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
}
ILIAS\UI\Implementation\Component\Input\DynamicInputsNameSource\__construct
__construct(string $parent_input_name)
Definition:
DynamicInputsNameSource.php:34
ILIAS\UI\Implementation\Component\Input\DynamicInputsNameSource\$parent_input_name
string $parent_input_name
Definition:
DynamicInputsNameSource.php:32
ILIAS\UI\Implementation\Component\Input\DynamicInputsNameSource
Other than the FormInputNameSource this name source is for inputs that can be dynamically added multi...
Definition:
DynamicInputsNameSource.php:30
ILIAS\UI\Implementation\Component\Input\FormInputNameSource
FormInputNameSource is responsible for generating continuous form input names.
Definition:
FormInputNameSource.php:29
ILIAS\UI\Implementation\Component\Input\DynamicInputsNameSource\getNewName
getNewName()
Generates a unique name on every call.
Definition:
DynamicInputsNameSource.php:39
ILIAS\UI\Implementation\Component\Input
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ArrayInputData.php:21
src
UI
Implementation
Component
Input
DynamicInputsNameSource.php
Generated on Sun Aug 31 2025 22:02:50 for ILIAS by
1.8.13 (using
Doxyfile
)