ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilDerivedTask.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 $title;
17 
21  protected $ref_id;
22 
26  protected $deadline;
27 
31  protected $starting_time;
32 
36  protected $wsp_id;
37 
39  protected $url = '';
40 
49  public function __construct(string $title, int $ref_id, int $deadline, int $starting_time, int $wsp_id)
50  {
51  $this->title = $title;
52  $this->ref_id = $ref_id;
53  $this->deadline = $deadline;
54  $this->starting_time = $starting_time;
55  $this->wsp_id = $wsp_id;
56  }
57 
63  public function getRefId()
64  {
65  return $this->ref_id;
66  }
67 
73  public function getWspId()
74  {
75  return $this->wsp_id;
76  }
77 
81  public function getDeadline()
82  {
83  return $this->deadline;
84  }
85 
89  public function getStartingTime()
90  {
91  return $this->starting_time;
92  }
93 
97  public function getTitle()
98  {
99  return $this->title;
100  }
101 
106  public function withUrl(string $url) : self
107  {
108  $clone = clone $this;
109  $clone->url = $url;
110 
111  return $clone;
112  }
113 
117  public function getUrl() : string
118  {
119  return $this->url;
120  }
121 }
Derived task data object.
getWspId()
Get wsp id.
getRefId()
Get ref id.
withUrl(string $url)
__construct(string $title, int $ref_id, int $deadline, int $starting_time, int $wsp_id)
Constructor.