ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilExerciseDerivedTaskProviderFactory.php
Go to the documentation of this file.
1 <?php
2 
25 {
26  protected \ILIAS\Exercise\PermanentLink\PermanentLinkManager $link_manager;
28  protected ilAccess $access;
29  protected ilLanguage $lng;
30 
31  public function __construct(
32  ilTaskService $task_service,
33  ilAccess $access = null,
34  ilLanguage $lng = null
35  ) {
36  global $DIC;
37 
38  $this->access = is_null($access)
39  ? $DIC->access()
40  : $access;
41 
42  $this->lng = is_null($lng)
43  ? $DIC->language()
44  : $lng;
45 
46  $this->link_manager = $DIC->exercise()->internal()->gui()->permanentLink();
47 
48  $this->task_service = $task_service;
49  }
50 
54  public function getProviders(): array
55  {
56  return [
58  $this->task_service,
59  $this->access,
60  $this->lng,
65  new \ILIAS\Exercise\Submission\SubmissionDBRepository()
66  ),
67  $this->link_manager
68  )
69  ];
70  }
71 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS Exercise PermanentLink PermanentLinkManager $link_manager
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilTaskService $task_service, ilAccess $access=null, ilLanguage $lng=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Task service.