ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDerivedTaskFactory.php
Go to the documentation of this file.
1<?php
2
25{
27
29
34 {
35 $this->_deps = $service->getDependencies();
36 $this->service = $service;
37 }
38
42 public function task(string $title, int $ref_id, int $deadline, int $starting_time, int $wsp_id = 0): ilDerivedTask
43 {
44 return new ilDerivedTask($title, $ref_id, $deadline, $starting_time, $wsp_id);
45 }
46
51 {
52 return new ilDerivedTaskCollector($this->service);
53 }
54
62 public function getAllProviders(bool $active_only = false, ?int $user_id = null): array
63 {
64 $master_factory = $this->service->getDependencies()->getDerivedTaskProviderMasterFactory();
65 return $master_factory->getAllProviders($active_only, $user_id);
66 }
67}
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...
task(string $title, int $ref_id, int $deadline, int $starting_time, int $wsp_id=0)
Subservice for derived tasks.
__construct(ilTaskService $service)
Constructor.
ilTaskServiceDependencies $_deps
getAllProviders(bool $active_only=false, ?int $user_id=null)
Get all task providers.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getDependencies()
Get dependencies.
$ref_id
Definition: ltiauth.php:66