ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilDerivedTaskFactory Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilDerivedTaskFactory:

Public Member Functions

 __construct (ilTaskService $service)
 Constructor. More...
 
 task (string $title, int $ref_id, int $deadline, int $starting_time, int $wsp_id=0)
 Subservice for derived tasks. More...
 
 collector ()
 Entry collector. More...
 
 getAllProviders (bool $active_only=false, int $user_id=null)
 Get all task providers. More...
 

Protected Attributes

ilTaskServiceDependencies $_deps
 
ilTaskService $service
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Factory for derived task subservice

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 24 of file class.ilDerivedTaskFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ilDerivedTaskFactory::__construct ( ilTaskService  $service)

Constructor.

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

References $service, and ilTaskService\getDependencies().

34  {
35  $this->_deps = $service->getDependencies();
36  $this->service = $service;
37  }
getDependencies()
Get dependencies.
+ Here is the call graph for this function:

Member Function Documentation

◆ collector()

ilDerivedTaskFactory::collector ( )

Entry collector.

Definition at line 50 of file class.ilDerivedTaskFactory.php.

51  {
52  return new ilDerivedTaskCollector($this->service);
53  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ getAllProviders()

ilDerivedTaskFactory::getAllProviders ( bool  $active_only = false,
int  $user_id = null 
)

Get all task providers.

Parameters
bool$active_onlyget only active providers
int | null$user_idget instances for user with user id
Returns
ilLearningHistoryProviderInterface[]

Definition at line 62 of file class.ilDerivedTaskFactory.php.

62  : array
63  {
64  $master_factory = $this->service->getDependencies()->getDerivedTaskProviderMasterFactory();
65  return $master_factory->getAllProviders($active_only, $user_id);
66  }

◆ task()

ilDerivedTaskFactory::task ( string  $title,
int  $ref_id,
int  $deadline,
int  $starting_time,
int  $wsp_id = 0 
)

Subservice for derived tasks.

Definition at line 42 of file class.ilDerivedTaskFactory.php.

43  {
44  return new ilDerivedTask($title, $ref_id, $deadline, $starting_time, $wsp_id);
45  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$ref_id
Definition: ltiauth.php:67

Field Documentation

◆ $_deps

ilTaskServiceDependencies ilDerivedTaskFactory::$_deps
protected

Definition at line 26 of file class.ilDerivedTaskFactory.php.

◆ $service

ilTaskService ilDerivedTaskFactory::$service
protected

Definition at line 28 of file class.ilDerivedTaskFactory.php.

Referenced by __construct().


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