quiz.class.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. *
  6. * @license see /license.txt
  7. * @author autogenerated
  8. */
  9. class Quiz extends \CourseEntity
  10. {
  11. /**
  12. * @return \Entity\Repository\QuizRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\QuizRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\Quiz
  19. */
  20. public static function create(){
  21. return new self();
  22. }
  23. /**
  24. * @var integer $c_id
  25. */
  26. protected $c_id;
  27. /**
  28. * @var integer $id
  29. */
  30. protected $id;
  31. /**
  32. * @var string $title
  33. */
  34. protected $title;
  35. /**
  36. * @var text $description
  37. */
  38. protected $description;
  39. /**
  40. * @var string $sound
  41. */
  42. protected $sound;
  43. /**
  44. * @var boolean $type
  45. */
  46. protected $type;
  47. /**
  48. * @var integer $random
  49. */
  50. protected $random;
  51. /**
  52. * @var boolean $random_answers
  53. */
  54. protected $random_answers;
  55. /**
  56. * @var boolean $active
  57. */
  58. protected $active;
  59. /**
  60. * @var integer $results_disabled
  61. */
  62. protected $results_disabled;
  63. /**
  64. * @var text $access_condition
  65. */
  66. protected $access_condition;
  67. /**
  68. * @var integer $max_attempt
  69. */
  70. protected $max_attempt;
  71. /**
  72. * @var datetime $start_time
  73. */
  74. protected $start_time;
  75. /**
  76. * @var datetime $end_time
  77. */
  78. protected $end_time;
  79. /**
  80. * @var integer $feedback_type
  81. */
  82. protected $feedback_type;
  83. /**
  84. * @var integer $expired_time
  85. */
  86. protected $expired_time;
  87. /**
  88. * @var integer $session_id
  89. */
  90. protected $session_id;
  91. /**
  92. * @var integer $propagate_neg
  93. */
  94. protected $propagate_neg;
  95. /**
  96. * @var integer $review_answers
  97. */
  98. protected $review_answers;
  99. /**
  100. * @var integer $random_by_category
  101. */
  102. protected $random_by_category;
  103. /**
  104. * @var text $text_when_finished
  105. */
  106. protected $text_when_finished;
  107. /**
  108. * @var integer $display_category_name
  109. */
  110. protected $display_category_name;
  111. /**
  112. * @var integer $pass_percentage
  113. */
  114. protected $pass_percentage;
  115. /**
  116. * Set c_id
  117. *
  118. * @param integer $value
  119. * @return Quiz
  120. */
  121. public function set_c_id($value)
  122. {
  123. $this->c_id = $value;
  124. return $this;
  125. }
  126. /**
  127. * Get c_id
  128. *
  129. * @return integer
  130. */
  131. public function get_c_id()
  132. {
  133. return $this->c_id;
  134. }
  135. /**
  136. * Set id
  137. *
  138. * @param integer $value
  139. * @return Quiz
  140. */
  141. public function set_id($value)
  142. {
  143. $this->id = $value;
  144. return $this;
  145. }
  146. /**
  147. * Get id
  148. *
  149. * @return integer
  150. */
  151. public function get_id()
  152. {
  153. return $this->id;
  154. }
  155. /**
  156. * Set title
  157. *
  158. * @param string $value
  159. * @return Quiz
  160. */
  161. public function set_title($value)
  162. {
  163. $this->title = $value;
  164. return $this;
  165. }
  166. /**
  167. * Get title
  168. *
  169. * @return string
  170. */
  171. public function get_title()
  172. {
  173. return $this->title;
  174. }
  175. /**
  176. * Set description
  177. *
  178. * @param text $value
  179. * @return Quiz
  180. */
  181. public function set_description($value)
  182. {
  183. $this->description = $value;
  184. return $this;
  185. }
  186. /**
  187. * Get description
  188. *
  189. * @return text
  190. */
  191. public function get_description()
  192. {
  193. return $this->description;
  194. }
  195. /**
  196. * Set sound
  197. *
  198. * @param string $value
  199. * @return Quiz
  200. */
  201. public function set_sound($value)
  202. {
  203. $this->sound = $value;
  204. return $this;
  205. }
  206. /**
  207. * Get sound
  208. *
  209. * @return string
  210. */
  211. public function get_sound()
  212. {
  213. return $this->sound;
  214. }
  215. /**
  216. * Set type
  217. *
  218. * @param boolean $value
  219. * @return Quiz
  220. */
  221. public function set_type($value)
  222. {
  223. $this->type = $value;
  224. return $this;
  225. }
  226. /**
  227. * Get type
  228. *
  229. * @return boolean
  230. */
  231. public function get_type()
  232. {
  233. return $this->type;
  234. }
  235. /**
  236. * Set random
  237. *
  238. * @param integer $value
  239. * @return Quiz
  240. */
  241. public function set_random($value)
  242. {
  243. $this->random = $value;
  244. return $this;
  245. }
  246. /**
  247. * Get random
  248. *
  249. * @return integer
  250. */
  251. public function get_random()
  252. {
  253. return $this->random;
  254. }
  255. /**
  256. * Set random_answers
  257. *
  258. * @param boolean $value
  259. * @return Quiz
  260. */
  261. public function set_random_answers($value)
  262. {
  263. $this->random_answers = $value;
  264. return $this;
  265. }
  266. /**
  267. * Get random_answers
  268. *
  269. * @return boolean
  270. */
  271. public function get_random_answers()
  272. {
  273. return $this->random_answers;
  274. }
  275. /**
  276. * Set active
  277. *
  278. * @param boolean $value
  279. * @return Quiz
  280. */
  281. public function set_active($value)
  282. {
  283. $this->active = $value;
  284. return $this;
  285. }
  286. /**
  287. * Get active
  288. *
  289. * @return boolean
  290. */
  291. public function get_active()
  292. {
  293. return $this->active;
  294. }
  295. /**
  296. * Set results_disabled
  297. *
  298. * @param integer $value
  299. * @return Quiz
  300. */
  301. public function set_results_disabled($value)
  302. {
  303. $this->results_disabled = $value;
  304. return $this;
  305. }
  306. /**
  307. * Get results_disabled
  308. *
  309. * @return integer
  310. */
  311. public function get_results_disabled()
  312. {
  313. return $this->results_disabled;
  314. }
  315. /**
  316. * Set access_condition
  317. *
  318. * @param text $value
  319. * @return Quiz
  320. */
  321. public function set_access_condition($value)
  322. {
  323. $this->access_condition = $value;
  324. return $this;
  325. }
  326. /**
  327. * Get access_condition
  328. *
  329. * @return text
  330. */
  331. public function get_access_condition()
  332. {
  333. return $this->access_condition;
  334. }
  335. /**
  336. * Set max_attempt
  337. *
  338. * @param integer $value
  339. * @return Quiz
  340. */
  341. public function set_max_attempt($value)
  342. {
  343. $this->max_attempt = $value;
  344. return $this;
  345. }
  346. /**
  347. * Get max_attempt
  348. *
  349. * @return integer
  350. */
  351. public function get_max_attempt()
  352. {
  353. return $this->max_attempt;
  354. }
  355. /**
  356. * Set start_time
  357. *
  358. * @param datetime $value
  359. * @return Quiz
  360. */
  361. public function set_start_time($value)
  362. {
  363. $this->start_time = $value;
  364. return $this;
  365. }
  366. /**
  367. * Get start_time
  368. *
  369. * @return datetime
  370. */
  371. public function get_start_time()
  372. {
  373. return $this->start_time;
  374. }
  375. /**
  376. * Set end_time
  377. *
  378. * @param datetime $value
  379. * @return Quiz
  380. */
  381. public function set_end_time($value)
  382. {
  383. $this->end_time = $value;
  384. return $this;
  385. }
  386. /**
  387. * Get end_time
  388. *
  389. * @return datetime
  390. */
  391. public function get_end_time()
  392. {
  393. return $this->end_time;
  394. }
  395. /**
  396. * Set feedback_type
  397. *
  398. * @param integer $value
  399. * @return Quiz
  400. */
  401. public function set_feedback_type($value)
  402. {
  403. $this->feedback_type = $value;
  404. return $this;
  405. }
  406. /**
  407. * Get feedback_type
  408. *
  409. * @return integer
  410. */
  411. public function get_feedback_type()
  412. {
  413. return $this->feedback_type;
  414. }
  415. /**
  416. * Set expired_time
  417. *
  418. * @param integer $value
  419. * @return Quiz
  420. */
  421. public function set_expired_time($value)
  422. {
  423. $this->expired_time = $value;
  424. return $this;
  425. }
  426. /**
  427. * Get expired_time
  428. *
  429. * @return integer
  430. */
  431. public function get_expired_time()
  432. {
  433. return $this->expired_time;
  434. }
  435. /**
  436. * Set session_id
  437. *
  438. * @param integer $value
  439. * @return Quiz
  440. */
  441. public function set_session_id($value)
  442. {
  443. $this->session_id = $value;
  444. return $this;
  445. }
  446. /**
  447. * Get session_id
  448. *
  449. * @return integer
  450. */
  451. public function get_session_id()
  452. {
  453. return $this->session_id;
  454. }
  455. /**
  456. * Set propagate_neg
  457. *
  458. * @param integer $value
  459. * @return Quiz
  460. */
  461. public function set_propagate_neg($value)
  462. {
  463. $this->propagate_neg = $value;
  464. return $this;
  465. }
  466. /**
  467. * Get propagate_neg
  468. *
  469. * @return integer
  470. */
  471. public function get_propagate_neg()
  472. {
  473. return $this->propagate_neg;
  474. }
  475. /**
  476. * Set review_answers
  477. *
  478. * @param integer $value
  479. * @return Quiz
  480. */
  481. public function set_review_answers($value)
  482. {
  483. $this->review_answers = $value;
  484. return $this;
  485. }
  486. /**
  487. * Get review_answers
  488. *
  489. * @return integer
  490. */
  491. public function get_review_answers()
  492. {
  493. return $this->review_answers;
  494. }
  495. /**
  496. * Set random_by_category
  497. *
  498. * @param integer $value
  499. * @return Quiz
  500. */
  501. public function set_random_by_category($value)
  502. {
  503. $this->random_by_category = $value;
  504. return $this;
  505. }
  506. /**
  507. * Get random_by_category
  508. *
  509. * @return integer
  510. */
  511. public function get_random_by_category()
  512. {
  513. return $this->random_by_category;
  514. }
  515. /**
  516. * Set text_when_finished
  517. *
  518. * @param text $value
  519. * @return Quiz
  520. */
  521. public function set_text_when_finished($value)
  522. {
  523. $this->text_when_finished = $value;
  524. return $this;
  525. }
  526. /**
  527. * Get text_when_finished
  528. *
  529. * @return text
  530. */
  531. public function get_text_when_finished()
  532. {
  533. return $this->text_when_finished;
  534. }
  535. /**
  536. * Set display_category_name
  537. *
  538. * @param integer $value
  539. * @return Quiz
  540. */
  541. public function set_display_category_name($value)
  542. {
  543. $this->display_category_name = $value;
  544. return $this;
  545. }
  546. /**
  547. * Get display_category_name
  548. *
  549. * @return integer
  550. */
  551. public function get_display_category_name()
  552. {
  553. return $this->display_category_name;
  554. }
  555. /**
  556. * Set pass_percentage
  557. *
  558. * @param integer $value
  559. * @return Quiz
  560. */
  561. public function set_pass_percentage($value)
  562. {
  563. $this->pass_percentage = $value;
  564. return $this;
  565. }
  566. /**
  567. * Get pass_percentage
  568. *
  569. * @return integer
  570. */
  571. public function get_pass_percentage()
  572. {
  573. return $this->pass_percentage;
  574. }
  575. }