EntityCSurvey.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889
  1. <?php
  2. use Doctrine\ORM\Mapping as ORM;
  3. /**
  4. * EntityCSurvey
  5. *
  6. * @Table(name="c_survey")
  7. * @Entity
  8. */
  9. class EntityCSurvey
  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="survey_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  23. * @Id
  24. * @GeneratedValue(strategy="NONE")
  25. */
  26. private $surveyId;
  27. /**
  28. * @var string
  29. *
  30. * @Column(name="code", type="string", length=20, precision=0, scale=0, nullable=true, unique=false)
  31. */
  32. private $code;
  33. /**
  34. * @var string
  35. *
  36. * @Column(name="title", type="text", precision=0, scale=0, nullable=true, unique=false)
  37. */
  38. private $title;
  39. /**
  40. * @var string
  41. *
  42. * @Column(name="subtitle", type="text", precision=0, scale=0, nullable=true, unique=false)
  43. */
  44. private $subtitle;
  45. /**
  46. * @var string
  47. *
  48. * @Column(name="author", type="string", length=20, precision=0, scale=0, nullable=true, unique=false)
  49. */
  50. private $author;
  51. /**
  52. * @var string
  53. *
  54. * @Column(name="lang", type="string", length=20, precision=0, scale=0, nullable=true, unique=false)
  55. */
  56. private $lang;
  57. /**
  58. * @var \DateTime
  59. *
  60. * @Column(name="avail_from", type="date", precision=0, scale=0, nullable=true, unique=false)
  61. */
  62. private $availFrom;
  63. /**
  64. * @var \DateTime
  65. *
  66. * @Column(name="avail_till", type="date", precision=0, scale=0, nullable=true, unique=false)
  67. */
  68. private $availTill;
  69. /**
  70. * @var string
  71. *
  72. * @Column(name="is_shared", type="string", length=1, precision=0, scale=0, nullable=true, unique=false)
  73. */
  74. private $isShared;
  75. /**
  76. * @var string
  77. *
  78. * @Column(name="template", type="string", length=20, precision=0, scale=0, nullable=true, unique=false)
  79. */
  80. private $template;
  81. /**
  82. * @var string
  83. *
  84. * @Column(name="intro", type="text", precision=0, scale=0, nullable=true, unique=false)
  85. */
  86. private $intro;
  87. /**
  88. * @var string
  89. *
  90. * @Column(name="surveythanks", type="text", precision=0, scale=0, nullable=true, unique=false)
  91. */
  92. private $surveythanks;
  93. /**
  94. * @var \DateTime
  95. *
  96. * @Column(name="creation_date", type="datetime", precision=0, scale=0, nullable=false, unique=false)
  97. */
  98. private $creationDate;
  99. /**
  100. * @var integer
  101. *
  102. * @Column(name="invited", type="integer", precision=0, scale=0, nullable=false, unique=false)
  103. */
  104. private $invited;
  105. /**
  106. * @var integer
  107. *
  108. * @Column(name="answered", type="integer", precision=0, scale=0, nullable=false, unique=false)
  109. */
  110. private $answered;
  111. /**
  112. * @var string
  113. *
  114. * @Column(name="invite_mail", type="text", precision=0, scale=0, nullable=false, unique=false)
  115. */
  116. private $inviteMail;
  117. /**
  118. * @var string
  119. *
  120. * @Column(name="reminder_mail", type="text", precision=0, scale=0, nullable=false, unique=false)
  121. */
  122. private $reminderMail;
  123. /**
  124. * @var string
  125. *
  126. * @Column(name="mail_subject", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
  127. */
  128. private $mailSubject;
  129. /**
  130. * @var string
  131. *
  132. * @Column(name="anonymous", type="string", precision=0, scale=0, nullable=false, unique=false)
  133. */
  134. private $anonymous;
  135. /**
  136. * @var string
  137. *
  138. * @Column(name="access_condition", type="text", precision=0, scale=0, nullable=true, unique=false)
  139. */
  140. private $accessCondition;
  141. /**
  142. * @var boolean
  143. *
  144. * @Column(name="shuffle", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  145. */
  146. private $shuffle;
  147. /**
  148. * @var boolean
  149. *
  150. * @Column(name="one_question_per_page", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  151. */
  152. private $oneQuestionPerPage;
  153. /**
  154. * @var string
  155. *
  156. * @Column(name="survey_version", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
  157. */
  158. private $surveyVersion;
  159. /**
  160. * @var integer
  161. *
  162. * @Column(name="parent_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  163. */
  164. private $parentId;
  165. /**
  166. * @var integer
  167. *
  168. * @Column(name="survey_type", type="integer", precision=0, scale=0, nullable=false, unique=false)
  169. */
  170. private $surveyType;
  171. /**
  172. * @var integer
  173. *
  174. * @Column(name="show_form_profile", type="integer", precision=0, scale=0, nullable=false, unique=false)
  175. */
  176. private $showFormProfile;
  177. /**
  178. * @var string
  179. *
  180. * @Column(name="form_fields", type="text", precision=0, scale=0, nullable=false, unique=false)
  181. */
  182. private $formFields;
  183. /**
  184. * @var integer
  185. *
  186. * @Column(name="session_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  187. */
  188. private $sessionId;
  189. /**
  190. * Set cId
  191. *
  192. * @param integer $cId
  193. * @return EntityCSurvey
  194. */
  195. public function setCId($cId)
  196. {
  197. $this->cId = $cId;
  198. return $this;
  199. }
  200. /**
  201. * Get cId
  202. *
  203. * @return integer
  204. */
  205. public function getCId()
  206. {
  207. return $this->cId;
  208. }
  209. /**
  210. * Set surveyId
  211. *
  212. * @param integer $surveyId
  213. * @return EntityCSurvey
  214. */
  215. public function setSurveyId($surveyId)
  216. {
  217. $this->surveyId = $surveyId;
  218. return $this;
  219. }
  220. /**
  221. * Get surveyId
  222. *
  223. * @return integer
  224. */
  225. public function getSurveyId()
  226. {
  227. return $this->surveyId;
  228. }
  229. /**
  230. * Set code
  231. *
  232. * @param string $code
  233. * @return EntityCSurvey
  234. */
  235. public function setCode($code)
  236. {
  237. $this->code = $code;
  238. return $this;
  239. }
  240. /**
  241. * Get code
  242. *
  243. * @return string
  244. */
  245. public function getCode()
  246. {
  247. return $this->code;
  248. }
  249. /**
  250. * Set title
  251. *
  252. * @param string $title
  253. * @return EntityCSurvey
  254. */
  255. public function setTitle($title)
  256. {
  257. $this->title = $title;
  258. return $this;
  259. }
  260. /**
  261. * Get title
  262. *
  263. * @return string
  264. */
  265. public function getTitle()
  266. {
  267. return $this->title;
  268. }
  269. /**
  270. * Set subtitle
  271. *
  272. * @param string $subtitle
  273. * @return EntityCSurvey
  274. */
  275. public function setSubtitle($subtitle)
  276. {
  277. $this->subtitle = $subtitle;
  278. return $this;
  279. }
  280. /**
  281. * Get subtitle
  282. *
  283. * @return string
  284. */
  285. public function getSubtitle()
  286. {
  287. return $this->subtitle;
  288. }
  289. /**
  290. * Set author
  291. *
  292. * @param string $author
  293. * @return EntityCSurvey
  294. */
  295. public function setAuthor($author)
  296. {
  297. $this->author = $author;
  298. return $this;
  299. }
  300. /**
  301. * Get author
  302. *
  303. * @return string
  304. */
  305. public function getAuthor()
  306. {
  307. return $this->author;
  308. }
  309. /**
  310. * Set lang
  311. *
  312. * @param string $lang
  313. * @return EntityCSurvey
  314. */
  315. public function setLang($lang)
  316. {
  317. $this->lang = $lang;
  318. return $this;
  319. }
  320. /**
  321. * Get lang
  322. *
  323. * @return string
  324. */
  325. public function getLang()
  326. {
  327. return $this->lang;
  328. }
  329. /**
  330. * Set availFrom
  331. *
  332. * @param \DateTime $availFrom
  333. * @return EntityCSurvey
  334. */
  335. public function setAvailFrom($availFrom)
  336. {
  337. $this->availFrom = $availFrom;
  338. return $this;
  339. }
  340. /**
  341. * Get availFrom
  342. *
  343. * @return \DateTime
  344. */
  345. public function getAvailFrom()
  346. {
  347. return $this->availFrom;
  348. }
  349. /**
  350. * Set availTill
  351. *
  352. * @param \DateTime $availTill
  353. * @return EntityCSurvey
  354. */
  355. public function setAvailTill($availTill)
  356. {
  357. $this->availTill = $availTill;
  358. return $this;
  359. }
  360. /**
  361. * Get availTill
  362. *
  363. * @return \DateTime
  364. */
  365. public function getAvailTill()
  366. {
  367. return $this->availTill;
  368. }
  369. /**
  370. * Set isShared
  371. *
  372. * @param string $isShared
  373. * @return EntityCSurvey
  374. */
  375. public function setIsShared($isShared)
  376. {
  377. $this->isShared = $isShared;
  378. return $this;
  379. }
  380. /**
  381. * Get isShared
  382. *
  383. * @return string
  384. */
  385. public function getIsShared()
  386. {
  387. return $this->isShared;
  388. }
  389. /**
  390. * Set template
  391. *
  392. * @param string $template
  393. * @return EntityCSurvey
  394. */
  395. public function setTemplate($template)
  396. {
  397. $this->template = $template;
  398. return $this;
  399. }
  400. /**
  401. * Get template
  402. *
  403. * @return string
  404. */
  405. public function getTemplate()
  406. {
  407. return $this->template;
  408. }
  409. /**
  410. * Set intro
  411. *
  412. * @param string $intro
  413. * @return EntityCSurvey
  414. */
  415. public function setIntro($intro)
  416. {
  417. $this->intro = $intro;
  418. return $this;
  419. }
  420. /**
  421. * Get intro
  422. *
  423. * @return string
  424. */
  425. public function getIntro()
  426. {
  427. return $this->intro;
  428. }
  429. /**
  430. * Set surveythanks
  431. *
  432. * @param string $surveythanks
  433. * @return EntityCSurvey
  434. */
  435. public function setSurveythanks($surveythanks)
  436. {
  437. $this->surveythanks = $surveythanks;
  438. return $this;
  439. }
  440. /**
  441. * Get surveythanks
  442. *
  443. * @return string
  444. */
  445. public function getSurveythanks()
  446. {
  447. return $this->surveythanks;
  448. }
  449. /**
  450. * Set creationDate
  451. *
  452. * @param \DateTime $creationDate
  453. * @return EntityCSurvey
  454. */
  455. public function setCreationDate($creationDate)
  456. {
  457. $this->creationDate = $creationDate;
  458. return $this;
  459. }
  460. /**
  461. * Get creationDate
  462. *
  463. * @return \DateTime
  464. */
  465. public function getCreationDate()
  466. {
  467. return $this->creationDate;
  468. }
  469. /**
  470. * Set invited
  471. *
  472. * @param integer $invited
  473. * @return EntityCSurvey
  474. */
  475. public function setInvited($invited)
  476. {
  477. $this->invited = $invited;
  478. return $this;
  479. }
  480. /**
  481. * Get invited
  482. *
  483. * @return integer
  484. */
  485. public function getInvited()
  486. {
  487. return $this->invited;
  488. }
  489. /**
  490. * Set answered
  491. *
  492. * @param integer $answered
  493. * @return EntityCSurvey
  494. */
  495. public function setAnswered($answered)
  496. {
  497. $this->answered = $answered;
  498. return $this;
  499. }
  500. /**
  501. * Get answered
  502. *
  503. * @return integer
  504. */
  505. public function getAnswered()
  506. {
  507. return $this->answered;
  508. }
  509. /**
  510. * Set inviteMail
  511. *
  512. * @param string $inviteMail
  513. * @return EntityCSurvey
  514. */
  515. public function setInviteMail($inviteMail)
  516. {
  517. $this->inviteMail = $inviteMail;
  518. return $this;
  519. }
  520. /**
  521. * Get inviteMail
  522. *
  523. * @return string
  524. */
  525. public function getInviteMail()
  526. {
  527. return $this->inviteMail;
  528. }
  529. /**
  530. * Set reminderMail
  531. *
  532. * @param string $reminderMail
  533. * @return EntityCSurvey
  534. */
  535. public function setReminderMail($reminderMail)
  536. {
  537. $this->reminderMail = $reminderMail;
  538. return $this;
  539. }
  540. /**
  541. * Get reminderMail
  542. *
  543. * @return string
  544. */
  545. public function getReminderMail()
  546. {
  547. return $this->reminderMail;
  548. }
  549. /**
  550. * Set mailSubject
  551. *
  552. * @param string $mailSubject
  553. * @return EntityCSurvey
  554. */
  555. public function setMailSubject($mailSubject)
  556. {
  557. $this->mailSubject = $mailSubject;
  558. return $this;
  559. }
  560. /**
  561. * Get mailSubject
  562. *
  563. * @return string
  564. */
  565. public function getMailSubject()
  566. {
  567. return $this->mailSubject;
  568. }
  569. /**
  570. * Set anonymous
  571. *
  572. * @param string $anonymous
  573. * @return EntityCSurvey
  574. */
  575. public function setAnonymous($anonymous)
  576. {
  577. $this->anonymous = $anonymous;
  578. return $this;
  579. }
  580. /**
  581. * Get anonymous
  582. *
  583. * @return string
  584. */
  585. public function getAnonymous()
  586. {
  587. return $this->anonymous;
  588. }
  589. /**
  590. * Set accessCondition
  591. *
  592. * @param string $accessCondition
  593. * @return EntityCSurvey
  594. */
  595. public function setAccessCondition($accessCondition)
  596. {
  597. $this->accessCondition = $accessCondition;
  598. return $this;
  599. }
  600. /**
  601. * Get accessCondition
  602. *
  603. * @return string
  604. */
  605. public function getAccessCondition()
  606. {
  607. return $this->accessCondition;
  608. }
  609. /**
  610. * Set shuffle
  611. *
  612. * @param boolean $shuffle
  613. * @return EntityCSurvey
  614. */
  615. public function setShuffle($shuffle)
  616. {
  617. $this->shuffle = $shuffle;
  618. return $this;
  619. }
  620. /**
  621. * Get shuffle
  622. *
  623. * @return boolean
  624. */
  625. public function getShuffle()
  626. {
  627. return $this->shuffle;
  628. }
  629. /**
  630. * Set oneQuestionPerPage
  631. *
  632. * @param boolean $oneQuestionPerPage
  633. * @return EntityCSurvey
  634. */
  635. public function setOneQuestionPerPage($oneQuestionPerPage)
  636. {
  637. $this->oneQuestionPerPage = $oneQuestionPerPage;
  638. return $this;
  639. }
  640. /**
  641. * Get oneQuestionPerPage
  642. *
  643. * @return boolean
  644. */
  645. public function getOneQuestionPerPage()
  646. {
  647. return $this->oneQuestionPerPage;
  648. }
  649. /**
  650. * Set surveyVersion
  651. *
  652. * @param string $surveyVersion
  653. * @return EntityCSurvey
  654. */
  655. public function setSurveyVersion($surveyVersion)
  656. {
  657. $this->surveyVersion = $surveyVersion;
  658. return $this;
  659. }
  660. /**
  661. * Get surveyVersion
  662. *
  663. * @return string
  664. */
  665. public function getSurveyVersion()
  666. {
  667. return $this->surveyVersion;
  668. }
  669. /**
  670. * Set parentId
  671. *
  672. * @param integer $parentId
  673. * @return EntityCSurvey
  674. */
  675. public function setParentId($parentId)
  676. {
  677. $this->parentId = $parentId;
  678. return $this;
  679. }
  680. /**
  681. * Get parentId
  682. *
  683. * @return integer
  684. */
  685. public function getParentId()
  686. {
  687. return $this->parentId;
  688. }
  689. /**
  690. * Set surveyType
  691. *
  692. * @param integer $surveyType
  693. * @return EntityCSurvey
  694. */
  695. public function setSurveyType($surveyType)
  696. {
  697. $this->surveyType = $surveyType;
  698. return $this;
  699. }
  700. /**
  701. * Get surveyType
  702. *
  703. * @return integer
  704. */
  705. public function getSurveyType()
  706. {
  707. return $this->surveyType;
  708. }
  709. /**
  710. * Set showFormProfile
  711. *
  712. * @param integer $showFormProfile
  713. * @return EntityCSurvey
  714. */
  715. public function setShowFormProfile($showFormProfile)
  716. {
  717. $this->showFormProfile = $showFormProfile;
  718. return $this;
  719. }
  720. /**
  721. * Get showFormProfile
  722. *
  723. * @return integer
  724. */
  725. public function getShowFormProfile()
  726. {
  727. return $this->showFormProfile;
  728. }
  729. /**
  730. * Set formFields
  731. *
  732. * @param string $formFields
  733. * @return EntityCSurvey
  734. */
  735. public function setFormFields($formFields)
  736. {
  737. $this->formFields = $formFields;
  738. return $this;
  739. }
  740. /**
  741. * Get formFields
  742. *
  743. * @return string
  744. */
  745. public function getFormFields()
  746. {
  747. return $this->formFields;
  748. }
  749. /**
  750. * Set sessionId
  751. *
  752. * @param integer $sessionId
  753. * @return EntityCSurvey
  754. */
  755. public function setSessionId($sessionId)
  756. {
  757. $this->sessionId = $sessionId;
  758. return $this;
  759. }
  760. /**
  761. * Get sessionId
  762. *
  763. * @return integer
  764. */
  765. public function getSessionId()
  766. {
  767. return $this->sessionId;
  768. }
  769. }