ILIAS  release_8 Revision v8.25-1-g13de6a5eca6
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 48 of file StandardFormTest.php.

Member Function Documentation

◆ getNewDedicatedName()

InputNameSource::getNewDedicatedName ( string  $dedicated_name)

Definition at line 60 of file StandardFormTest.php.

60 : string
61 {
62 $name = $dedicated_name . "_{$this->count}";
63 $this->count++;
64
65 return $name;
66 }
if($format !==null) $name
Definition: metadata.php:247

References $name.

◆ getNewName()

InputNameSource::getNewName ( )

Generates a unique name on every call.

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

Definition at line 52 of file StandardFormTest.php.

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

References $name.

Field Documentation

◆ $count

int InputNameSource::$count = 0

Definition at line 50 of file StandardFormTest.php.


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