EntityCourse.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820
  1. <?php
  2. namespace Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\ORM\Mapping\Id;
  5. use Doctrine\ORM\Mapping\Column;
  6. use Doctrine\ORM\Mapping\GeneratedValue;
  7. use Doctrine\ORM\Mapping\ManyToMany;
  8. use Doctrine\ORM\Mapping\ManyToOne;
  9. use Doctrine\ORM\Mapping\OneToMany;
  10. use Doctrine\ORM\Mapping\JoinColumn;
  11. use Doctrine\ORM\Mapping\JoinTable;
  12. use Doctrine\Common\Collections\ArrayCollection;
  13. /**
  14. * EntityCourse
  15. *
  16. * @Table(name="course")
  17. * @Entity(repositoryClass="Entity\Repository\CourseRepository")
  18. */
  19. class EntityCourse
  20. {
  21. /**
  22. * @var integer
  23. *
  24. * @Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  25. * @Id
  26. * @GeneratedValue(strategy="IDENTITY")
  27. */
  28. private $id;
  29. /**
  30. * @var string
  31. *
  32. * @Column(name="code", type="string", length=40, precision=0, scale=0, nullable=false, unique=false)
  33. */
  34. private $code;
  35. /**
  36. * @var string
  37. *
  38. * @Column(name="directory", type="string", length=40, precision=0, scale=0, nullable=true, unique=false)
  39. */
  40. private $directory;
  41. /**
  42. * @var string
  43. *
  44. * @Column(name="db_name", type="string", length=40, precision=0, scale=0, nullable=true, unique=false)
  45. */
  46. private $dbName;
  47. /**
  48. * @var string
  49. *
  50. * @Column(name="course_language", type="string", length=20, precision=0, scale=0, nullable=true, unique=false)
  51. */
  52. private $courseLanguage;
  53. /**
  54. * @var string
  55. *
  56. * @Column(name="title", type="string", length=250, precision=0, scale=0, nullable=true, unique=false)
  57. */
  58. private $title;
  59. /**
  60. * @var string
  61. *
  62. * @Column(name="description", type="text", precision=0, scale=0, nullable=true, unique=false)
  63. */
  64. private $description;
  65. /**
  66. * @var string
  67. *
  68. * @Column(name="category_code", type="string", length=40, precision=0, scale=0, nullable=true, unique=false)
  69. */
  70. private $categoryCode;
  71. /**
  72. * @var boolean
  73. *
  74. * @Column(name="visibility", type="boolean", precision=0, scale=0, nullable=true, unique=false)
  75. */
  76. private $visibility;
  77. /**
  78. * @var integer
  79. *
  80. * @Column(name="show_score", type="integer", precision=0, scale=0, nullable=false, unique=false)
  81. */
  82. private $showScore;
  83. /**
  84. * @var string
  85. *
  86. * @Column(name="tutor_name", type="string", length=200, precision=0, scale=0, nullable=true, unique=false)
  87. */
  88. private $tutorName;
  89. /**
  90. * @var string
  91. *
  92. * @Column(name="visual_code", type="string", length=40, precision=0, scale=0, nullable=true, unique=false)
  93. */
  94. private $visualCode;
  95. /**
  96. * @var string
  97. *
  98. * @Column(name="department_name", type="string", length=30, precision=0, scale=0, nullable=true, unique=false)
  99. */
  100. private $departmentName;
  101. /**
  102. * @var string
  103. *
  104. * @Column(name="department_url", type="string", length=180, precision=0, scale=0, nullable=true, unique=false)
  105. */
  106. private $departmentUrl;
  107. /**
  108. * @var integer
  109. *
  110. * @Column(name="disk_quota", type="bigint", precision=0, scale=0, nullable=true, unique=false)
  111. */
  112. private $diskQuota;
  113. /**
  114. * @var \DateTime
  115. *
  116. * @Column(name="last_visit", type="datetime", precision=0, scale=0, nullable=true, unique=false)
  117. */
  118. private $lastVisit;
  119. /**
  120. * @var \DateTime
  121. *
  122. * @Column(name="last_edit", type="datetime", precision=0, scale=0, nullable=true, unique=false)
  123. */
  124. private $lastEdit;
  125. /**
  126. * @var \DateTime
  127. *
  128. * @Column(name="creation_date", type="datetime", precision=0, scale=0, nullable=true, unique=false)
  129. */
  130. private $creationDate;
  131. /**
  132. * @var \DateTime
  133. *
  134. * @Column(name="expiration_date", type="datetime", precision=0, scale=0, nullable=true, unique=false)
  135. */
  136. private $expirationDate;
  137. /**
  138. * @var string
  139. *
  140. * @Column(name="target_course_code", type="string", length=40, precision=0, scale=0, nullable=true, unique=false)
  141. */
  142. private $targetCourseCode;
  143. /**
  144. * @var boolean
  145. *
  146. * @Column(name="subscribe", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  147. */
  148. private $subscribe;
  149. /**
  150. * @var boolean
  151. *
  152. * @Column(name="unsubscribe", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  153. */
  154. private $unsubscribe;
  155. /**
  156. * @var string
  157. *
  158. * @Column(name="registration_code", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
  159. */
  160. private $registrationCode;
  161. /**
  162. * @var string
  163. *
  164. * @Column(name="legal", type="text", precision=0, scale=0, nullable=false, unique=false)
  165. */
  166. private $legal;
  167. /**
  168. * @var integer
  169. *
  170. * @Column(name="activate_legal", type="integer", precision=0, scale=0, nullable=false, unique=false)
  171. */
  172. private $activateLegal;
  173. /**
  174. * @var integer
  175. *
  176. * @Column(name="course_type_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
  177. */
  178. private $courseTypeId;
  179. /**
  180. * @OneToMany(targetEntity="EntityCourseRelUser", mappedBy="course")
  181. **/
  182. private $users;
  183. /**
  184. * @OneToMany(targetEntity="EntityCItemProperty", mappedBy="course")
  185. **/
  186. private $items;
  187. public function __construct()
  188. {
  189. $this->users = new ArrayCollection();
  190. $this->items = new ArrayCollection();
  191. }
  192. public function getItems()
  193. {
  194. return $this->items;
  195. }
  196. public function getUsers()
  197. {
  198. return $this->users;
  199. }
  200. /**
  201. * Get id
  202. *
  203. * @return integer
  204. */
  205. public function getId()
  206. {
  207. return $this->id;
  208. }
  209. /**
  210. * Set code
  211. *
  212. * @param string $code
  213. * @return EntityCourse
  214. */
  215. public function setCode($code)
  216. {
  217. $this->code = $code;
  218. return $this;
  219. }
  220. /**
  221. * Get code
  222. *
  223. * @return string
  224. */
  225. public function getCode()
  226. {
  227. return $this->code;
  228. }
  229. /**
  230. * Set directory
  231. *
  232. * @param string $directory
  233. * @return EntityCourse
  234. */
  235. public function setDirectory($directory)
  236. {
  237. $this->directory = $directory;
  238. return $this;
  239. }
  240. /**
  241. * Get directory
  242. *
  243. * @return string
  244. */
  245. public function getDirectory()
  246. {
  247. return $this->directory;
  248. }
  249. /**
  250. * Set dbName
  251. *
  252. * @param string $dbName
  253. * @return EntityCourse
  254. */
  255. public function setDbName($dbName)
  256. {
  257. $this->dbName = $dbName;
  258. return $this;
  259. }
  260. /**
  261. * Get dbName
  262. *
  263. * @return string
  264. */
  265. public function getDbName()
  266. {
  267. return $this->dbName;
  268. }
  269. /**
  270. * Set courseLanguage
  271. *
  272. * @param string $courseLanguage
  273. * @return EntityCourse
  274. */
  275. public function setCourseLanguage($courseLanguage)
  276. {
  277. $this->courseLanguage = $courseLanguage;
  278. return $this;
  279. }
  280. /**
  281. * Get courseLanguage
  282. *
  283. * @return string
  284. */
  285. public function getCourseLanguage()
  286. {
  287. return $this->courseLanguage;
  288. }
  289. /**
  290. * Set title
  291. *
  292. * @param string $title
  293. * @return EntityCourse
  294. */
  295. public function setTitle($title)
  296. {
  297. $this->title = $title;
  298. return $this;
  299. }
  300. /**
  301. * Get title
  302. *
  303. * @return string
  304. */
  305. public function getTitle()
  306. {
  307. return $this->title;
  308. }
  309. /**
  310. * Set description
  311. *
  312. * @param string $description
  313. * @return EntityCourse
  314. */
  315. public function setDescription($description)
  316. {
  317. $this->description = $description;
  318. return $this;
  319. }
  320. /**
  321. * Get description
  322. *
  323. * @return string
  324. */
  325. public function getDescription()
  326. {
  327. return $this->description;
  328. }
  329. /**
  330. * Set categoryCode
  331. *
  332. * @param string $categoryCode
  333. * @return EntityCourse
  334. */
  335. public function setCategoryCode($categoryCode)
  336. {
  337. $this->categoryCode = $categoryCode;
  338. return $this;
  339. }
  340. /**
  341. * Get categoryCode
  342. *
  343. * @return string
  344. */
  345. public function getCategoryCode()
  346. {
  347. return $this->categoryCode;
  348. }
  349. /**
  350. * Set visibility
  351. *
  352. * @param boolean $visibility
  353. * @return EntityCourse
  354. */
  355. public function setVisibility($visibility)
  356. {
  357. $this->visibility = $visibility;
  358. return $this;
  359. }
  360. /**
  361. * Get visibility
  362. *
  363. * @return boolean
  364. */
  365. public function getVisibility()
  366. {
  367. return $this->visibility;
  368. }
  369. /**
  370. * Set showScore
  371. *
  372. * @param integer $showScore
  373. * @return EntityCourse
  374. */
  375. public function setShowScore($showScore)
  376. {
  377. $this->showScore = $showScore;
  378. return $this;
  379. }
  380. /**
  381. * Get showScore
  382. *
  383. * @return integer
  384. */
  385. public function getShowScore()
  386. {
  387. return $this->showScore;
  388. }
  389. /**
  390. * Set tutorName
  391. *
  392. * @param string $tutorName
  393. * @return EntityCourse
  394. */
  395. public function setTutorName($tutorName)
  396. {
  397. $this->tutorName = $tutorName;
  398. return $this;
  399. }
  400. /**
  401. * Get tutorName
  402. *
  403. * @return string
  404. */
  405. public function getTutorName()
  406. {
  407. return $this->tutorName;
  408. }
  409. /**
  410. * Set visualCode
  411. *
  412. * @param string $visualCode
  413. * @return EntityCourse
  414. */
  415. public function setVisualCode($visualCode)
  416. {
  417. $this->visualCode = $visualCode;
  418. return $this;
  419. }
  420. /**
  421. * Get visualCode
  422. *
  423. * @return string
  424. */
  425. public function getVisualCode()
  426. {
  427. return $this->visualCode;
  428. }
  429. /**
  430. * Set departmentName
  431. *
  432. * @param string $departmentName
  433. * @return EntityCourse
  434. */
  435. public function setDepartmentName($departmentName)
  436. {
  437. $this->departmentName = $departmentName;
  438. return $this;
  439. }
  440. /**
  441. * Get departmentName
  442. *
  443. * @return string
  444. */
  445. public function getDepartmentName()
  446. {
  447. return $this->departmentName;
  448. }
  449. /**
  450. * Set departmentUrl
  451. *
  452. * @param string $departmentUrl
  453. * @return EntityCourse
  454. */
  455. public function setDepartmentUrl($departmentUrl)
  456. {
  457. $this->departmentUrl = $departmentUrl;
  458. return $this;
  459. }
  460. /**
  461. * Get departmentUrl
  462. *
  463. * @return string
  464. */
  465. public function getDepartmentUrl()
  466. {
  467. return $this->departmentUrl;
  468. }
  469. /**
  470. * Set diskQuota
  471. *
  472. * @param integer $diskQuota
  473. * @return EntityCourse
  474. */
  475. public function setDiskQuota($diskQuota)
  476. {
  477. $this->diskQuota = $diskQuota;
  478. return $this;
  479. }
  480. /**
  481. * Get diskQuota
  482. *
  483. * @return integer
  484. */
  485. public function getDiskQuota()
  486. {
  487. return $this->diskQuota;
  488. }
  489. /**
  490. * Set lastVisit
  491. *
  492. * @param \DateTime $lastVisit
  493. * @return EntityCourse
  494. */
  495. public function setLastVisit($lastVisit)
  496. {
  497. $this->lastVisit = $lastVisit;
  498. return $this;
  499. }
  500. /**
  501. * Get lastVisit
  502. *
  503. * @return \DateTime
  504. */
  505. public function getLastVisit()
  506. {
  507. return $this->lastVisit;
  508. }
  509. /**
  510. * Set lastEdit
  511. *
  512. * @param \DateTime $lastEdit
  513. * @return EntityCourse
  514. */
  515. public function setLastEdit($lastEdit)
  516. {
  517. $this->lastEdit = $lastEdit;
  518. return $this;
  519. }
  520. /**
  521. * Get lastEdit
  522. *
  523. * @return \DateTime
  524. */
  525. public function getLastEdit()
  526. {
  527. return $this->lastEdit;
  528. }
  529. /**
  530. * Set creationDate
  531. *
  532. * @param \DateTime $creationDate
  533. * @return EntityCourse
  534. */
  535. public function setCreationDate($creationDate)
  536. {
  537. $this->creationDate = $creationDate;
  538. return $this;
  539. }
  540. /**
  541. * Get creationDate
  542. *
  543. * @return \DateTime
  544. */
  545. public function getCreationDate()
  546. {
  547. return $this->creationDate;
  548. }
  549. /**
  550. * Set expirationDate
  551. *
  552. * @param \DateTime $expirationDate
  553. * @return EntityCourse
  554. */
  555. public function setExpirationDate($expirationDate)
  556. {
  557. $this->expirationDate = $expirationDate;
  558. return $this;
  559. }
  560. /**
  561. * Get expirationDate
  562. *
  563. * @return \DateTime
  564. */
  565. public function getExpirationDate()
  566. {
  567. return $this->expirationDate;
  568. }
  569. /**
  570. * Set targetCourseCode
  571. *
  572. * @param string $targetCourseCode
  573. * @return EntityCourse
  574. */
  575. public function setTargetCourseCode($targetCourseCode)
  576. {
  577. $this->targetCourseCode = $targetCourseCode;
  578. return $this;
  579. }
  580. /**
  581. * Get targetCourseCode
  582. *
  583. * @return string
  584. */
  585. public function getTargetCourseCode()
  586. {
  587. return $this->targetCourseCode;
  588. }
  589. /**
  590. * Set subscribe
  591. *
  592. * @param boolean $subscribe
  593. * @return EntityCourse
  594. */
  595. public function setSubscribe($subscribe)
  596. {
  597. $this->subscribe = $subscribe;
  598. return $this;
  599. }
  600. /**
  601. * Get subscribe
  602. *
  603. * @return boolean
  604. */
  605. public function getSubscribe()
  606. {
  607. return $this->subscribe;
  608. }
  609. /**
  610. * Set unsubscribe
  611. *
  612. * @param boolean $unsubscribe
  613. * @return EntityCourse
  614. */
  615. public function setUnsubscribe($unsubscribe)
  616. {
  617. $this->unsubscribe = $unsubscribe;
  618. return $this;
  619. }
  620. /**
  621. * Get unsubscribe
  622. *
  623. * @return boolean
  624. */
  625. public function getUnsubscribe()
  626. {
  627. return $this->unsubscribe;
  628. }
  629. /**
  630. * Set registrationCode
  631. *
  632. * @param string $registrationCode
  633. * @return EntityCourse
  634. */
  635. public function setRegistrationCode($registrationCode)
  636. {
  637. $this->registrationCode = $registrationCode;
  638. return $this;
  639. }
  640. /**
  641. * Get registrationCode
  642. *
  643. * @return string
  644. */
  645. public function getRegistrationCode()
  646. {
  647. return $this->registrationCode;
  648. }
  649. /**
  650. * Set legal
  651. *
  652. * @param string $legal
  653. * @return EntityCourse
  654. */
  655. public function setLegal($legal)
  656. {
  657. $this->legal = $legal;
  658. return $this;
  659. }
  660. /**
  661. * Get legal
  662. *
  663. * @return string
  664. */
  665. public function getLegal()
  666. {
  667. return $this->legal;
  668. }
  669. /**
  670. * Set activateLegal
  671. *
  672. * @param integer $activateLegal
  673. * @return EntityCourse
  674. */
  675. public function setActivateLegal($activateLegal)
  676. {
  677. $this->activateLegal = $activateLegal;
  678. return $this;
  679. }
  680. /**
  681. * Get activateLegal
  682. *
  683. * @return integer
  684. */
  685. public function getActivateLegal()
  686. {
  687. return $this->activateLegal;
  688. }
  689. /**
  690. * Set courseTypeId
  691. *
  692. * @param integer $courseTypeId
  693. * @return EntityCourse
  694. */
  695. public function setCourseTypeId($courseTypeId)
  696. {
  697. $this->courseTypeId = $courseTypeId;
  698. return $this;
  699. }
  700. /**
  701. * Get courseTypeId
  702. *
  703. * @return integer
  704. */
  705. public function getCourseTypeId()
  706. {
  707. return $this->courseTypeId;
  708. }
  709. }