ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilDummyDerivedTaskProvider.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
11{
15 protected $task_service;
16
21 {
22 $this->task_service = $task_service;
23 }
24
28 public function isActive() : bool
29 {
30 return true;
31 }
32
36 public function getTasks(int $user_id) : array
37 {
38 $tasks = [];
39
40 $tasks[] = $this->task_service->derived()->factory()->task(
41 "title",
42 123,
43 1234,
44 1000
45 );
46
47 return $tasks;
48 }
49}
An exception for terminatinating execution or to throw for unit testing.
__construct(ilTaskService $task_service)
Constructor.
getTasks(int $user_id)
Get providers.ilDerivedTask[]