commit
8f6995b440
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { CoreCronDelegate } from '@providers/cron';
|
import { CoreCronDelegate } from '@providers/cron';
|
||||||
|
import { CoreContentLinksDelegate } from '@core/contentlinks/providers/delegate';
|
||||||
import { CoreCourseModuleDelegate } from '@core/course/providers/module-delegate';
|
import { CoreCourseModuleDelegate } from '@core/course/providers/module-delegate';
|
||||||
import { CoreCourseModulePrefetchDelegate } from '@core/course/providers/module-prefetch-delegate';
|
import { CoreCourseModulePrefetchDelegate } from '@core/course/providers/module-prefetch-delegate';
|
||||||
import { AddonModAssignProvider } from './providers/assign';
|
import { AddonModAssignProvider } from './providers/assign';
|
||||||
|
@ -27,6 +28,7 @@ import { AddonModAssignDefaultSubmissionHandler } from './providers/default-subm
|
||||||
import { AddonModAssignModuleHandler } from './providers/module-handler';
|
import { AddonModAssignModuleHandler } from './providers/module-handler';
|
||||||
import { AddonModAssignPrefetchHandler } from './providers/prefetch-handler';
|
import { AddonModAssignPrefetchHandler } from './providers/prefetch-handler';
|
||||||
import { AddonModAssignSyncCronHandler } from './providers/sync-cron-handler';
|
import { AddonModAssignSyncCronHandler } from './providers/sync-cron-handler';
|
||||||
|
import { AddonModAssignIndexLinkHandler } from './providers/index-link-handler';
|
||||||
import { AddonModAssignSubmissionModule } from './submission/submission.module';
|
import { AddonModAssignSubmissionModule } from './submission/submission.module';
|
||||||
import { AddonModAssignFeedbackModule } from './feedback/feedback.module';
|
import { AddonModAssignFeedbackModule } from './feedback/feedback.module';
|
||||||
import { CoreUpdateManagerProvider } from '@providers/update-manager';
|
import { CoreUpdateManagerProvider } from '@providers/update-manager';
|
||||||
|
@ -59,16 +61,19 @@ export const ADDON_MOD_ASSIGN_PROVIDERS: any[] = [
|
||||||
AddonModAssignDefaultSubmissionHandler,
|
AddonModAssignDefaultSubmissionHandler,
|
||||||
AddonModAssignModuleHandler,
|
AddonModAssignModuleHandler,
|
||||||
AddonModAssignPrefetchHandler,
|
AddonModAssignPrefetchHandler,
|
||||||
AddonModAssignSyncCronHandler
|
AddonModAssignSyncCronHandler,
|
||||||
|
AddonModAssignIndexLinkHandler
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class AddonModAssignModule {
|
export class AddonModAssignModule {
|
||||||
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModAssignModuleHandler,
|
constructor(moduleDelegate: CoreCourseModuleDelegate, moduleHandler: AddonModAssignModuleHandler,
|
||||||
prefetchDelegate: CoreCourseModulePrefetchDelegate, prefetchHandler: AddonModAssignPrefetchHandler,
|
prefetchDelegate: CoreCourseModulePrefetchDelegate, prefetchHandler: AddonModAssignPrefetchHandler,
|
||||||
cronDelegate: CoreCronDelegate, syncHandler: AddonModAssignSyncCronHandler, updateManager: CoreUpdateManagerProvider) {
|
cronDelegate: CoreCronDelegate, syncHandler: AddonModAssignSyncCronHandler, updateManager: CoreUpdateManagerProvider,
|
||||||
|
contentLinksDelegate: CoreContentLinksDelegate, linkHandler: AddonModAssignIndexLinkHandler) {
|
||||||
moduleDelegate.registerHandler(moduleHandler);
|
moduleDelegate.registerHandler(moduleHandler);
|
||||||
prefetchDelegate.registerHandler(prefetchHandler);
|
prefetchDelegate.registerHandler(prefetchHandler);
|
||||||
cronDelegate.register(syncHandler);
|
cronDelegate.register(syncHandler);
|
||||||
|
contentLinksDelegate.registerHandler(linkHandler);
|
||||||
|
|
||||||
// Allow migrating the tables from the old app to the new schema.
|
// Allow migrating the tables from the old app to the new schema.
|
||||||
updateManager.registerSiteTablesMigration([
|
updateManager.registerSiteTablesMigration([
|
||||||
|
|
Loading…
Reference in New Issue