ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilBlogDerivedTaskProviderFactory.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
26 {
28  protected \ilAccess $accessHandler;
29  protected \ilLanguage $lng;
30 
31  public function __construct(
32  ilTaskService $taskService,
33  \ilAccess $accessHandler = null,
34  \ilLanguage $lng = null
35  ) {
36  global $DIC;
37 
38  $this->taskService = $taskService;
39 
40  $this->accessHandler = is_null($accessHandler)
41  ? $DIC->access()
43 
44  $this->lng = is_null($lng)
45  ? $DIC->language()
46  : $lng;
47  }
48 
49  public function getProviders(): array
50  {
51  return [
53  $this->taskService,
54  $this->accessHandler,
55  $this->lng
56  )
57  ];
58  }
59 }
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...
global $DIC
Definition: feed.php:28
Task service.
__construct(ilTaskService $taskService, \ilAccess $accessHandler=null, \ilLanguage $lng=null)