|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* For licensing terms, see /license.txt */ |
|
4
|
|
|
|
|
5
|
|
|
namespace Chamilo\PluginBundle\Entity\XApi; |
|
6
|
|
|
|
|
7
|
|
|
use Chamilo\UserBundle\Entity\User; |
|
8
|
|
|
use DateTime; |
|
9
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
10
|
|
|
|
|
11
|
|
|
/** |
|
12
|
|
|
* @ORM\Table(name="xapi_internal_log") |
|
13
|
|
|
* @ORM\Entity() |
|
14
|
|
|
*/ |
|
15
|
|
|
class InternalLog |
|
16
|
|
|
{ |
|
17
|
|
|
/** |
|
18
|
|
|
* @var int |
|
19
|
|
|
* |
|
20
|
|
|
* @ORM\Column(name="id", type="integer") |
|
21
|
|
|
* @ORM\Id() |
|
22
|
|
|
* @ORM\GeneratedValue() |
|
23
|
|
|
*/ |
|
24
|
|
|
private $id; |
|
25
|
|
|
/** |
|
26
|
|
|
* @ORM\ManyToOne(targetEntity="Chamilo\UserBundle\Entity\User") |
|
27
|
|
|
* @ORM\JoinColumn(name="user_id", referencedColumnName="id") |
|
28
|
|
|
*/ |
|
29
|
|
|
private $user; |
|
30
|
|
|
/** |
|
31
|
|
|
* @var string |
|
32
|
|
|
* |
|
33
|
|
|
* @ORM\Column(name="statement_id", type="string") |
|
34
|
|
|
*/ |
|
35
|
|
|
private $statementId; |
|
36
|
|
|
/** |
|
37
|
|
|
* @var string |
|
38
|
|
|
* |
|
39
|
|
|
* @ORM\Column(name="verb", type="string") |
|
40
|
|
|
*/ |
|
41
|
|
|
private $verb; |
|
42
|
|
|
/** |
|
43
|
|
|
* @var string |
|
44
|
|
|
* |
|
45
|
|
|
* @ORM\Column(name="object_id", type="string") |
|
46
|
|
|
*/ |
|
47
|
|
|
private $objectId; |
|
48
|
|
|
/** |
|
49
|
|
|
* @var string|null |
|
50
|
|
|
* |
|
51
|
|
|
* @ORM\Column(name="activity_name", type="string", nullable=true) |
|
52
|
|
|
*/ |
|
53
|
|
|
private $activityName; |
|
54
|
|
|
/** |
|
55
|
|
|
* @var string|null |
|
56
|
|
|
* |
|
57
|
|
|
* @ORM\Column(name="activity_description", type="string", nullable=true) |
|
58
|
|
|
*/ |
|
59
|
|
|
private $activityDescription; |
|
60
|
|
|
/** |
|
61
|
|
|
* @var float|null |
|
62
|
|
|
* |
|
63
|
|
|
* @ORM\Column(name="score_scaled", type="float", nullable=true) |
|
64
|
|
|
*/ |
|
65
|
|
|
private $scoreScaled; |
|
66
|
|
|
/** |
|
67
|
|
|
* @var float|null |
|
68
|
|
|
* |
|
69
|
|
|
* @ORM\Column(name="score_raw", type="float", nullable=true) |
|
70
|
|
|
*/ |
|
71
|
|
|
private $scoreRaw; |
|
72
|
|
|
/** |
|
73
|
|
|
* @var float|null |
|
74
|
|
|
* |
|
75
|
|
|
* @ORM\Column(name="score_min", type="float", nullable=true) |
|
76
|
|
|
*/ |
|
77
|
|
|
private $scoreMin; |
|
78
|
|
|
/** |
|
79
|
|
|
* @var float|null |
|
80
|
|
|
* |
|
81
|
|
|
* @ORM\Column(name="score_max", type="float", nullable=true) |
|
82
|
|
|
*/ |
|
83
|
|
|
private $scoreMax; |
|
84
|
|
|
/** |
|
85
|
|
|
* @var DateTime|null |
|
86
|
|
|
* |
|
87
|
|
|
* @ORM\Column(name="created_at", type="datetime", nullable=true) |
|
88
|
|
|
*/ |
|
89
|
|
|
private $createdAt; |
|
90
|
|
|
|
|
91
|
|
|
public function getId(): int |
|
92
|
|
|
{ |
|
93
|
|
|
return $this->id; |
|
94
|
|
|
} |
|
95
|
|
|
|
|
96
|
|
|
public function getUser(): User |
|
97
|
|
|
{ |
|
98
|
|
|
return $this->user; |
|
99
|
|
|
} |
|
100
|
|
|
|
|
101
|
|
|
public function setUser(User $user): InternalLog |
|
102
|
|
|
{ |
|
103
|
|
|
$this->user = $user; |
|
104
|
|
|
|
|
105
|
|
|
return $this; |
|
106
|
|
|
} |
|
107
|
|
|
|
|
108
|
|
|
public function getStatementId(): string |
|
109
|
|
|
{ |
|
110
|
|
|
return $this->statementId; |
|
111
|
|
|
} |
|
112
|
|
|
|
|
113
|
|
|
public function setStatementId(string $statementId): InternalLog |
|
114
|
|
|
{ |
|
115
|
|
|
$this->statementId = $statementId; |
|
116
|
|
|
|
|
117
|
|
|
return $this; |
|
118
|
|
|
} |
|
119
|
|
|
|
|
120
|
|
|
public function getVerb(): string |
|
121
|
|
|
{ |
|
122
|
|
|
return $this->verb; |
|
123
|
|
|
} |
|
124
|
|
|
|
|
125
|
|
|
public function setVerb(string $verb): InternalLog |
|
126
|
|
|
{ |
|
127
|
|
|
$this->verb = $verb; |
|
128
|
|
|
|
|
129
|
|
|
return $this; |
|
130
|
|
|
} |
|
131
|
|
|
|
|
132
|
|
|
public function getObjectId(): string |
|
133
|
|
|
{ |
|
134
|
|
|
return $this->objectId; |
|
135
|
|
|
} |
|
136
|
|
|
|
|
137
|
|
|
public function setObjectId(string $objectId): InternalLog |
|
138
|
|
|
{ |
|
139
|
|
|
$this->objectId = $objectId; |
|
140
|
|
|
|
|
141
|
|
|
return $this; |
|
142
|
|
|
} |
|
143
|
|
|
|
|
144
|
|
|
public function getActivityName(): ?string |
|
145
|
|
|
{ |
|
146
|
|
|
return $this->activityName; |
|
147
|
|
|
} |
|
148
|
|
|
|
|
149
|
|
|
public function setActivityName(?string $activityName): InternalLog |
|
150
|
|
|
{ |
|
151
|
|
|
$this->activityName = $activityName; |
|
152
|
|
|
|
|
153
|
|
|
return $this; |
|
154
|
|
|
} |
|
155
|
|
|
|
|
156
|
|
|
public function getActivityDescription(): ?string |
|
157
|
|
|
{ |
|
158
|
|
|
return $this->activityDescription; |
|
159
|
|
|
} |
|
160
|
|
|
|
|
161
|
|
|
public function setActivityDescription(?string $activityDescription): InternalLog |
|
162
|
|
|
{ |
|
163
|
|
|
$this->activityDescription = $activityDescription; |
|
164
|
|
|
|
|
165
|
|
|
return $this; |
|
166
|
|
|
} |
|
167
|
|
|
|
|
168
|
|
|
public function getScoreScaled(): ?float |
|
169
|
|
|
{ |
|
170
|
|
|
return $this->scoreScaled; |
|
171
|
|
|
} |
|
172
|
|
|
|
|
173
|
|
|
public function setScoreScaled(?float $scoreScaled): InternalLog |
|
174
|
|
|
{ |
|
175
|
|
|
$this->scoreScaled = $scoreScaled; |
|
176
|
|
|
|
|
177
|
|
|
return $this; |
|
178
|
|
|
} |
|
179
|
|
|
|
|
180
|
|
|
public function getScoreRaw(): ?float |
|
181
|
|
|
{ |
|
182
|
|
|
return $this->scoreRaw; |
|
183
|
|
|
} |
|
184
|
|
|
|
|
185
|
|
|
public function setScoreRaw(?float $scoreRaw): InternalLog |
|
186
|
|
|
{ |
|
187
|
|
|
$this->scoreRaw = $scoreRaw; |
|
188
|
|
|
|
|
189
|
|
|
return $this; |
|
190
|
|
|
} |
|
191
|
|
|
|
|
192
|
|
|
public function getScoreMin(): ?float |
|
193
|
|
|
{ |
|
194
|
|
|
return $this->scoreMin; |
|
195
|
|
|
} |
|
196
|
|
|
|
|
197
|
|
|
public function setScoreMin(?float $scoreMin): InternalLog |
|
198
|
|
|
{ |
|
199
|
|
|
$this->scoreMin = $scoreMin; |
|
200
|
|
|
|
|
201
|
|
|
return $this; |
|
202
|
|
|
} |
|
203
|
|
|
|
|
204
|
|
|
public function getScoreMax(): ?float |
|
205
|
|
|
{ |
|
206
|
|
|
return $this->scoreMax; |
|
207
|
|
|
} |
|
208
|
|
|
|
|
209
|
|
|
public function setScoreMax(?float $scoreMax): InternalLog |
|
210
|
|
|
{ |
|
211
|
|
|
$this->scoreMax = $scoreMax; |
|
212
|
|
|
|
|
213
|
|
|
return $this; |
|
214
|
|
|
} |
|
215
|
|
|
|
|
216
|
|
|
public function getCreatedAt(): ?DateTime |
|
217
|
|
|
{ |
|
218
|
|
|
return $this->createdAt; |
|
219
|
|
|
} |
|
220
|
|
|
|
|
221
|
|
|
public function setCreatedAt(?DateTime $createdAt): InternalLog |
|
222
|
|
|
{ |
|
223
|
|
|
$this->createdAt = $createdAt; |
|
224
|
|
|
|
|
225
|
|
|
return $this; |
|
226
|
|
|
} |
|
227
|
|
|
} |
|
228
|
|
|
|