CQuiz.php 15 KB

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