ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilForumDerivedTaskProviderFactory Class Reference

Class ilForumDerivedTaskProviderFactory. More...

+ Inheritance diagram for ilForumDerivedTaskProviderFactory:
+ Collaboration diagram for ilForumDerivedTaskProviderFactory:

Public Member Functions

 __construct (\ilTaskService $taskService, \ilAccess $accessHandler=null, \ilSetting $settings=null, \ilLanguage $lng=null, \ilCtrl $ctrl=null)
 ilForumDerivedTaskProviderFactory constructor. More...
 
 getProviders ()
 Get providers.
Returns
ilDerivedTaskProvider[]
More...
 

Protected Attributes

 $taskService
 
 $accessHandler
 
 $settings
 
 $lng
 
 $ctrl
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilForumDerivedTaskProviderFactory::__construct ( \ilTaskService  $taskService,
\ilAccess  $accessHandler = null,
\ilSetting  $settings = null,
\ilLanguage  $lng = null,
\ilCtrl  $ctrl = null 
)

ilForumDerivedTaskProviderFactory constructor.

Parameters
\ilTaskService$taskService
\ilAccess | null$accessHandler
\ilSetting | null$settings
\ilLanguage | null$lng
ilCtrl | null$ctrl

Definition at line 33 of file class.ilForumDerivedTaskProviderFactory.php.

References $accessHandler, $ctrl, $DIC, $lng, $settings, $taskService, and settings().

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  }
settings()
Definition: settings.php:2
$DIC
Definition: xapitoken.php:46
+ Here is the call graph for this function:

Member Function Documentation

◆ getProviders()

ilForumDerivedTaskProviderFactory::getProviders ( )

Get providers.

Returns
ilDerivedTaskProvider[]

Implements ilDerivedTaskProviderFactory.

Definition at line 63 of file class.ilForumDerivedTaskProviderFactory.php.

References settings().

63  : 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  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

Field Documentation

◆ $accessHandler

ilForumDerivedTaskProviderFactory::$accessHandler
protected

Definition at line 14 of file class.ilForumDerivedTaskProviderFactory.php.

Referenced by __construct().

◆ $ctrl

ilForumDerivedTaskProviderFactory::$ctrl
protected

Definition at line 23 of file class.ilForumDerivedTaskProviderFactory.php.

Referenced by __construct().

◆ $lng

ilForumDerivedTaskProviderFactory::$lng
protected

Definition at line 20 of file class.ilForumDerivedTaskProviderFactory.php.

Referenced by __construct().

◆ $settings

ilForumDerivedTaskProviderFactory::$settings
protected

Definition at line 17 of file class.ilForumDerivedTaskProviderFactory.php.

Referenced by __construct().

◆ $taskService

ilForumDerivedTaskProviderFactory::$taskService
protected

Definition at line 11 of file class.ilForumDerivedTaskProviderFactory.php.

Referenced by __construct().


The documentation for this class was generated from the following file: