ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Questions Class Reference
+ Inheritance diagram for ILIAS\Questions:
+ Collaboration diagram for ILIAS\Questions:

Public Member Functions

 init (array|\ArrayAccess &$define, array|\ArrayAccess &$implement, array|\ArrayAccess &$use, array|\ArrayAccess &$contribute, array|\ArrayAccess &$seek, array|\ArrayAccess &$provide, array|\ArrayAccess &$pull, array|\ArrayAccess &$internal,)
 
 init (array|\ArrayAccess &$define, array|\ArrayAccess &$implement, array|\ArrayAccess &$use, array|\ArrayAccess &$contribute, array|\ArrayAccess &$seek, array|\ArrayAccess &$provide, array|\ArrayAccess &$pull, array|\ArrayAccess &$internal,)
 

Detailed Description

Definition at line 43 of file Questions.php.

Member Function Documentation

◆ init()

ILIAS\Questions::init ( array|\ArrayAccess &  $define,
array|\ArrayAccess &  $implement,
array|\ArrayAccess &  $use,
array|\ArrayAccess &  $contribute,
array|\ArrayAccess &  $seek,
array|\ArrayAccess &  $provide,
array|\ArrayAccess &  $pull,
array|\ArrayAccess &  $internal 
)

Implements ILIAS\Component\Component.

Definition at line 45 of file Questions.php.

54 : void {
55 $define[] = Questions\PublicInterface::class;
56
57 $internal[PersistenceFactory::class] = static fn()
58 => new PersistenceFactory();
59 $internal[\EvalMath::class] = static fn() => new \EvalMath();
60
61 $contribute[AgentInterface::class] = static fn() =>
62 new Agent(
63 $internal[PersistenceFactory::class],
65 QuestionRepository::COMPONENT_NAMESPACE,
66 null
67 ),
68 $seek[AnswerFormMigration::class],
69 $seek[CapabilityMigration::class]
70 );
71 $contribute[AnswerFormMigration::class] = static fn()
72 => new MigrationCloze(
73 new ClozeTableDefinitions(
74 $internal[PersistenceFactory::class],
76 'ILIAS',
77 'cloze'
78 )
79 ),
80 $internal[\EvalMath::class]
81 );
82 $contribute[AnswerFormMigration::class] = static fn()
83 => new MigrationLongMenu(
84 new ClozeTableDefinitions(
85 $internal[PersistenceFactory::class],
87 'ILIAS',
88 'cloze'
89 )
90 )
91 );
92 $contribute[AnswerFormMigration::class] = static fn()
93 => new MigrationNumeric(
94 new ClozeTableDefinitions(
95 $internal[PersistenceFactory::class],
97 'ILIAS',
98 'cloze'
99 )
100 ),
101 $internal[\EvalMath::class]
102 );
103 $contribute[AnswerFormMigration::class] = static fn()
104 => new MigrationTextSubset(
105 new ClozeTableDefinitions(
106 $internal[PersistenceFactory::class],
108 'ILIAS',
109 'cloze'
110 )
111 )
112 );
113
114 $contribute[CapabilityMigration::class] = static fn()
115 => new TextFeedbackMigration(
116 new TextFeedbackTableDefinitions(
117 $internal[PersistenceFactory::class]
118 )
119 );
120 $contribute[CapabilityMigration::class] = static fn()
121 => new SuggestedLearningContentMigration(
122 new SuggestedLearningContentTableDefinitions(
123 $internal[PersistenceFactory::class]
124 )
125 );
126
127 $contribute[Component\Resource\PublicAsset::class] = fn()
129 $this,
130 'js/dist/questions.js'
131 );
132 $contribute[User\Settings\UserSettings::class] = fn()
134 $contribute[LanguageFileDirectory::class] = fn() => new ComponentLanguageFileDirectory(
135 $this,
136 'qsts'
137 );
138 }
This is a js file provided by some component.
Definition: ComponentJS.php:27

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