ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilForumDerivedTaskProviderFactory.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9{
11 protected $taskService;
12
14 protected $accessHandler;
15
17 protected $settings;
18
20 protected $lng;
21
23 protected $ctrl;
24
33 public function __construct(
36 \ilSetting $settings = null,
37 \ilLanguage $lng = null,
38 \ilCtrl $ctrl = null
39 ) {
40 global $DIC;
41
42 $this->taskService = $taskService;
43 $this->accessHandler = is_null($accessHandler)
44 ? $DIC->access()
46
47 $this->settings = is_null($settings)
48 ? $DIC->settings()
49 : $settings;
50
51 $this->lng = is_null($lng)
52 ? $DIC->language()
53 : $lng;
54
55 $this->ctrl = is_null($ctrl)
56 ? $DIC->ctrl()
57 : $ctrl;
58 }
59
63 public function getProviders() : array
64 {
65 return [
66 new \ilForumDraftsDerivedTaskProvider(
67 $this->taskService,
68 $this->accessHandler,
69 $this->lng,
70 $this->settings,
71 $this->ctrl
72 )
73 ];
74 }
75}
An exception for terminatinating execution or to throw for unit testing.
Class ilAccessHandler.
This class provides processing control methods.
Class ilForumDerivedTaskProviderFactory.
getProviders()
Get providers.ilDerivedTaskProvider[]
__construct(\ilTaskService $taskService, \ilAccess $accessHandler=null, \ilSetting $settings=null, \ilLanguage $lng=null, \ilCtrl $ctrl=null)
ilForumDerivedTaskProviderFactory constructor.
language handling
ILIAS Setting Class.
settings()
Definition: settings.php:2
$DIC
Definition: xapitoken.php:46