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
|
|
|
* TrackEUploads. |
14
|
|
|
* |
15
|
|
|
* @ORM\Table( |
16
|
|
|
* name="track_e_uploads", |
17
|
|
|
* indexes={ |
18
|
|
|
* @ORM\Index(name="course", columns={"c_id"}), |
19
|
|
|
* @ORM\Index(name="upload_user_id", columns={"upload_user_id"}), |
20
|
|
|
* @ORM\Index(name="session_id", columns={"session_id"}) |
21
|
|
|
* } |
22
|
|
|
* ) |
23
|
|
|
* @ORM\Entity |
24
|
|
|
*/ |
25
|
|
|
class TrackEUploads |
26
|
|
|
{ |
27
|
|
|
/** |
28
|
|
|
* @ORM\Column(name="upload_id", type="integer") |
29
|
|
|
* @ORM\Id |
30
|
|
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
31
|
|
|
*/ |
32
|
|
|
protected int $uploadId; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @ORM\Column(name="upload_user_id", type="integer", nullable=true) |
36
|
|
|
*/ |
37
|
|
|
protected ?int $uploadUserId = null; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @ORM\Column(name="upload_date", type="datetime", nullable=false) |
41
|
|
|
*/ |
42
|
|
|
protected DateTime $uploadDate; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @ORM\Column(name="c_id", type="integer", nullable=true) |
46
|
|
|
*/ |
47
|
|
|
protected ?int $cId = null; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @ORM\Column(name="upload_work_id", type="integer", nullable=false) |
51
|
|
|
*/ |
52
|
|
|
protected int $uploadWorkId; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @ORM\Column(name="session_id", type="integer", nullable=false) |
56
|
|
|
*/ |
57
|
|
|
protected int $sessionId; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* Set uploadUserId. |
61
|
|
|
* |
62
|
|
|
* @return TrackEUploads |
63
|
|
|
*/ |
64
|
|
|
public function setUploadUserId(int $uploadUserId) |
65
|
|
|
{ |
66
|
|
|
$this->uploadUserId = $uploadUserId; |
67
|
|
|
|
68
|
|
|
return $this; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* Get uploadUserId. |
73
|
|
|
* |
74
|
|
|
* @return int |
75
|
|
|
*/ |
76
|
|
|
public function getUploadUserId() |
77
|
|
|
{ |
78
|
|
|
return $this->uploadUserId; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* Set uploadDate. |
83
|
|
|
* |
84
|
|
|
* @return TrackEUploads |
85
|
|
|
*/ |
86
|
|
|
public function setUploadDate(DateTime $uploadDate) |
87
|
|
|
{ |
88
|
|
|
$this->uploadDate = $uploadDate; |
89
|
|
|
|
90
|
|
|
return $this; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* Get uploadDate. |
95
|
|
|
* |
96
|
|
|
* @return DateTime |
97
|
|
|
*/ |
98
|
|
|
public function getUploadDate() |
99
|
|
|
{ |
100
|
|
|
return $this->uploadDate; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* Set cId. |
105
|
|
|
* |
106
|
|
|
* @return TrackEUploads |
107
|
|
|
*/ |
108
|
|
|
public function setCId(int $cId) |
109
|
|
|
{ |
110
|
|
|
$this->cId = $cId; |
111
|
|
|
|
112
|
|
|
return $this; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* Get cId. |
117
|
|
|
* |
118
|
|
|
* @return int |
119
|
|
|
*/ |
120
|
|
|
public function getCId() |
121
|
|
|
{ |
122
|
|
|
return $this->cId; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* Set uploadWorkId. |
127
|
|
|
* |
128
|
|
|
* @return TrackEUploads |
129
|
|
|
*/ |
130
|
|
|
public function setUploadWorkId(int $uploadWorkId) |
131
|
|
|
{ |
132
|
|
|
$this->uploadWorkId = $uploadWorkId; |
133
|
|
|
|
134
|
|
|
return $this; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* Get uploadWorkId. |
139
|
|
|
* |
140
|
|
|
* @return int |
141
|
|
|
*/ |
142
|
|
|
public function getUploadWorkId() |
143
|
|
|
{ |
144
|
|
|
return $this->uploadWorkId; |
145
|
|
|
} |
146
|
|
|
|
147
|
|
|
/** |
148
|
|
|
* Set sessionId. |
149
|
|
|
* |
150
|
|
|
* @return TrackEUploads |
151
|
|
|
*/ |
152
|
|
|
public function setSessionId(int $sessionId) |
153
|
|
|
{ |
154
|
|
|
$this->sessionId = $sessionId; |
155
|
|
|
|
156
|
|
|
return $this; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* Get sessionId. |
161
|
|
|
* |
162
|
|
|
* @return int |
163
|
|
|
*/ |
164
|
|
|
public function getSessionId() |
165
|
|
|
{ |
166
|
|
|
return $this->sessionId; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* Get uploadId. |
171
|
|
|
* |
172
|
|
|
* @return int |
173
|
|
|
*/ |
174
|
|
|
public function getUploadId() |
175
|
|
|
{ |
176
|
|
|
return $this->uploadId; |
177
|
|
|
} |
178
|
|
|
} |
179
|
|
|
|