EntityCQuiz.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709
  1. <?php
  2. use Doctrine\ORM\Mapping as ORM;
  3. /**
  4. * EntityCQuiz
  5. *
  6. * @Table(name="c_quiz")
  7. * @Entity
  8. */
  9. class EntityCQuiz
  10. {
  11. /**
  12. * @var integer
  13. *
  14. * @Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  15. * @Id
  16. * @GeneratedValue(strategy="NONE")
  17. */
  18. private $cId;
  19. /**
  20. * @var integer
  21. *
  22. * @Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  23. * @Id
  24. * @GeneratedValue(strategy="NONE")
  25. */
  26. private $id;
  27. /**
  28. * @var string
  29. *
  30. * @Column(name="title", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
  31. */
  32. private $title;
  33. /**
  34. * @var string
  35. *
  36. * @Column(name="description", type="text", precision=0, scale=0, nullable=true, unique=false)
  37. */
  38. private $description;
  39. /**
  40. * @var string
  41. *
  42. * @Column(name="sound", type="string", length=255, precision=0, scale=0, nullable=true, unique=false)
  43. */
  44. private $sound;
  45. /**
  46. * @var boolean
  47. *
  48. * @Column(name="type", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  49. */
  50. private $type;
  51. /**
  52. * @var integer
  53. *
  54. * @Column(name="random", type="integer", precision=0, scale=0, nullable=false, unique=false)
  55. */
  56. private $random;
  57. /**
  58. * @var boolean
  59. *
  60. * @Column(name="random_answers", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  61. */
  62. private $randomAnswers;
  63. /**
  64. * @var boolean
  65. *
  66. * @Column(name="active", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  67. */
  68. private $active;
  69. /**
  70. * @var integer
  71. *
  72. * @Column(name="results_disabled", type="integer", precision=0, scale=0, nullable=false, unique=false)
  73. */
  74. private $resultsDisabled;
  75. /**
  76. * @var string
  77. *
  78. * @Column(name="access_condition", type="text", precision=0, scale=0, nullable=true, unique=false)
  79. */
  80. private $accessCondition;
  81. /**
  82. * @var integer
  83. *
  84. * @Column(name="max_attempt", type="integer", precision=0, scale=0, nullable=false, unique=false)
  85. */
  86. private $maxAttempt;
  87. /**
  88. * @var \DateTime
  89. *
  90. * @Column(name="start_time", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  91. */
  92. private $startTime;
  93. /**
  94. * @var \DateTime
  95. *
  96. * @Column(name="end_time", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  97. */
  98. private $endTime;
  99. /**
  100. * @var integer
  101. *
  102. * @Column(name="feedback_type", type="integer", precision=0, scale=0, nullable=false, unique=false)
  103. */
  104. private $feedbackType;
  105. /**
  106. * @var integer
  107. *
  108. * @Column(name="expired_time", type="integer", precision=0, scale=0, nullable=false, unique=false)
  109. */
  110. private $expiredTime;
  111. /**
  112. * @var integer
  113. *
  114. * @Column(name="session_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  115. */
  116. private $sessionId;
  117. /**
  118. * @var integer
  119. *
  120. * @Column(name="propagate_neg", type="integer", precision=0, scale=0, nullable=false, unique=false)
  121. */
  122. private $propagateNeg;
  123. /**
  124. * @var integer
  125. *
  126. * @Column(name="review_answers", type="integer", precision=0, scale=0, nullable=false, unique=false)
  127. */
  128. private $reviewAnswers;
  129. /**
  130. * @var integer
  131. *
  132. * @Column(name="random_by_category", type="integer", precision=0, scale=0, nullable=false, unique=false)
  133. */
  134. private $randomByCategory;
  135. /**
  136. * @var string
  137. *
  138. * @Column(name="text_when_finished", type="text", precision=0, scale=0, nullable=true, unique=false)
  139. */
  140. private $textWhenFinished;
  141. /**
  142. * @var integer
  143. *
  144. * @Column(name="display_category_name", type="integer", precision=0, scale=0, nullable=false, unique=false)
  145. */
  146. private $displayCategoryName;
  147. /**
  148. * @var integer
  149. *
  150. * @Column(name="pass_percentage", type="integer", precision=0, scale=0, nullable=true, unique=false)
  151. */
  152. private $passPercentage;
  153. /**
  154. * Set cId
  155. *
  156. * @param integer $cId
  157. * @return EntityCQuiz
  158. */
  159. public function setCId($cId)
  160. {
  161. $this->cId = $cId;
  162. return $this;
  163. }
  164. /**
  165. * Get cId
  166. *
  167. * @return integer
  168. */
  169. public function getCId()
  170. {
  171. return $this->cId;
  172. }
  173. /**
  174. * Set id
  175. *
  176. * @param integer $id
  177. * @return EntityCQuiz
  178. */
  179. public function setId($id)
  180. {
  181. $this->id = $id;
  182. return $this;
  183. }
  184. /**
  185. * Get id
  186. *
  187. * @return integer
  188. */
  189. public function getId()
  190. {
  191. return $this->id;
  192. }
  193. /**
  194. * Set title
  195. *
  196. * @param string $title
  197. * @return EntityCQuiz
  198. */
  199. public function setTitle($title)
  200. {
  201. $this->title = $title;
  202. return $this;
  203. }
  204. /**
  205. * Get title
  206. *
  207. * @return string
  208. */
  209. public function getTitle()
  210. {
  211. return $this->title;
  212. }
  213. /**
  214. * Set description
  215. *
  216. * @param string $description
  217. * @return EntityCQuiz
  218. */
  219. public function setDescription($description)
  220. {
  221. $this->description = $description;
  222. return $this;
  223. }
  224. /**
  225. * Get description
  226. *
  227. * @return string
  228. */
  229. public function getDescription()
  230. {
  231. return $this->description;
  232. }
  233. /**
  234. * Set sound
  235. *
  236. * @param string $sound
  237. * @return EntityCQuiz
  238. */
  239. public function setSound($sound)
  240. {
  241. $this->sound = $sound;
  242. return $this;
  243. }
  244. /**
  245. * Get sound
  246. *
  247. * @return string
  248. */
  249. public function getSound()
  250. {
  251. return $this->sound;
  252. }
  253. /**
  254. * Set type
  255. *
  256. * @param boolean $type
  257. * @return EntityCQuiz
  258. */
  259. public function setType($type)
  260. {
  261. $this->type = $type;
  262. return $this;
  263. }
  264. /**
  265. * Get type
  266. *
  267. * @return boolean
  268. */
  269. public function getType()
  270. {
  271. return $this->type;
  272. }
  273. /**
  274. * Set random
  275. *
  276. * @param integer $random
  277. * @return EntityCQuiz
  278. */
  279. public function setRandom($random)
  280. {
  281. $this->random = $random;
  282. return $this;
  283. }
  284. /**
  285. * Get random
  286. *
  287. * @return integer
  288. */
  289. public function getRandom()
  290. {
  291. return $this->random;
  292. }
  293. /**
  294. * Set randomAnswers
  295. *
  296. * @param boolean $randomAnswers
  297. * @return EntityCQuiz
  298. */
  299. public function setRandomAnswers($randomAnswers)
  300. {
  301. $this->randomAnswers = $randomAnswers;
  302. return $this;
  303. }
  304. /**
  305. * Get randomAnswers
  306. *
  307. * @return boolean
  308. */
  309. public function getRandomAnswers()
  310. {
  311. return $this->randomAnswers;
  312. }
  313. /**
  314. * Set active
  315. *
  316. * @param boolean $active
  317. * @return EntityCQuiz
  318. */
  319. public function setActive($active)
  320. {
  321. $this->active = $active;
  322. return $this;
  323. }
  324. /**
  325. * Get active
  326. *
  327. * @return boolean
  328. */
  329. public function getActive()
  330. {
  331. return $this->active;
  332. }
  333. /**
  334. * Set resultsDisabled
  335. *
  336. * @param integer $resultsDisabled
  337. * @return EntityCQuiz
  338. */
  339. public function setResultsDisabled($resultsDisabled)
  340. {
  341. $this->resultsDisabled = $resultsDisabled;
  342. return $this;
  343. }
  344. /**
  345. * Get resultsDisabled
  346. *
  347. * @return integer
  348. */
  349. public function getResultsDisabled()
  350. {
  351. return $this->resultsDisabled;
  352. }
  353. /**
  354. * Set accessCondition
  355. *
  356. * @param string $accessCondition
  357. * @return EntityCQuiz
  358. */
  359. public function setAccessCondition($accessCondition)
  360. {
  361. $this->accessCondition = $accessCondition;
  362. return $this;
  363. }
  364. /**
  365. * Get accessCondition
  366. *
  367. * @return string
  368. */
  369. public function getAccessCondition()
  370. {
  371. return $this->accessCondition;
  372. }
  373. /**
  374. * Set maxAttempt
  375. *
  376. * @param integer $maxAttempt
  377. * @return EntityCQuiz
  378. */
  379. public function setMaxAttempt($maxAttempt)
  380. {
  381. $this->maxAttempt = $maxAttempt;
  382. return $this;
  383. }
  384. /**
  385. * Get maxAttempt
  386. *
  387. * @return integer
  388. */
  389. public function getMaxAttempt()
  390. {
  391. return $this->maxAttempt;
  392. }
  393. /**
  394. * Set startTime
  395. *
  396. * @param \DateTime $startTime
  397. * @return EntityCQuiz
  398. */
  399. public function setStartTime($startTime)
  400. {
  401. $this->startTime = $startTime;
  402. return $this;
  403. }
  404. /**
  405. * Get startTime
  406. *
  407. * @return \DateTime
  408. */
  409. public function getStartTime()
  410. {
  411. return $this->startTime;
  412. }
  413. /**
  414. * Set endTime
  415. *
  416. * @param \DateTime $endTime
  417. * @return EntityCQuiz
  418. */
  419. public function setEndTime($endTime)
  420. {
  421. $this->endTime = $endTime;
  422. return $this;
  423. }
  424. /**
  425. * Get endTime
  426. *
  427. * @return \DateTime
  428. */
  429. public function getEndTime()
  430. {
  431. return $this->endTime;
  432. }
  433. /**
  434. * Set feedbackType
  435. *
  436. * @param integer $feedbackType
  437. * @return EntityCQuiz
  438. */
  439. public function setFeedbackType($feedbackType)
  440. {
  441. $this->feedbackType = $feedbackType;
  442. return $this;
  443. }
  444. /**
  445. * Get feedbackType
  446. *
  447. * @return integer
  448. */
  449. public function getFeedbackType()
  450. {
  451. return $this->feedbackType;
  452. }
  453. /**
  454. * Set expiredTime
  455. *
  456. * @param integer $expiredTime
  457. * @return EntityCQuiz
  458. */
  459. public function setExpiredTime($expiredTime)
  460. {
  461. $this->expiredTime = $expiredTime;
  462. return $this;
  463. }
  464. /**
  465. * Get expiredTime
  466. *
  467. * @return integer
  468. */
  469. public function getExpiredTime()
  470. {
  471. return $this->expiredTime;
  472. }
  473. /**
  474. * Set sessionId
  475. *
  476. * @param integer $sessionId
  477. * @return EntityCQuiz
  478. */
  479. public function setSessionId($sessionId)
  480. {
  481. $this->sessionId = $sessionId;
  482. return $this;
  483. }
  484. /**
  485. * Get sessionId
  486. *
  487. * @return integer
  488. */
  489. public function getSessionId()
  490. {
  491. return $this->sessionId;
  492. }
  493. /**
  494. * Set propagateNeg
  495. *
  496. * @param integer $propagateNeg
  497. * @return EntityCQuiz
  498. */
  499. public function setPropagateNeg($propagateNeg)
  500. {
  501. $this->propagateNeg = $propagateNeg;
  502. return $this;
  503. }
  504. /**
  505. * Get propagateNeg
  506. *
  507. * @return integer
  508. */
  509. public function getPropagateNeg()
  510. {
  511. return $this->propagateNeg;
  512. }
  513. /**
  514. * Set reviewAnswers
  515. *
  516. * @param integer $reviewAnswers
  517. * @return EntityCQuiz
  518. */
  519. public function setReviewAnswers($reviewAnswers)
  520. {
  521. $this->reviewAnswers = $reviewAnswers;
  522. return $this;
  523. }
  524. /**
  525. * Get reviewAnswers
  526. *
  527. * @return integer
  528. */
  529. public function getReviewAnswers()
  530. {
  531. return $this->reviewAnswers;
  532. }
  533. /**
  534. * Set randomByCategory
  535. *
  536. * @param integer $randomByCategory
  537. * @return EntityCQuiz
  538. */
  539. public function setRandomByCategory($randomByCategory)
  540. {
  541. $this->randomByCategory = $randomByCategory;
  542. return $this;
  543. }
  544. /**
  545. * Get randomByCategory
  546. *
  547. * @return integer
  548. */
  549. public function getRandomByCategory()
  550. {
  551. return $this->randomByCategory;
  552. }
  553. /**
  554. * Set textWhenFinished
  555. *
  556. * @param string $textWhenFinished
  557. * @return EntityCQuiz
  558. */
  559. public function setTextWhenFinished($textWhenFinished)
  560. {
  561. $this->textWhenFinished = $textWhenFinished;
  562. return $this;
  563. }
  564. /**
  565. * Get textWhenFinished
  566. *
  567. * @return string
  568. */
  569. public function getTextWhenFinished()
  570. {
  571. return $this->textWhenFinished;
  572. }
  573. /**
  574. * Set displayCategoryName
  575. *
  576. * @param integer $displayCategoryName
  577. * @return EntityCQuiz
  578. */
  579. public function setDisplayCategoryName($displayCategoryName)
  580. {
  581. $this->displayCategoryName = $displayCategoryName;
  582. return $this;
  583. }
  584. /**
  585. * Get displayCategoryName
  586. *
  587. * @return integer
  588. */
  589. public function getDisplayCategoryName()
  590. {
  591. return $this->displayCategoryName;
  592. }
  593. /**
  594. * Set passPercentage
  595. *
  596. * @param integer $passPercentage
  597. * @return EntityCQuiz
  598. */
  599. public function setPassPercentage($passPercentage)
  600. {
  601. $this->passPercentage = $passPercentage;
  602. return $this;
  603. }
  604. /**
  605. * Get passPercentage
  606. *
  607. * @return integer
  608. */
  609. public function getPassPercentage()
  610. {
  611. return $this->passPercentage;
  612. }
  613. }