|
|
|
@ -152,10 +152,10 @@ class XApiPlugin extends Plugin implements HookPluginInterface |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function uninstallHook() |
|
|
|
public function uninstallHook() |
|
|
|
{ |
|
|
|
{ |
|
|
|
$learningPathItemViewedHook = XApiLearningPathItemViewedHook::create(); |
|
|
|
$learningPathItemViewedHook = XApiLearningPathItemViewedHookObserver::create(); |
|
|
|
$learningPathEndHook = XApiLearningPathEndHook::create(); |
|
|
|
$learningPathEndHook = XApiLearningPathEndHookObserver::create(); |
|
|
|
$quizQuestionAnsweredHook = XApiQuizQuestionAnsweredHook::create(); |
|
|
|
$quizQuestionAnsweredHook = XApiQuizQuestionAnsweredHookObserver::create(); |
|
|
|
$quizEndHook = XApiQuizEndHook::create(); |
|
|
|
$quizEndHook = XApiQuizEndHookObserver::create(); |
|
|
|
|
|
|
|
|
|
|
|
HookLearningPathItemViewed::create()->attach($learningPathItemViewedHook); |
|
|
|
HookLearningPathItemViewed::create()->attach($learningPathItemViewedHook); |
|
|
|
HookLearningPathEnd::create()->detach($learningPathEndHook); |
|
|
|
HookLearningPathEnd::create()->detach($learningPathEndHook); |
|
|
|
@ -235,10 +235,10 @@ class XApiPlugin extends Plugin implements HookPluginInterface |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function performActionsAfterConfigure() |
|
|
|
public function performActionsAfterConfigure() |
|
|
|
{ |
|
|
|
{ |
|
|
|
$learningPathItemViewedHook = XApiLearningPathItemViewedHook::create(); |
|
|
|
$learningPathItemViewedHook = XApiLearningPathItemViewedHookObserver::create(); |
|
|
|
$learningPathEndHook = XApiLearningPathEndHook::create(); |
|
|
|
$learningPathEndHook = XApiLearningPathEndHookObserver::create(); |
|
|
|
$quizQuestionAnsweredHook = XApiQuizQuestionAnsweredHook::create(); |
|
|
|
$quizQuestionAnsweredHook = XApiQuizQuestionAnsweredHookObserver::create(); |
|
|
|
$quizEndHook = XApiQuizEndHook::create(); |
|
|
|
$quizEndHook = XApiQuizEndHookObserver::create(); |
|
|
|
|
|
|
|
|
|
|
|
$learningPathItemViewedEvent = HookLearningPathItemViewed::create(); |
|
|
|
$learningPathItemViewedEvent = HookLearningPathItemViewed::create(); |
|
|
|
$learningPathEndEvent = HookLearningPathEnd::create(); |
|
|
|
$learningPathEndEvent = HookLearningPathEnd::create(); |
|
|
|
|