TrackExercise.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. /**
  6. * TrackExercise
  7. *
  8. * @ORM\Table(name="track_e_exercices")
  9. * @ORM\Entity(repositoryClass="Entity\Repository\TrackExerciseRepository")
  10. */
  11. class TrackExercise
  12. {
  13. /**
  14. * @var integer
  15. *
  16. * @ORM\Column(name="exe_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="IDENTITY")
  19. */
  20. private $exeId;
  21. /**
  22. * @var integer
  23. *
  24. * @ORM\Column(name="exe_user_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  25. */
  26. private $exeUserId;
  27. /**
  28. * @var \DateTime
  29. *
  30. * @ORM\Column(name="exe_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  31. */
  32. private $exeDate;
  33. /**
  34. * @var integer
  35. *
  36. * @ORM\Column(name="exe_exo_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  37. */
  38. private $exeExoId;
  39. /**
  40. * @var float
  41. *
  42. * @ORM\Column(name="exe_result", type="float", precision=0, scale=0, nullable=false, unique=false)
  43. */
  44. private $exeResult;
  45. /**
  46. * @var float
  47. *
  48. * @ORM\Column(name="exe_weighting", type="float", precision=0, scale=0, nullable=false, unique=false)
  49. */
  50. private $exeWeighting;
  51. /**
  52. * @var integer
  53. *
  54. * @ORM\Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  55. */
  56. private $cId;
  57. /**
  58. * @var string
  59. *
  60. * @ORM\Column(name="status", type="string", length=20, precision=0, scale=0, nullable=false, unique=false)
  61. */
  62. private $status;
  63. /**
  64. * @var string
  65. *
  66. * @ORM\Column(name="data_tracking", type="text", precision=0, scale=0, nullable=false, unique=false)
  67. */
  68. private $dataTracking;
  69. /**
  70. * @var \DateTime
  71. *
  72. * @ORM\Column(name="start_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  73. */
  74. private $startDate;
  75. /**
  76. * @var integer
  77. *
  78. * @ORM\Column(name="steps_counter", type="smallint", precision=0, scale=0, nullable=false, unique=false)
  79. */
  80. private $stepsCounter;
  81. /**
  82. * @var integer
  83. *
  84. * @ORM\Column(name="session_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  85. */
  86. private $sessionId;
  87. /**
  88. * @var integer
  89. *
  90. * @ORM\Column(name="orig_lp_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  91. */
  92. private $origLpId;
  93. /**
  94. * @var integer
  95. *
  96. * @ORM\Column(name="orig_lp_item_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  97. */
  98. private $origLpItemId;
  99. /**
  100. * @var integer
  101. *
  102. * @ORM\Column(name="exe_duration", type="integer", precision=0, scale=0, nullable=false, unique=false)
  103. */
  104. private $exeDuration;
  105. /**
  106. * @var \DateTime
  107. *
  108. * @ORM\Column(name="expired_time_control", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  109. */
  110. private $expiredTimeControl;
  111. /**
  112. * @var integer
  113. *
  114. * @ORM\Column(name="orig_lp_item_view_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  115. */
  116. private $origLpItemViewId;
  117. /**
  118. * @var string
  119. *
  120. * @ORM\Column(name="questions_to_check", type="text", precision=0, scale=0, nullable=false, unique=false)
  121. */
  122. private $questionsToCheck;
  123. /**
  124. * @var float
  125. *
  126. * @ORM\Column(name="jury_score", type="float", precision=0, scale=0, nullable=false, unique=false)
  127. */
  128. private $juryScore;
  129. /**
  130. * @var integer
  131. *
  132. * @ORM\Column(name="jury_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  133. */
  134. private $juryId;
  135. /**
  136. * @var integer
  137. *
  138. * @ORM\Column(name="quiz_distribution_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  139. */
  140. private $quizDistributionId;
  141. /**
  142. * @ORM\ManyToOne(targetEntity="CQuiz")
  143. * @ORM\JoinColumn(name="exe_exo_id", referencedColumnName="iid")
  144. */
  145. private $exercise;
  146. /**
  147. * @ORM\ManyToOne(targetEntity="Jury")
  148. * @ORM\JoinColumn(name="exe_exo_id", referencedColumnName="exercise_id")
  149. */
  150. private $attempt;
  151. /**
  152. * @ORM\ManyToOne(targetEntity="User")
  153. * @ORM\JoinColumn(name="exe_user_id", referencedColumnName="user_id")
  154. */
  155. private $user;
  156. /**
  157. * @ORM\OneToMany(targetEntity="TrackExerciseAttemptJury", mappedBy="attempt")
  158. **/
  159. private $juryAttempts;
  160. /**
  161. * @ORM\ManyToOne(targetEntity="CQuizDistribution")
  162. * @ORM\JoinColumn(name="quiz_distribution_id", referencedColumnName="id")
  163. */
  164. private $distribution;
  165. /**
  166. * @ORM\OneToMany(targetEntity="TrackAttempt", mappedBy="attempt")
  167. **/
  168. private $questionAttempts;
  169. /**
  170. * @return ArrayCollection
  171. */
  172. public function getQuestionAttempts()
  173. {
  174. return $this->questionAttempts;
  175. }
  176. /**
  177. * @return \Entity\CQuizDistribution
  178. */
  179. public function getDistribution()
  180. {
  181. return $this->distribution;
  182. }
  183. public function getAttempt()
  184. {
  185. return $this->attempt;
  186. }
  187. public function getUser()
  188. {
  189. return $this->user;
  190. }
  191. public function getExercise()
  192. {
  193. return $this->exercise;
  194. }
  195. /**
  196. * @return mixed
  197. */
  198. public function getJuryAttempts()
  199. {
  200. return $this->juryAttempts;
  201. }
  202. /**
  203. * Get exeId
  204. *
  205. * @return integer
  206. */
  207. public function getExeId()
  208. {
  209. return $this->exeId;
  210. }
  211. /**
  212. * Set exeUserId
  213. *
  214. * @param integer $exeUserId
  215. * @return TrackExercise
  216. */
  217. public function setExeUserId($exeUserId)
  218. {
  219. $this->exeUserId = $exeUserId;
  220. return $this;
  221. }
  222. /**
  223. * Get exeUserId
  224. *
  225. * @return integer
  226. */
  227. public function getExeUserId()
  228. {
  229. return $this->exeUserId;
  230. }
  231. /**
  232. * Set exeDate
  233. *
  234. * @param \DateTime $exeDate
  235. * @return TrackExercise
  236. */
  237. public function setExeDate($exeDate)
  238. {
  239. $this->exeDate = $exeDate;
  240. return $this;
  241. }
  242. /**
  243. * Get exeDate
  244. *
  245. * @return \DateTime
  246. */
  247. public function getExeDate()
  248. {
  249. return $this->exeDate;
  250. }
  251. /**
  252. * Set exeExoId
  253. *
  254. * @param integer $exeExoId
  255. * @return TrackExercise
  256. */
  257. public function setExeExoId($exeExoId)
  258. {
  259. $this->exeExoId = $exeExoId;
  260. return $this;
  261. }
  262. /**
  263. * Get exeExoId
  264. *
  265. * @return integer
  266. */
  267. public function getExeExoId()
  268. {
  269. return $this->exeExoId;
  270. }
  271. /**
  272. * Set exeResult
  273. *
  274. * @param float $exeResult
  275. * @return TrackExercise
  276. */
  277. public function setExeResult($exeResult)
  278. {
  279. $this->exeResult = $exeResult;
  280. return $this;
  281. }
  282. /**
  283. * Get exeResult
  284. *
  285. * @return float
  286. */
  287. public function getExeResult()
  288. {
  289. return $this->exeResult;
  290. }
  291. /**
  292. * Set exeWeighting
  293. *
  294. * @param float $exeWeighting
  295. * @return TrackExercise
  296. */
  297. public function setExeWeighting($exeWeighting)
  298. {
  299. $this->exeWeighting = $exeWeighting;
  300. return $this;
  301. }
  302. /**
  303. * Get exeWeighting
  304. *
  305. * @return float
  306. */
  307. public function getExeWeighting()
  308. {
  309. return $this->exeWeighting;
  310. }
  311. /**
  312. * Set cId
  313. *
  314. * @param integer $cId
  315. * @return TrackExercise
  316. */
  317. public function setCId($cId)
  318. {
  319. $this->cId = $cId;
  320. return $this;
  321. }
  322. /**
  323. * Get cId
  324. *
  325. * @return integer
  326. */
  327. public function getCId()
  328. {
  329. return $this->cId;
  330. }
  331. /**
  332. * Set status
  333. *
  334. * @param string $status
  335. * @return TrackExercise
  336. */
  337. public function setStatus($status)
  338. {
  339. $this->status = $status;
  340. return $this;
  341. }
  342. /**
  343. * Get status
  344. *
  345. * @return string
  346. */
  347. public function getStatus()
  348. {
  349. return $this->status;
  350. }
  351. /**
  352. * Set dataTracking
  353. *
  354. * @param string $dataTracking
  355. * @return TrackExercise
  356. */
  357. public function setDataTracking($dataTracking)
  358. {
  359. $this->dataTracking = $dataTracking;
  360. return $this;
  361. }
  362. /**
  363. * Get dataTracking
  364. *
  365. * @return string
  366. */
  367. public function getDataTracking()
  368. {
  369. return $this->dataTracking;
  370. }
  371. /**
  372. * Set startDate
  373. *
  374. * @param \DateTime $startDate
  375. * @return TrackExercise
  376. */
  377. public function setStartDate($startDate)
  378. {
  379. $this->startDate = $startDate;
  380. return $this;
  381. }
  382. /**
  383. * Get startDate
  384. *
  385. * @return \DateTime
  386. */
  387. public function getStartDate()
  388. {
  389. return $this->startDate;
  390. }
  391. /**
  392. * Set stepsCounter
  393. *
  394. * @param integer $stepsCounter
  395. * @return TrackExercise
  396. */
  397. public function setStepsCounter($stepsCounter)
  398. {
  399. $this->stepsCounter = $stepsCounter;
  400. return $this;
  401. }
  402. /**
  403. * Get stepsCounter
  404. *
  405. * @return integer
  406. */
  407. public function getStepsCounter()
  408. {
  409. return $this->stepsCounter;
  410. }
  411. /**
  412. * Set sessionId
  413. *
  414. * @param integer $sessionId
  415. * @return TrackExercise
  416. */
  417. public function setSessionId($sessionId)
  418. {
  419. $this->sessionId = $sessionId;
  420. return $this;
  421. }
  422. /**
  423. * Get sessionId
  424. *
  425. * @return integer
  426. */
  427. public function getSessionId()
  428. {
  429. return $this->sessionId;
  430. }
  431. /**
  432. * Set origLpId
  433. *
  434. * @param integer $origLpId
  435. * @return TrackExercise
  436. */
  437. public function setOrigLpId($origLpId)
  438. {
  439. $this->origLpId = $origLpId;
  440. return $this;
  441. }
  442. /**
  443. * Get origLpId
  444. *
  445. * @return integer
  446. */
  447. public function getOrigLpId()
  448. {
  449. return $this->origLpId;
  450. }
  451. /**
  452. * Set origLpItemId
  453. *
  454. * @param integer $origLpItemId
  455. * @return TrackExercise
  456. */
  457. public function setOrigLpItemId($origLpItemId)
  458. {
  459. $this->origLpItemId = $origLpItemId;
  460. return $this;
  461. }
  462. /**
  463. * Get origLpItemId
  464. *
  465. * @return integer
  466. */
  467. public function getOrigLpItemId()
  468. {
  469. return $this->origLpItemId;
  470. }
  471. /**
  472. * Set exeDuration
  473. *
  474. * @param integer $exeDuration
  475. * @return TrackExercise
  476. */
  477. public function setExeDuration($exeDuration)
  478. {
  479. $this->exeDuration = $exeDuration;
  480. return $this;
  481. }
  482. /**
  483. * Get exeDuration
  484. *
  485. * @return integer
  486. */
  487. public function getExeDuration()
  488. {
  489. return $this->exeDuration;
  490. }
  491. /**
  492. * Set expiredTimeControl
  493. *
  494. * @param \DateTime $expiredTimeControl
  495. * @return TrackExercise
  496. */
  497. public function setExpiredTimeControl($expiredTimeControl)
  498. {
  499. $this->expiredTimeControl = $expiredTimeControl;
  500. return $this;
  501. }
  502. /**
  503. * Get expiredTimeControl
  504. *
  505. * @return \DateTime
  506. */
  507. public function getExpiredTimeControl()
  508. {
  509. return $this->expiredTimeControl;
  510. }
  511. /**
  512. * Set origLpItemViewId
  513. *
  514. * @param integer $origLpItemViewId
  515. * @return TrackExercise
  516. */
  517. public function setOrigLpItemViewId($origLpItemViewId)
  518. {
  519. $this->origLpItemViewId = $origLpItemViewId;
  520. return $this;
  521. }
  522. /**
  523. * Get origLpItemViewId
  524. *
  525. * @return integer
  526. */
  527. public function getOrigLpItemViewId()
  528. {
  529. return $this->origLpItemViewId;
  530. }
  531. /**
  532. * Set questionsToCheck
  533. *
  534. * @param string $questionsToCheck
  535. * @return TrackExercise
  536. */
  537. public function setQuestionsToCheck($questionsToCheck)
  538. {
  539. $this->questionsToCheck = $questionsToCheck;
  540. return $this;
  541. }
  542. /**
  543. * Get questionsToCheck
  544. *
  545. * @return string
  546. */
  547. public function getQuestionsToCheck()
  548. {
  549. return $this->questionsToCheck;
  550. }
  551. /**
  552. * Get juryScore
  553. *
  554. * @return integer
  555. */
  556. public function getJuryScore()
  557. {
  558. return $this->juryScore;
  559. }
  560. /**
  561. * Set juryScore
  562. *
  563. * @param integer $juryScore
  564. * @return TrackExercise
  565. */
  566. public function setJuryScore($juryScore)
  567. {
  568. $this->juryScore = $juryScore;
  569. return $this;
  570. }
  571. /**
  572. * Get juryId
  573. *
  574. * @return integer
  575. */
  576. public function getJuryId()
  577. {
  578. return $this->juryId;
  579. }
  580. /**
  581. * Set juryId
  582. *
  583. * @param integer $juryId
  584. * @return TrackExercise
  585. */
  586. public function setJuryId($juryId)
  587. {
  588. $this->juryId = $juryId;
  589. return $this;
  590. }
  591. /**
  592. * Get juryMembers
  593. *
  594. * @return integer
  595. */
  596. public function getJuryMembers()
  597. {
  598. return $this->juryMembers;
  599. }
  600. /**
  601. * Set juryMembers
  602. *
  603. * @param JuryMembers $juryMembers
  604. * @return TrackExercise
  605. */
  606. public function setJuryMembers(JuryMembers $juryMembers)
  607. {
  608. $this->juryMembers = $juryMembers;
  609. return $this;
  610. }
  611. /**
  612. * Set quizDistributionId
  613. *
  614. * @param integer $quizDistributionId
  615. */
  616. public function setQuizDistributionId($quizDistributionId)
  617. {
  618. $this->quizDistributionId = $quizDistributionId;
  619. return $this;
  620. }
  621. /**
  622. * Get quizDistributionId
  623. *
  624. * @return integer
  625. */
  626. public function getQuizDistributionId()
  627. {
  628. return $this->quizDistributionId;
  629. }
  630. }