ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.DerivedTaskProviderFactory.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5namespace ILIAS\Survey\Tasks;
6
13{
17 protected $task_service;
18
22 protected $access;
23
27 protected $lng;
28
33 {
34 global $DIC;
35
36 $this->access = is_null($access)
37 ? $DIC->access()
38 : $access;
39
40 $this->lng = is_null($lng)
41 ? $DIC->language()
42 : $lng;
43
44 $this->task_service = $task_service;
45 }
46
50 public function getProviders() : array
51 {
52 return [
54 $this->task_service,
55 $this->access,
56 $this->lng
57 )
58 ];
59 }
60}
An exception for terminatinating execution or to throw for unit testing.
__construct(\ilTaskService $task_service, \ilAccess $access=null, \ilLanguage $lng=null)
Constructor.
Class ilAccessHandler.
language handling
$DIC
Definition: xapitoken.php:46