ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilLearningSequenceActivation.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
11 {
15  protected $ref_id;
16 
20  protected $online;
21 
25  protected $effective_online;
26 
30  protected $activation_start;
31 
35  protected $activation_end;
36 
37 
38  public function __construct(
39  int $ref_id,
40  bool $online = false,
41  bool $effective_online = false,
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  {
94  return $this->activation_end;
95  }
96 
98  {
99  $clone = clone $this;
100  $clone->activation_end = $activation_end;
101  return $clone;
102  }
103 }
__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)