ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration\Bundle Class Reference
+ Inheritance diagram for ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration\Bundle:
+ Collaboration diagram for ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration\Bundle:

Public Member Functions

 __construct (private readonly array $self_registrations)
 
 legacyInputGUIs ()
 
 saveLegacyForm (ilPropertyFormGUI $form)
 
 userCreation (ilObjUser $user)
 
 legacyInputGUIs ()
 
 saveLegacyForm (ilPropertyFormGUI $form)
 
 userCreation (ilObjUser $user)
 

Private Member Functions

 callAll (string $call_what,... $args)
 

Detailed Description

Definition at line 27 of file Bundle.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration\Bundle::__construct ( private readonly array  $self_registrations)
Parameters
list<SelfRegistration>$self_registrations

Definition at line 32 of file Bundle.php.

34 {
35 }

Member Function Documentation

◆ callAll()

ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration\Bundle::callAll ( string  $call_what,
  $args 
)
private

Definition at line 53 of file Bundle.php.

53 : array
54 {
55 return array_map(fn($reg) => $reg->$call_what(...$args), $this->self_registrations);
56 }

Referenced by ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration\Bundle\legacyInputGUIs(), ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration\Bundle\saveLegacyForm(), and ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration\Bundle\userCreation().

+ Here is the caller graph for this function:

◆ legacyInputGUIs()

ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration\Bundle::legacyInputGUIs ( )
Returns
list<ilFormPropertyGUI>

Implements ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration.

Definition at line 37 of file Bundle.php.

37 : array
38 {
39 return array_merge(...$this->callAll(__FUNCTION__));
40 }

References ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration\Bundle\callAll().

+ Here is the call graph for this function:

◆ saveLegacyForm()

ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration\Bundle::saveLegacyForm ( ilPropertyFormGUI  $form)

Implements ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration.

Definition at line 42 of file Bundle.php.

42 : bool
43 {
44 $and = fn($a, $b) => $a && $b;
45 return array_reduce($this->callAll(__FUNCTION__, $form), $and, true);
46 }
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples

References Vendor\Package\$a, Vendor\Package\$b, and ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration\Bundle\callAll().

+ Here is the call graph for this function:

◆ userCreation()

ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration\Bundle::userCreation ( ilObjUser  $user)

Implements ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration.

Definition at line 48 of file Bundle.php.

48 : void
49 {
50 $this->callAll(__FUNCTION__, $user);
51 }

References ILIAS\LegalDocuments\ConsumerSlots\SelfRegistration\Bundle\callAll().

+ Here is the call graph for this function:

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