ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilLearningSequenceActivation.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
11{
15 protected $ref_id;
16
20 protected $online;
21
26
31
35 protected $activation_end;
36
37
38 public function __construct(
39 int $ref_id,
40 bool $online = false,
41 bool $effective_online = false,
42 \DateTime $activation_start = null,
43 \DateTime $activation_end = null
44 ) {
45 $this->ref_id = $ref_id;
46 $this->online = $online;
47 $this->effective_online = $effective_online;
48 $this->activation_start = $activation_start;
49 $this->activation_end = $activation_end;
50 }
51
52 public function getRefId() : int
53 {
54 return $this->ref_id;
55 }
56
57 public function getIsOnline() : bool
58 {
59 return $this->online;
60 }
61
63 {
64 $clone = clone $this;
65 $clone->online = $online;
66 return $clone;
67 }
68
69 public function getEffectiveOnlineStatus() : bool
70 {
72 }
73
77 public function getActivationStart()
78 {
80 }
81
83 {
84 $clone = clone $this;
85 $clone->activation_start = $activation_start;
86 return $clone;
87 }
88
92 public function getActivationEnd()
93 {
95 }
96
98 {
99 $clone = clone $this;
100 $clone->activation_end = $activation_end;
101 return $clone;
102 }
103}
An exception for terminatinating execution or to throw for unit testing.
__construct(int $ref_id, bool $online=false, bool $effective_online=false, \DateTime $activation_start=null, \DateTime $activation_end=null)
withActivationEnd(\DateTime $activation_end=null)
withActivationStart(\DateTime $activation_start=null)