ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilForumDerivedTaskProviderFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
29 protected ilLanguage $lng;
31
32 public function __construct(
33 protected ilTaskService $taskService,
35 ?ilSetting $settings = null,
36 ?ilLanguage $lng = null,
38 ) {
39 global $DIC;
40 $this->accessHandler = is_null($accessHandler)
41 ? $DIC->access()
43
44 $this->settings = is_null($settings)
45 ? $DIC->settings()
46 : $settings;
47
48 $this->lng = is_null($lng)
49 ? $DIC->language()
50 : $lng;
51
52 $this->ctrl = is_null($ctrl)
53 ? $DIC->ctrl()
54 : $ctrl;
55 }
56
57 public function getProviders(): array
58 {
59 return [
61 $this->taskService,
62 $this->accessHandler,
63 $this->lng,
64 $this->settings,
65 $this->ctrl
66 )
67 ];
68 }
69}
__construct(protected ilTaskService $taskService, ?ilAccessHandler $accessHandler=null, ?ilSetting $settings=null, ?ilLanguage $lng=null, ?ilCtrlInterface $ctrl=null)
language handling
ILIAS Setting Class.
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...
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...
global $DIC
Definition: shib_login.php:26