course.class.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718
  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 Course extends \Entity
  10. {
  11. /**
  12. * @return \Entity\Repository\CourseRepository
  13. */
  14. public static function repository(){
  15. return \Entity\Repository\CourseRepository::instance();
  16. }
  17. /**
  18. * @return \Entity\Course
  19. */
  20. public static function create(){
  21. return new self();
  22. }
  23. /**
  24. * @var integer $id
  25. */
  26. protected $id;
  27. /**
  28. * @var string $code
  29. */
  30. protected $code;
  31. /**
  32. * @var string $directory
  33. */
  34. protected $directory;
  35. /**
  36. * @var string $db_name
  37. */
  38. protected $db_name;
  39. /**
  40. * @var string $course_language
  41. */
  42. protected $course_language;
  43. /**
  44. * @var string $title
  45. */
  46. protected $title;
  47. /**
  48. * @var text $description
  49. */
  50. protected $description;
  51. /**
  52. * @var string $category_code
  53. */
  54. protected $category_code;
  55. /**
  56. * @var boolean $visibility
  57. */
  58. protected $visibility;
  59. /**
  60. * @var integer $show_score
  61. */
  62. protected $show_score;
  63. /**
  64. * @var string $tutor_name
  65. */
  66. protected $tutor_name;
  67. /**
  68. * @var string $visual_code
  69. */
  70. protected $visual_code;
  71. /**
  72. * @var string $department_name
  73. */
  74. protected $department_name;
  75. /**
  76. * @var string $department_url
  77. */
  78. protected $department_url;
  79. /**
  80. * @var bigint $disk_quota
  81. */
  82. protected $disk_quota;
  83. /**
  84. * @var datetime $last_visit
  85. */
  86. protected $last_visit;
  87. /**
  88. * @var datetime $last_edit
  89. */
  90. protected $last_edit;
  91. /**
  92. * @var datetime $creation_date
  93. */
  94. protected $creation_date;
  95. /**
  96. * @var datetime $expiration_date
  97. */
  98. protected $expiration_date;
  99. /**
  100. * @var string $target_course_code
  101. */
  102. protected $target_course_code;
  103. /**
  104. * @var boolean $subscribe
  105. */
  106. protected $subscribe;
  107. /**
  108. * @var boolean $unsubscribe
  109. */
  110. protected $unsubscribe;
  111. /**
  112. * @var string $registration_code
  113. */
  114. protected $registration_code;
  115. /**
  116. * @var text $legal
  117. */
  118. protected $legal;
  119. /**
  120. * @var integer $activate_legal
  121. */
  122. protected $activate_legal;
  123. /**
  124. * @var integer $course_type_id
  125. */
  126. protected $course_type_id;
  127. /**
  128. * Get id
  129. *
  130. * @return integer
  131. */
  132. public function get_id()
  133. {
  134. return $this->id;
  135. }
  136. /**
  137. * Set code
  138. *
  139. * @param string $value
  140. * @return Course
  141. */
  142. public function set_code($value)
  143. {
  144. $this->code = $value;
  145. return $this;
  146. }
  147. /**
  148. * Get code
  149. *
  150. * @return string
  151. */
  152. public function get_code()
  153. {
  154. return $this->code;
  155. }
  156. /**
  157. * Set directory
  158. *
  159. * @param string $value
  160. * @return Course
  161. */
  162. public function set_directory($value)
  163. {
  164. $this->directory = $value;
  165. return $this;
  166. }
  167. /**
  168. * Get directory
  169. *
  170. * @return string
  171. */
  172. public function get_directory()
  173. {
  174. return $this->directory;
  175. }
  176. /**
  177. * Set db_name
  178. *
  179. * @param string $value
  180. * @return Course
  181. */
  182. public function set_db_name($value)
  183. {
  184. $this->db_name = $value;
  185. return $this;
  186. }
  187. /**
  188. * Get db_name
  189. *
  190. * @return string
  191. */
  192. public function get_db_name()
  193. {
  194. return $this->db_name;
  195. }
  196. /**
  197. * Set course_language
  198. *
  199. * @param string $value
  200. * @return Course
  201. */
  202. public function set_course_language($value)
  203. {
  204. $this->course_language = $value;
  205. return $this;
  206. }
  207. /**
  208. * Get course_language
  209. *
  210. * @return string
  211. */
  212. public function get_course_language()
  213. {
  214. return $this->course_language;
  215. }
  216. /**
  217. * Set title
  218. *
  219. * @param string $value
  220. * @return Course
  221. */
  222. public function set_title($value)
  223. {
  224. $this->title = $value;
  225. return $this;
  226. }
  227. /**
  228. * Get title
  229. *
  230. * @return string
  231. */
  232. public function get_title()
  233. {
  234. return $this->title;
  235. }
  236. /**
  237. * Set description
  238. *
  239. * @param text $value
  240. * @return Course
  241. */
  242. public function set_description($value)
  243. {
  244. $this->description = $value;
  245. return $this;
  246. }
  247. /**
  248. * Get description
  249. *
  250. * @return text
  251. */
  252. public function get_description()
  253. {
  254. return $this->description;
  255. }
  256. /**
  257. * Set category_code
  258. *
  259. * @param string $value
  260. * @return Course
  261. */
  262. public function set_category_code($value)
  263. {
  264. $this->category_code = $value;
  265. return $this;
  266. }
  267. /**
  268. * Get category_code
  269. *
  270. * @return string
  271. */
  272. public function get_category_code()
  273. {
  274. return $this->category_code;
  275. }
  276. /**
  277. * Set visibility
  278. *
  279. * @param boolean $value
  280. * @return Course
  281. */
  282. public function set_visibility($value)
  283. {
  284. $this->visibility = $value;
  285. return $this;
  286. }
  287. /**
  288. * Get visibility
  289. *
  290. * @return boolean
  291. */
  292. public function get_visibility()
  293. {
  294. return $this->visibility;
  295. }
  296. /**
  297. * Set show_score
  298. *
  299. * @param integer $value
  300. * @return Course
  301. */
  302. public function set_show_score($value)
  303. {
  304. $this->show_score = $value;
  305. return $this;
  306. }
  307. /**
  308. * Get show_score
  309. *
  310. * @return integer
  311. */
  312. public function get_show_score()
  313. {
  314. return $this->show_score;
  315. }
  316. /**
  317. * Set tutor_name
  318. *
  319. * @param string $value
  320. * @return Course
  321. */
  322. public function set_tutor_name($value)
  323. {
  324. $this->tutor_name = $value;
  325. return $this;
  326. }
  327. /**
  328. * Get tutor_name
  329. *
  330. * @return string
  331. */
  332. public function get_tutor_name()
  333. {
  334. return $this->tutor_name;
  335. }
  336. /**
  337. * Set visual_code
  338. *
  339. * @param string $value
  340. * @return Course
  341. */
  342. public function set_visual_code($value)
  343. {
  344. $this->visual_code = $value;
  345. return $this;
  346. }
  347. /**
  348. * Get visual_code
  349. *
  350. * @return string
  351. */
  352. public function get_visual_code()
  353. {
  354. return $this->visual_code;
  355. }
  356. /**
  357. * Set department_name
  358. *
  359. * @param string $value
  360. * @return Course
  361. */
  362. public function set_department_name($value)
  363. {
  364. $this->department_name = $value;
  365. return $this;
  366. }
  367. /**
  368. * Get department_name
  369. *
  370. * @return string
  371. */
  372. public function get_department_name()
  373. {
  374. return $this->department_name;
  375. }
  376. /**
  377. * Set department_url
  378. *
  379. * @param string $value
  380. * @return Course
  381. */
  382. public function set_department_url($value)
  383. {
  384. $this->department_url = $value;
  385. return $this;
  386. }
  387. /**
  388. * Get department_url
  389. *
  390. * @return string
  391. */
  392. public function get_department_url()
  393. {
  394. return $this->department_url;
  395. }
  396. /**
  397. * Set disk_quota
  398. *
  399. * @param bigint $value
  400. * @return Course
  401. */
  402. public function set_disk_quota($value)
  403. {
  404. $this->disk_quota = $value;
  405. return $this;
  406. }
  407. /**
  408. * Get disk_quota
  409. *
  410. * @return bigint
  411. */
  412. public function get_disk_quota()
  413. {
  414. return $this->disk_quota;
  415. }
  416. /**
  417. * Set last_visit
  418. *
  419. * @param datetime $value
  420. * @return Course
  421. */
  422. public function set_last_visit($value)
  423. {
  424. $this->last_visit = $value;
  425. return $this;
  426. }
  427. /**
  428. * Get last_visit
  429. *
  430. * @return datetime
  431. */
  432. public function get_last_visit()
  433. {
  434. return $this->last_visit;
  435. }
  436. /**
  437. * Set last_edit
  438. *
  439. * @param datetime $value
  440. * @return Course
  441. */
  442. public function set_last_edit($value)
  443. {
  444. $this->last_edit = $value;
  445. return $this;
  446. }
  447. /**
  448. * Get last_edit
  449. *
  450. * @return datetime
  451. */
  452. public function get_last_edit()
  453. {
  454. return $this->last_edit;
  455. }
  456. /**
  457. * Set creation_date
  458. *
  459. * @param datetime $value
  460. * @return Course
  461. */
  462. public function set_creation_date($value)
  463. {
  464. $this->creation_date = $value;
  465. return $this;
  466. }
  467. /**
  468. * Get creation_date
  469. *
  470. * @return datetime
  471. */
  472. public function get_creation_date()
  473. {
  474. return $this->creation_date;
  475. }
  476. /**
  477. * Set expiration_date
  478. *
  479. * @param datetime $value
  480. * @return Course
  481. */
  482. public function set_expiration_date($value)
  483. {
  484. $this->expiration_date = $value;
  485. return $this;
  486. }
  487. /**
  488. * Get expiration_date
  489. *
  490. * @return datetime
  491. */
  492. public function get_expiration_date()
  493. {
  494. return $this->expiration_date;
  495. }
  496. /**
  497. * Set target_course_code
  498. *
  499. * @param string $value
  500. * @return Course
  501. */
  502. public function set_target_course_code($value)
  503. {
  504. $this->target_course_code = $value;
  505. return $this;
  506. }
  507. /**
  508. * Get target_course_code
  509. *
  510. * @return string
  511. */
  512. public function get_target_course_code()
  513. {
  514. return $this->target_course_code;
  515. }
  516. /**
  517. * Set subscribe
  518. *
  519. * @param boolean $value
  520. * @return Course
  521. */
  522. public function set_subscribe($value)
  523. {
  524. $this->subscribe = $value;
  525. return $this;
  526. }
  527. /**
  528. * Get subscribe
  529. *
  530. * @return boolean
  531. */
  532. public function get_subscribe()
  533. {
  534. return $this->subscribe;
  535. }
  536. /**
  537. * Set unsubscribe
  538. *
  539. * @param boolean $value
  540. * @return Course
  541. */
  542. public function set_unsubscribe($value)
  543. {
  544. $this->unsubscribe = $value;
  545. return $this;
  546. }
  547. /**
  548. * Get unsubscribe
  549. *
  550. * @return boolean
  551. */
  552. public function get_unsubscribe()
  553. {
  554. return $this->unsubscribe;
  555. }
  556. /**
  557. * Set registration_code
  558. *
  559. * @param string $value
  560. * @return Course
  561. */
  562. public function set_registration_code($value)
  563. {
  564. $this->registration_code = $value;
  565. return $this;
  566. }
  567. /**
  568. * Get registration_code
  569. *
  570. * @return string
  571. */
  572. public function get_registration_code()
  573. {
  574. return $this->registration_code;
  575. }
  576. /**
  577. * Set legal
  578. *
  579. * @param text $value
  580. * @return Course
  581. */
  582. public function set_legal($value)
  583. {
  584. $this->legal = $value;
  585. return $this;
  586. }
  587. /**
  588. * Get legal
  589. *
  590. * @return text
  591. */
  592. public function get_legal()
  593. {
  594. return $this->legal;
  595. }
  596. /**
  597. * Set activate_legal
  598. *
  599. * @param integer $value
  600. * @return Course
  601. */
  602. public function set_activate_legal($value)
  603. {
  604. $this->activate_legal = $value;
  605. return $this;
  606. }
  607. /**
  608. * Get activate_legal
  609. *
  610. * @return integer
  611. */
  612. public function get_activate_legal()
  613. {
  614. return $this->activate_legal;
  615. }
  616. /**
  617. * Set course_type_id
  618. *
  619. * @param integer $value
  620. * @return Course
  621. */
  622. public function set_course_type_id($value)
  623. {
  624. $this->course_type_id = $value;
  625. return $this;
  626. }
  627. /**
  628. * Get course_type_id
  629. *
  630. * @return integer
  631. */
  632. public function get_course_type_id()
  633. {
  634. return $this->course_type_id;
  635. }
  636. }