ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilBlogDerivedTaskProviderFactory.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 $lng;
18
25 public function __construct(
28 \ilLanguage $lng = null
29 ) {
30 global $DIC;
31
32 $this->taskService = $taskService;
33
34 $this->accessHandler = is_null($accessHandler)
35 ? $DIC->access()
37
38 $this->lng = is_null($lng)
39 ? $DIC->language()
40 : $lng;
41 }
42
46 public function getProviders() : array
47 {
48 return [
50 $this->taskService,
51 $this->accessHandler,
52 $this->lng
53 )
54 ];
55 }
56}
An exception for terminatinating execution or to throw for unit testing.
Class ilAccessHandler.
Class ilBlogDerivedTaskProviderFactory.
getProviders()
Get providers.ilDerivedTaskProvider[]
__construct(ilTaskService $taskService, \ilAccess $accessHandler=null, \ilLanguage $lng=null)
ilBlogDerivedTaskProviderFactory constructor.
Class ilBlogDraftsDerivedTaskProvider.
language handling
$DIC
Definition: xapitoken.php:46