ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
InputNameSource Class Reference
+ Inheritance diagram for InputNameSource:
+ Collaboration diagram for InputNameSource:

Public Member Functions

 getNewName ()
 Generates a unique name on every call. More...
 
 getNewDedicatedName (string $dedicated_name)
 
 getNewName ()
 Generates a unique name on every call. More...
 

Data Fields

int $count = 0
 

Detailed Description

Definition at line 49 of file StandardFormTest.php.

Member Function Documentation

◆ getNewDedicatedName()

InputNameSource::getNewDedicatedName ( string  $dedicated_name)

Definition at line 61 of file StandardFormTest.php.

61 : string
62 {
63 $name = $dedicated_name . "_{$this->count}";
64 $this->count++;
65
66 return $name;
67 }

◆ getNewName()

InputNameSource::getNewName ( )

Generates a unique name on every call.

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

Definition at line 53 of file StandardFormTest.php.

53 : string
54 {
55 $name = "input_{$this->count}";
56 $this->count++;
57
58 return $name;
59 }

Field Documentation

◆ $count

int InputNameSource::$count = 0

Definition at line 51 of file StandardFormTest.php.


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