1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
/* For licensing terms, see /license.txt */ |
6
|
|
|
|
7
|
|
|
namespace Chamilo\CoreBundle\Entity; |
8
|
|
|
|
9
|
|
|
use DateTime; |
10
|
|
|
use Doctrine\ORM\Mapping as ORM; |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* TrackELinks. |
14
|
|
|
* |
15
|
|
|
* @ORM\Table(name="track_e_links", indexes={ |
16
|
|
|
* @ORM\Index(name="idx_tel_c_id", columns={"c_id"}), |
17
|
|
|
* @ORM\Index(name="idx_tel_user_id", columns={"links_user_id"}), |
18
|
|
|
* @ORM\Index(name="session_id", columns={"session_id"}) |
19
|
|
|
* }) |
20
|
|
|
* @ORM\Entity |
21
|
|
|
*/ |
22
|
|
|
class TrackELinks |
23
|
|
|
{ |
24
|
|
|
/** |
25
|
|
|
* @ORM\Column(name="links_user_id", type="integer", nullable=true) |
26
|
|
|
*/ |
27
|
|
|
protected ?int $linksUserId = null; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @ORM\Column(name="links_date", type="datetime", nullable=false) |
31
|
|
|
*/ |
32
|
|
|
protected DateTime $linksDate; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @ORM\Column(name="c_id", type="integer", nullable=false) |
36
|
|
|
*/ |
37
|
|
|
protected int $cId; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @ORM\Column(name="links_link_id", type="integer", nullable=false) |
41
|
|
|
*/ |
42
|
|
|
protected int $linksLinkId; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @ORM\Column(name="session_id", type="integer", nullable=false) |
46
|
|
|
*/ |
47
|
|
|
protected int $sessionId; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @ORM\Column(name="links_id", type="integer") |
51
|
|
|
* @ORM\Id |
52
|
|
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
53
|
|
|
*/ |
54
|
|
|
protected int $linksId; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* Set linksUserId. |
58
|
|
|
* |
59
|
|
|
* @return TrackELinks |
60
|
|
|
*/ |
61
|
|
|
public function setLinksUserId(int $linksUserId) |
62
|
|
|
{ |
63
|
|
|
$this->linksUserId = $linksUserId; |
64
|
|
|
|
65
|
|
|
return $this; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* Get linksUserId. |
70
|
|
|
* |
71
|
|
|
* @return int |
72
|
|
|
*/ |
73
|
|
|
public function getLinksUserId() |
74
|
|
|
{ |
75
|
|
|
return $this->linksUserId; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* Set linksDate. |
80
|
|
|
* |
81
|
|
|
* @return TrackELinks |
82
|
|
|
*/ |
83
|
|
|
public function setLinksDate(DateTime $linksDate) |
84
|
|
|
{ |
85
|
|
|
$this->linksDate = $linksDate; |
86
|
|
|
|
87
|
|
|
return $this; |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* Get linksDate. |
92
|
|
|
* |
93
|
|
|
* @return DateTime |
94
|
|
|
*/ |
95
|
|
|
public function getLinksDate() |
96
|
|
|
{ |
97
|
|
|
return $this->linksDate; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* Set cId. |
102
|
|
|
* |
103
|
|
|
* @return TrackELinks |
104
|
|
|
*/ |
105
|
|
|
public function setCId(int $cId) |
106
|
|
|
{ |
107
|
|
|
$this->cId = $cId; |
108
|
|
|
|
109
|
|
|
return $this; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* Get cId. |
114
|
|
|
* |
115
|
|
|
* @return int |
116
|
|
|
*/ |
117
|
|
|
public function getCId() |
118
|
|
|
{ |
119
|
|
|
return $this->cId; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
/** |
123
|
|
|
* Set linksLinkId. |
124
|
|
|
* |
125
|
|
|
* @return TrackELinks |
126
|
|
|
*/ |
127
|
|
|
public function setLinksLinkId(int $linksLinkId) |
128
|
|
|
{ |
129
|
|
|
$this->linksLinkId = $linksLinkId; |
130
|
|
|
|
131
|
|
|
return $this; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
/** |
135
|
|
|
* Get linksLinkId. |
136
|
|
|
* |
137
|
|
|
* @return int |
138
|
|
|
*/ |
139
|
|
|
public function getLinksLinkId() |
140
|
|
|
{ |
141
|
|
|
return $this->linksLinkId; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
/** |
145
|
|
|
* Set sessionId. |
146
|
|
|
* |
147
|
|
|
* @return TrackELinks |
148
|
|
|
*/ |
149
|
|
|
public function setSessionId(int $sessionId) |
150
|
|
|
{ |
151
|
|
|
$this->sessionId = $sessionId; |
152
|
|
|
|
153
|
|
|
return $this; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
/** |
157
|
|
|
* Get sessionId. |
158
|
|
|
* |
159
|
|
|
* @return int |
160
|
|
|
*/ |
161
|
|
|
public function getSessionId() |
162
|
|
|
{ |
163
|
|
|
return $this->sessionId; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* Get linksId. |
168
|
|
|
* |
169
|
|
|
* @return int |
170
|
|
|
*/ |
171
|
|
|
public function getLinksId() |
172
|
|
|
{ |
173
|
|
|
return $this->linksId; |
174
|
|
|
} |
175
|
|
|
} |
176
|
|
|
|