ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
DefNamesource Class Reference
+ Inheritance diagram for DefNamesource:
+ Collaboration diagram for DefNamesource:

Public Member Functions

 getNewName ()
 Generates a unique name on every call. More...
 

Data Fields

 $count = 0
 

Detailed Description

Definition at line 36 of file InputTest.php.

Member Function Documentation

◆ getNewName()

DefNamesource::getNewName ( )

Generates a unique name on every call.

Returns
string

Implements ILIAS\UI\Implementation\Component\Input\NameSource.

Definition at line 41 of file InputTest.php.

References ILIAS\UI\Implementation\Component\Input\Field\Input\$name.

42  {
43  $name = "name_{$this->count}";
44  $this->count++;
45 
46  return $name;
47  }

Field Documentation

◆ $count

DefNamesource::$count = 0

Definition at line 38 of file InputTest.php.


The documentation for this class was generated from the following file: