ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilDerivedTaskFactory.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
12 {
16  protected $_deps;
17 
21  protected $service;
22 
29  {
30  $this->_deps = $service->getDependencies();
31  $this->service = $service;
32  }
33 
44  public function task(string $title, int $ref_id, int $deadline, int $starting_time, int $wsp_id = 0) : ilDerivedTask
45  {
46  return new ilDerivedTask($title, $ref_id, $deadline, $starting_time, $wsp_id);
47  }
48 
55  public function collector()
56  {
57  return new ilDerivedTaskCollector($this->service);
58  }
59 
67  public function getAllProviders($active_only = false, $user_id = null)
68  {
69  $master_factory = $this->service->getDependencies()->getDerivedTaskProviderMasterFactory();
70  return $master_factory->getAllProviders($active_only, $user_id);
71  }
72 }
Derived task data object.
getDependencies()
Get dependencies.
task(string $title, int $ref_id, int $deadline, int $starting_time, int $wsp_id=0)
Subservice for derived tasks.
__construct(ilTaskService $service)
Constructor.
Factory for derived task subservice.
getAllProviders($active_only=false, $user_id=null)
Get all task providers.
Task service.