Getting the names or ids of elements, created with the 'repeat_elements' command

Re: Getting the names or ids of elements, created with the 'repeat_elements' command

by Viktor Merinov -
Number of replies: 0
Sorry for my importunity. How can I get the $reptel's value before 'repeat_elements' call? I noticed that 'repeat_elements' flush all data in page and the variable's definition in a definition of class always is 0. i.e.
class local_simplecompetency_form extends moodleform {
$reptel = 0
...
public function definition() {
...
  print_object($reptel);
...
  $this.reptel = repeat_elements(....

The 'print_object' command shows me always 0 after elements were added to form