ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilExerciseDerivedTaskProviderFactory.php
Go to the documentation of this file.
1<?php
2
25{
26 protected \ILIAS\Exercise\InternalRepoService $repo;
27 protected \ILIAS\Exercise\PermanentLink\PermanentLinkManager $link_manager;
29 protected ilAccess $access;
30 protected ilLanguage $lng;
31
32 public function __construct(
34 ?ilAccess $access = null,
35 ?ilLanguage $lng = null
36 ) {
37 global $DIC;
38
39 $this->access = is_null($access)
40 ? $DIC->access()
41 : $access;
42
43 $this->lng = is_null($lng)
44 ? $DIC->language()
45 : $lng;
46
47 $this->link_manager = $DIC->exercise()->internal()->gui()->permanentLink();
48 $this->repo = $DIC->exercise()->internal()->repo();
49 $this->task_service = $task_service;
50 }
51
55 public function getProviders(): array
56 {
57 return [
59 $this->task_service,
60 $this->access,
61 $this->lng,
66 $this->repo->submission()
67 ),
68 $this->link_manager
69 )
70 ];
71 }
72}
Class ilAccessHandler Checks access for ILIAS objects.
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...
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...
ILIAS Exercise PermanentLink PermanentLinkManager $link_manager
__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...
language handling
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:26