survey.class.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811
  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 Survey extends \CourseEntity
  10. {
  11. /**
  12. * @return \Entity\Repository\SurveyRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\SurveyRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\Survey
  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 $survey_id
  29. */
  30. protected $survey_id;
  31. /**
  32. * @var string $code
  33. */
  34. protected $code;
  35. /**
  36. * @var text $title
  37. */
  38. protected $title;
  39. /**
  40. * @var text $subtitle
  41. */
  42. protected $subtitle;
  43. /**
  44. * @var string $author
  45. */
  46. protected $author;
  47. /**
  48. * @var string $lang
  49. */
  50. protected $lang;
  51. /**
  52. * @var date $avail_from
  53. */
  54. protected $avail_from;
  55. /**
  56. * @var date $avail_till
  57. */
  58. protected $avail_till;
  59. /**
  60. * @var string $is_shared
  61. */
  62. protected $is_shared;
  63. /**
  64. * @var string $template
  65. */
  66. protected $template;
  67. /**
  68. * @var text $intro
  69. */
  70. protected $intro;
  71. /**
  72. * @var text $surveythanks
  73. */
  74. protected $surveythanks;
  75. /**
  76. * @var datetime $creation_date
  77. */
  78. protected $creation_date;
  79. /**
  80. * @var integer $invited
  81. */
  82. protected $invited;
  83. /**
  84. * @var integer $answered
  85. */
  86. protected $answered;
  87. /**
  88. * @var text $invite_mail
  89. */
  90. protected $invite_mail;
  91. /**
  92. * @var text $reminder_mail
  93. */
  94. protected $reminder_mail;
  95. /**
  96. * @var string $mail_subject
  97. */
  98. protected $mail_subject;
  99. /**
  100. * @var string $anonymous
  101. */
  102. protected $anonymous;
  103. /**
  104. * @var text $access_condition
  105. */
  106. protected $access_condition;
  107. /**
  108. * @var boolean $shuffle
  109. */
  110. protected $shuffle;
  111. /**
  112. * @var boolean $one_question_per_page
  113. */
  114. protected $one_question_per_page;
  115. /**
  116. * @var string $survey_version
  117. */
  118. protected $survey_version;
  119. /**
  120. * @var integer $parent_id
  121. */
  122. protected $parent_id;
  123. /**
  124. * @var integer $survey_type
  125. */
  126. protected $survey_type;
  127. /**
  128. * @var integer $show_form_profile
  129. */
  130. protected $show_form_profile;
  131. /**
  132. * @var text $form_fields
  133. */
  134. protected $form_fields;
  135. /**
  136. * @var integer $session_id
  137. */
  138. protected $session_id;
  139. /**
  140. * Set c_id
  141. *
  142. * @param integer $value
  143. * @return Survey
  144. */
  145. public function set_c_id($value)
  146. {
  147. $this->c_id = $value;
  148. return $this;
  149. }
  150. /**
  151. * Get c_id
  152. *
  153. * @return integer
  154. */
  155. public function get_c_id()
  156. {
  157. return $this->c_id;
  158. }
  159. /**
  160. * Set survey_id
  161. *
  162. * @param integer $value
  163. * @return Survey
  164. */
  165. public function set_survey_id($value)
  166. {
  167. $this->survey_id = $value;
  168. return $this;
  169. }
  170. /**
  171. * Get survey_id
  172. *
  173. * @return integer
  174. */
  175. public function get_survey_id()
  176. {
  177. return $this->survey_id;
  178. }
  179. /**
  180. * Set code
  181. *
  182. * @param string $value
  183. * @return Survey
  184. */
  185. public function set_code($value)
  186. {
  187. $this->code = $value;
  188. return $this;
  189. }
  190. /**
  191. * Get code
  192. *
  193. * @return string
  194. */
  195. public function get_code()
  196. {
  197. return $this->code;
  198. }
  199. /**
  200. * Set title
  201. *
  202. * @param text $value
  203. * @return Survey
  204. */
  205. public function set_title($value)
  206. {
  207. $this->title = $value;
  208. return $this;
  209. }
  210. /**
  211. * Get title
  212. *
  213. * @return text
  214. */
  215. public function get_title()
  216. {
  217. return $this->title;
  218. }
  219. /**
  220. * Set subtitle
  221. *
  222. * @param text $value
  223. * @return Survey
  224. */
  225. public function set_subtitle($value)
  226. {
  227. $this->subtitle = $value;
  228. return $this;
  229. }
  230. /**
  231. * Get subtitle
  232. *
  233. * @return text
  234. */
  235. public function get_subtitle()
  236. {
  237. return $this->subtitle;
  238. }
  239. /**
  240. * Set author
  241. *
  242. * @param string $value
  243. * @return Survey
  244. */
  245. public function set_author($value)
  246. {
  247. $this->author = $value;
  248. return $this;
  249. }
  250. /**
  251. * Get author
  252. *
  253. * @return string
  254. */
  255. public function get_author()
  256. {
  257. return $this->author;
  258. }
  259. /**
  260. * Set lang
  261. *
  262. * @param string $value
  263. * @return Survey
  264. */
  265. public function set_lang($value)
  266. {
  267. $this->lang = $value;
  268. return $this;
  269. }
  270. /**
  271. * Get lang
  272. *
  273. * @return string
  274. */
  275. public function get_lang()
  276. {
  277. return $this->lang;
  278. }
  279. /**
  280. * Set avail_from
  281. *
  282. * @param date $value
  283. * @return Survey
  284. */
  285. public function set_avail_from($value)
  286. {
  287. $this->avail_from = $value;
  288. return $this;
  289. }
  290. /**
  291. * Get avail_from
  292. *
  293. * @return date
  294. */
  295. public function get_avail_from()
  296. {
  297. return $this->avail_from;
  298. }
  299. /**
  300. * Set avail_till
  301. *
  302. * @param date $value
  303. * @return Survey
  304. */
  305. public function set_avail_till($value)
  306. {
  307. $this->avail_till = $value;
  308. return $this;
  309. }
  310. /**
  311. * Get avail_till
  312. *
  313. * @return date
  314. */
  315. public function get_avail_till()
  316. {
  317. return $this->avail_till;
  318. }
  319. /**
  320. * Set is_shared
  321. *
  322. * @param string $value
  323. * @return Survey
  324. */
  325. public function set_is_shared($value)
  326. {
  327. $this->is_shared = $value;
  328. return $this;
  329. }
  330. /**
  331. * Get is_shared
  332. *
  333. * @return string
  334. */
  335. public function get_is_shared()
  336. {
  337. return $this->is_shared;
  338. }
  339. /**
  340. * Set template
  341. *
  342. * @param string $value
  343. * @return Survey
  344. */
  345. public function set_template($value)
  346. {
  347. $this->template = $value;
  348. return $this;
  349. }
  350. /**
  351. * Get template
  352. *
  353. * @return string
  354. */
  355. public function get_template()
  356. {
  357. return $this->template;
  358. }
  359. /**
  360. * Set intro
  361. *
  362. * @param text $value
  363. * @return Survey
  364. */
  365. public function set_intro($value)
  366. {
  367. $this->intro = $value;
  368. return $this;
  369. }
  370. /**
  371. * Get intro
  372. *
  373. * @return text
  374. */
  375. public function get_intro()
  376. {
  377. return $this->intro;
  378. }
  379. /**
  380. * Set surveythanks
  381. *
  382. * @param text $value
  383. * @return Survey
  384. */
  385. public function set_surveythanks($value)
  386. {
  387. $this->surveythanks = $value;
  388. return $this;
  389. }
  390. /**
  391. * Get surveythanks
  392. *
  393. * @return text
  394. */
  395. public function get_surveythanks()
  396. {
  397. return $this->surveythanks;
  398. }
  399. /**
  400. * Set creation_date
  401. *
  402. * @param datetime $value
  403. * @return Survey
  404. */
  405. public function set_creation_date($value)
  406. {
  407. $this->creation_date = $value;
  408. return $this;
  409. }
  410. /**
  411. * Get creation_date
  412. *
  413. * @return datetime
  414. */
  415. public function get_creation_date()
  416. {
  417. return $this->creation_date;
  418. }
  419. /**
  420. * Set invited
  421. *
  422. * @param integer $value
  423. * @return Survey
  424. */
  425. public function set_invited($value)
  426. {
  427. $this->invited = $value;
  428. return $this;
  429. }
  430. /**
  431. * Get invited
  432. *
  433. * @return integer
  434. */
  435. public function get_invited()
  436. {
  437. return $this->invited;
  438. }
  439. /**
  440. * Set answered
  441. *
  442. * @param integer $value
  443. * @return Survey
  444. */
  445. public function set_answered($value)
  446. {
  447. $this->answered = $value;
  448. return $this;
  449. }
  450. /**
  451. * Get answered
  452. *
  453. * @return integer
  454. */
  455. public function get_answered()
  456. {
  457. return $this->answered;
  458. }
  459. /**
  460. * Set invite_mail
  461. *
  462. * @param text $value
  463. * @return Survey
  464. */
  465. public function set_invite_mail($value)
  466. {
  467. $this->invite_mail = $value;
  468. return $this;
  469. }
  470. /**
  471. * Get invite_mail
  472. *
  473. * @return text
  474. */
  475. public function get_invite_mail()
  476. {
  477. return $this->invite_mail;
  478. }
  479. /**
  480. * Set reminder_mail
  481. *
  482. * @param text $value
  483. * @return Survey
  484. */
  485. public function set_reminder_mail($value)
  486. {
  487. $this->reminder_mail = $value;
  488. return $this;
  489. }
  490. /**
  491. * Get reminder_mail
  492. *
  493. * @return text
  494. */
  495. public function get_reminder_mail()
  496. {
  497. return $this->reminder_mail;
  498. }
  499. /**
  500. * Set mail_subject
  501. *
  502. * @param string $value
  503. * @return Survey
  504. */
  505. public function set_mail_subject($value)
  506. {
  507. $this->mail_subject = $value;
  508. return $this;
  509. }
  510. /**
  511. * Get mail_subject
  512. *
  513. * @return string
  514. */
  515. public function get_mail_subject()
  516. {
  517. return $this->mail_subject;
  518. }
  519. /**
  520. * Set anonymous
  521. *
  522. * @param string $value
  523. * @return Survey
  524. */
  525. public function set_anonymous($value)
  526. {
  527. $this->anonymous = $value;
  528. return $this;
  529. }
  530. /**
  531. * Get anonymous
  532. *
  533. * @return string
  534. */
  535. public function get_anonymous()
  536. {
  537. return $this->anonymous;
  538. }
  539. /**
  540. * Set access_condition
  541. *
  542. * @param text $value
  543. * @return Survey
  544. */
  545. public function set_access_condition($value)
  546. {
  547. $this->access_condition = $value;
  548. return $this;
  549. }
  550. /**
  551. * Get access_condition
  552. *
  553. * @return text
  554. */
  555. public function get_access_condition()
  556. {
  557. return $this->access_condition;
  558. }
  559. /**
  560. * Set shuffle
  561. *
  562. * @param boolean $value
  563. * @return Survey
  564. */
  565. public function set_shuffle($value)
  566. {
  567. $this->shuffle = $value;
  568. return $this;
  569. }
  570. /**
  571. * Get shuffle
  572. *
  573. * @return boolean
  574. */
  575. public function get_shuffle()
  576. {
  577. return $this->shuffle;
  578. }
  579. /**
  580. * Set one_question_per_page
  581. *
  582. * @param boolean $value
  583. * @return Survey
  584. */
  585. public function set_one_question_per_page($value)
  586. {
  587. $this->one_question_per_page = $value;
  588. return $this;
  589. }
  590. /**
  591. * Get one_question_per_page
  592. *
  593. * @return boolean
  594. */
  595. public function get_one_question_per_page()
  596. {
  597. return $this->one_question_per_page;
  598. }
  599. /**
  600. * Set survey_version
  601. *
  602. * @param string $value
  603. * @return Survey
  604. */
  605. public function set_survey_version($value)
  606. {
  607. $this->survey_version = $value;
  608. return $this;
  609. }
  610. /**
  611. * Get survey_version
  612. *
  613. * @return string
  614. */
  615. public function get_survey_version()
  616. {
  617. return $this->survey_version;
  618. }
  619. /**
  620. * Set parent_id
  621. *
  622. * @param integer $value
  623. * @return Survey
  624. */
  625. public function set_parent_id($value)
  626. {
  627. $this->parent_id = $value;
  628. return $this;
  629. }
  630. /**
  631. * Get parent_id
  632. *
  633. * @return integer
  634. */
  635. public function get_parent_id()
  636. {
  637. return $this->parent_id;
  638. }
  639. /**
  640. * Set survey_type
  641. *
  642. * @param integer $value
  643. * @return Survey
  644. */
  645. public function set_survey_type($value)
  646. {
  647. $this->survey_type = $value;
  648. return $this;
  649. }
  650. /**
  651. * Get survey_type
  652. *
  653. * @return integer
  654. */
  655. public function get_survey_type()
  656. {
  657. return $this->survey_type;
  658. }
  659. /**
  660. * Set show_form_profile
  661. *
  662. * @param integer $value
  663. * @return Survey
  664. */
  665. public function set_show_form_profile($value)
  666. {
  667. $this->show_form_profile = $value;
  668. return $this;
  669. }
  670. /**
  671. * Get show_form_profile
  672. *
  673. * @return integer
  674. */
  675. public function get_show_form_profile()
  676. {
  677. return $this->show_form_profile;
  678. }
  679. /**
  680. * Set form_fields
  681. *
  682. * @param text $value
  683. * @return Survey
  684. */
  685. public function set_form_fields($value)
  686. {
  687. $this->form_fields = $value;
  688. return $this;
  689. }
  690. /**
  691. * Get form_fields
  692. *
  693. * @return text
  694. */
  695. public function get_form_fields()
  696. {
  697. return $this->form_fields;
  698. }
  699. /**
  700. * Set session_id
  701. *
  702. * @param integer $value
  703. * @return Survey
  704. */
  705. public function set_session_id($value)
  706. {
  707. $this->session_id = $value;
  708. return $this;
  709. }
  710. /**
  711. * Get session_id
  712. *
  713. * @return integer
  714. */
  715. public function get_session_id()
  716. {
  717. return $this->session_id;
  718. }
  719. }